Comparison
agi-cli vs OpenCode
OpenCode is an agent. agi-cli is the harness that runs agents — OpenCode included. The comparison is really “one agent” against “every agent, managed.”
Muqsit Nawaz · Published July 17, 2026
What OpenCode does well
OpenCode is open source, local-first, and model-agnostic. It swaps the underlying model — Kimi, GLM, DeepSeek — through OpenRouter, so you are not tied to one provider's subscription. As a single agent with model choice, it is a strong pick, and it is one of the agents agi-cli runs.
Where agi-cli differs
agi-cli is not an agent and does not answer prompts. It spawns the agents you have — OpenCode, Claude Code, Codex, Gemini — as local subprocesses and manages the state around them: which version, which account, which config, which session.
agents run opencode "refactor the queue worker"A repo pins exact agent versions in agents.yaml, the way .nvmrc pins Node. Every agents call inside the tree resolves to the pinned version, andagents check fails CI when a machine drifts.
agents use [email protected] -p # pin this project to Claude Code 2.1.207When one account hits its rate-limit window, the balanced strategy moves the run to an account with headroom. When one agent is not enough, a team runs several in parallel with DAG dependencies, each in its own git worktree.
agents run claude --balanced "run the full test suite"Side by side
| Capability | agi-cli | OpenCode |
|---|---|---|
| Swap underlying model (Kimi, GLM, DeepSeek via OpenRouter) | yes | yes |
| Local-first and open-source — cloud dispatch optional | yes | yes |
| Cross-agent session search & replay | yes | partial |
| Sync skills/MCP/commands across all installed agents | yes | partial |
| Pin versions per project (.nvmrc-style) | yes | no |
| Run multiple agents (Claude + Codex + Grok) from one CLI | yes | no |
| Rotate across multiple accounts to dodge rate limits | yes | no |
| Parallel teams with DAG dependencies | yes | no |
| Local browser via CDP (drive any site) | yes | no |
| Keychain-backed secrets (no .env files) | yes | no |
Rows are the OpenCode column of the homepage comparison table, which covers harness-level capabilities. OpenCode the agent is not trying to be a harness.
When OpenCode is the right call
If you run one agent and want it open source with model choice, use OpenCode directly — there is nothing to harness. agi-cli earns its install when a second agent, a second account, or a second machine shows up. And when it does, OpenCode comes along:agents run opencode works out of the box.
FAQ
Does agi-cli replace OpenCode?
No. OpenCode is a coding agent; agi-cli is the harness that runs coding agents. OpenCode is one of the agents agi-cli can spawn — alongside Claude Code, Codex, Gemini, and others — pinned per project and balanced across accounts.
What does OpenCode do well?
OpenCode is open source, local-first, and model-agnostic: it swaps the underlying model — Kimi, GLM, DeepSeek — through OpenRouter. If you want one open agent with model choice, it is a strong pick.
What does agi-cli add on top of OpenCode?
Per-project version pins, account rotation across rate limits, parallel teams with DAG dependencies, Keychain-backed secrets, and one searchable session store across every agent you run — including OpenCode itself.
Try it
curl -fsSL agi-cli.sh/install.sh | sh