Build with
Run opencode in Nix Agents
OpenCode is one of the open-source terminal agents Nix Agents hosts. It runs in a worktree created for the task, in a terminal you can take over at any point.
How it works
You install OpenCode and configure its provider yourself, in your shell. Nix Agents starts it in a fresh worktree of the repository you picked and gives it a real terminal pane — same binary, same configuration, same credentials.
The difference from running it by hand is what happens at the second session: each one gets its own checkout and branch, so nothing an agent writes is invisible to you until it is merged.
Why open source agents fit here
An open-source CLI usually means provider choice — a local model, an aggregator, or a direct API key. Nix Agents does not care which: it never proxies the model call and never asks for a key, so whatever OpenCode is configured to talk to is what it talks to.
That also means the escape hatch is real. Every agent pane is a terminal, so a session can be handed a command, interrupted, or finished by hand without leaving the board.
Questions
- Does Nix Agents change my OpenCode configuration?
- No. It runs the binary you installed with the configuration files you already have, in a worktree of the repository you selected.
