Skip to content

Commit eb4b13e

Browse files
committed
feat: add Kode-Agent to base sandbox image
Install Kode (@shareai-lab/kode@2.2.0) in the base sandbox image and add its network policy. Kode is an open-source multi-model AI coding agent supporting both Anthropic and OpenAI APIs. Changes: - Dockerfile: add @shareai-lab/kode@2.2.0 to global npm packages - policy.yaml: add kode_agent network policy (api.anthropic.com, api.openai.com) and grant kode binary access to GitHub REST API
1 parent e705056 commit eb4b13e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

sandboxes/base/Dockerfile

Lines changed: 2 additions & 1 deletion
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+
@shareai-lab/kode@2.2.0
7879

7980
# GitHub CLI
8081
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \

sandboxes/base/policy.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ network_policies:
9393
access: read-only
9494
binaries:
9595
- { path: /usr/local/bin/claude }
96+
- { path: /usr/local/bin/kode }
9697
- { path: /usr/bin/gh }
9798

9899
pypi:
@@ -159,3 +160,12 @@ network_policies:
159160
- path: /usr/lib/node_modules/opencode-ai/bin/.opencode
160161
- path: /usr/bin/node
161162
- path: /usr/local/bin/opencode
163+
164+
kode_agent:
165+
name: kode-agent
166+
endpoints:
167+
- { host: api.anthropic.com, port: 443, protocol: rest, enforcement: enforce, access: full, tls: terminate }
168+
- { host: api.openai.com, port: 443 }
169+
binaries:
170+
- { path: /usr/local/bin/kode }
171+
- { path: /usr/bin/node }

0 commit comments

Comments
 (0)