跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

提交记录

Fix OpenCode install script and remove yolo flag

- Update install URL to official https://opencode.ai/install (old script fetched outdated v0.5.5) - Remove --dangerously-skip-permissions flag for opencode (not yet released, waiting on anomalyco/opencode#11833) - Fix OpenCode repo link (opencode-ai/opencode is archived, now anomalyco/opencode) Co-Authored-By: Claude Opus 4.6 <[email protected]>

作者
Nicolas Ritouet
时间
2026/02/19 23:43
提交
5af678e
上一个
3f03ec5
这个版本的全部文件
修改README.md+2 −2看文件
@@ -4,7 +4,7 @@ Run AI coding agents inside sandboxed Linux VMs. The agent gets full autonomy wh
44
55Uses [Lima](https://lima-vm.io/) to create lightweight Debian VMs on macOS and Linux. Ships with dev tools, Docker, and a headless Chrome browser with [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp) pre-configured.
66
7删除:Supports [Claude Code](https://claude.ai/code), [OpenCode](https://github.com/opencode-ai/opencode), and [Codex CLI](https://github.com/openai/codex) out of the box. Other agents can be run via `agent-vm shell`.
7新增:Supports [Claude Code](https://claude.ai/code), [OpenCode](https://github.com/anomalyco/opencode), and [Codex CLI](https://github.com/openai/codex) out of the box. Other agents can be run via `agent-vm shell`.
88
99Never install attack vectors such as npm, claude or even Docker on your host machine again!
1010
@@ -61,7 +61,7 @@ Creates a persistent VM for the current directory (or reuses it if one already e
6161
6262Each agent runs with its respective auto-approve flag:
6363- `claude` runs with `--dangerously-skip-permissions`
64删除:- `opencode` runs with `--dangerously-skip-permissions`
64新增:- `opencode` does not yet have an auto-approve flag (waiting on [this PR](https://github.com/anomalyco/opencode/pull/11833))
6565- `codex` runs with `--full-auto`
6666
6767Any extra arguments are forwarded to the agent command:
修改agent-vm.setup.sh+1 −1看文件
@@ -67,7 +67,7 @@ echo 'export PS1="vm:%1~%% "' >> ~/.zshrc
6767
6868# Install OpenCode
6969echo "Installing OpenCode..."
70删除:curl -fsSL https://raw.githubusercontent.com/opencode-ai/opencode/refs/heads/main/install | bash
70新增:curl -fsSL https://opencode.ai/install | bash
7171echo 'export PATH=$HOME/.opencode/bin:$PATH' >> ~/.zshrc
7272
7373# Add PATH to .zshenv so non-interactive shells (limactl shell vmname cmd) also find the tools
修改agent-vm.sh+3 −1看文件
@@ -365,7 +365,9 @@ _agent_vm_opencode() {
365365
366366 _agent_vm_ensure_running "$vm_name" "$host_dir" "${vm_opts[@]}" || return 1
367367
368删除: limactl shell --workdir "$host_dir" "$vm_name" opencode --dangerously-skip-permissions "${args[@]}"
368新增: # TODO: add --dangerously-skip-permissions once released
369新增: # (waiting on https://github.com/anomalyco/opencode/pull/11833)
370新增: limactl shell --workdir "$host_dir" "$vm_name" opencode "${args[@]}"
369371}
370372
371373_agent_vm_codex() {