Skip to content

Commit 1fc129c

Browse files
authored
Merge pull request #2 from NicolasRitouet/fix/opencode-install-and-yolo-flag
Fix OpenCode install script and remove yolo flag
2 parents 3f03ec5 + 5af678e commit 1fc129c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Run AI coding agents inside sandboxed Linux VMs. The agent gets full autonomy wh
44

55
Uses [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

99
Never 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

6262
Each 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

6767
Any extra arguments are forwarded to the agent command:

agent-vm.setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ echo 'export PS1="vm:%1~%% "' >> ~/.zshrc
6767

6868
# Install OpenCode
6969
echo "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
7171
echo '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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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() {

0 commit comments

Comments
 (0)