You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Gemini CLI Docker template for matifali namespace
This PR adds a new Coder Docker template for the Gemini CLI in the matifali namespace.
Features:
- Docker-based template using codercom/enterprise-node:ubuntu
- Direct Gemini CLI installation via npm
- GEMINI_API_KEY parameter for secure API key management
- Pre-configured with Node.js, Code Server, and terminal access
- Persistent Docker volume storage
- Proper namespace README with bio, GitHub, avatar
- Template validated with terraform init/validate/fmt
- Follows Coder registry standards and formatting
Co-authored-by: matifali <atif@coder.com>
description: A Docker workspace template with Gemini CLI for AI-powered coding assistance
4
+
icon: ../../../../.icons/gemini.svg
5
+
verified: false
6
+
tags: [docker, gemini, ai, google, node]
7
+
---
8
+
9
+
# Gemini CLI Template
10
+
11
+
A Docker workspace template that integrates Google's Gemini CLI for AI-powered coding assistance using a custom module implementation.
12
+
13
+
> **Note**: This template uses a custom module implementation that provides the same interface as the [coder-labs/gemini](https://registry.coder.com/modules/coder-labs/gemini) module but works around current validation issues in the official module's dependencies.
14
+
15
+
## Features
16
+
17
+
-**Docker-based**: Lightweight Docker container with persistent storage
18
+
-**Gemini CLI Module**: Custom module implementation with the same interface as the official module
19
+
-**Node.js Environment**: Pre-configured Node.js development environment
20
+
-**Code Server**: VS Code in the browser for development
21
+
-**Secure API Key Management**: Parameter for Gemini API key
22
+
-**Terminal Access**: Direct terminal access for manual Gemini CLI usage
23
+
-**Gemini App**: Dedicated app for easy Gemini CLI access
24
+
25
+
## Prerequisites
26
+
27
+
- Docker environment with Coder deployed
28
+
- Gemini API key from Google AI Studio
29
+
30
+
## Parameters
31
+
32
+
### GEMINI_API_KEY (Required)
33
+
34
+
-**Type**: String
35
+
-**Description**: Your Gemini API key for accessing Google's AI models
36
+
-**Mutable**: Yes
37
+
38
+
Get your API key from [Google AI Studio](https://aistudio.google.com/app/apikey).
39
+
40
+
## Usage
41
+
42
+
### Interactive Mode
43
+
44
+
1. Click on the "Gemini CLI" app in your workspace
45
+
2. Or open the Terminal app and run `gemini`
46
+
3. Ask questions or request coding assistance
47
+
48
+
### Example Commands
49
+
50
+
```bash
51
+
# Interactive chat with Gemini
52
+
gemini
53
+
54
+
# Generate code with a specific prompt
55
+
echo"Create a simple Express.js server"| gemini
56
+
57
+
# Get help with debugging
58
+
echo"Explain this error: TypeError: Cannot read property 'length' of undefined"| gemini
59
+
```
60
+
61
+
## What's Included
62
+
63
+
-**Docker Container**: `codercom/enterprise-node:ubuntu` with Node.js pre-installed
64
+
-**Gemini CLI**: Installed via npm during workspace startup
65
+
-**Custom Module**: Local module that provides the same interface as the official coder-labs/gemini module
66
+
-**Code Server**: VS Code in the browser for development
67
+
-**Terminal**: Direct shell access
68
+
-**Gemini App**: Dedicated workspace app for easy access
69
+
-**Persistent Storage**: Home directory persisted across workspace restarts
70
+
71
+
## Module Implementation
72
+
73
+
This template includes a custom module (`./modules/gemini-fixed`) that:
74
+
75
+
- Provides the same interface as the official `coder-labs/gemini` module
76
+
- Installs Gemini CLI directly via npm
77
+
- Sets up proper environment variables
78
+
- Creates a dedicated Coder app for easy access
79
+
- Avoids the validation issues present in the official module's dependencies
80
+
81
+
## Security
82
+
83
+
- API keys are managed through Coder parameters
84
+
- Container runs with appropriate user permissions
This template uses a custom module that provides the same interface as the official `coder-labs/gemini` module. Once the validation issues in the official module are resolved, this template can be easily updated to use the official module instead.
123
+
124
+
## Support
125
+
126
+
For issues with this template, please contact the template maintainer or file an issue in the Coder registry repository.
0 commit comments