Skip to content

Commit 1da0f64

Browse files
committed
feat: add Gemini CLI support
Signed-off-by: minhdqdev <minhdq.dev@gmail.com>
1 parent 88812df commit 1da0f64

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

sandboxes/base/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ RUN npm install -g \
7474
tar@7.5.11 \
7575
@hono/node-server@1.19.11 \
7676
opencode-ai@1.2.18 \
77-
@openai/codex@0.111.0
77+
@openai/codex@0.111.0 \
78+
@google/gemini-cli@0.34.0
7879

7980
# GitHub CLI
8081
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
@@ -118,7 +119,7 @@ COPY policy.yaml /etc/openshell/policy.yaml
118119
COPY skills/ /sandbox/.agents/skills/
119120

120121
# Set up sandbox user home directory
121-
RUN mkdir -p /sandbox/.claude/skills && \
122+
RUN mkdir -p /sandbox/.claude/skills /sandbox/.gemini && \
122123
# Create a writable venv using uv-managed Python 3.13.
123124
# Sandbox users can `uv pip install` (or `pip install`) into
124125
# this venv without touching the base image layer.

sandboxes/base/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The foundational sandbox image that all other OpenShell Community sandbox images
99
| OS | Ubuntu 24.04 |
1010
| Languages | `python3` (3.13), `node` (22.22.1) |
1111
| Package managers | `npm` (11.11.0), `uv` (0.10.8), `pip` |
12-
| Coding agents | `claude`, `opencode`, `codex` |
12+
| Coding agents | `claude`, `opencode`, `codex`, `gemini` |
1313
| Developer | `gh`, `git`, `vim`, `nano` |
1414
| Networking | `ping`, `dig`, `nslookup`, `nc`, `traceroute`, `netstat`, `curl` |
1515

sandboxes/base/policy.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,18 @@ network_policies:
159159
- path: /usr/lib/node_modules/opencode-ai/bin/.opencode
160160
- path: /usr/bin/node
161161
- path: /usr/local/bin/opencode
162+
163+
gemini:
164+
name: gemini
165+
endpoints:
166+
- { host: generativelanguage.googleapis.com, port: 443 }
167+
- { host: aiplatform.googleapis.com, port: 443 }
168+
- { host: cloudcode-pa.googleapis.com, port: 443 }
169+
- { host: accounts.google.com, port: 443 }
170+
- { host: oauth2.googleapis.com, port: 443 }
171+
- { host: www.googleapis.com, port: 443 }
172+
- { host: iamcredentials.googleapis.com, port: 443 }
173+
binaries:
174+
- { path: /usr/bin/gemini }
175+
- { path: /usr/lib/node_modules/@google/gemini-cli/dist/index.js }
176+
- { path: /usr/bin/node }

0 commit comments

Comments
 (0)