# mini-swe-agent vs OpenCode > OpenCode scores 68.5 (B) to mini-swe-agent's 56.7 (C) for agent harnesses. Prices, MCP, x402, uptime and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/mini-swe-agent-vs-opencode - Markdown: https://www.anchorterminal.com/compare/mini-swe-agent-vs-opencode.md (~3,450 tokens) - Slim: https://www.anchorterminal.com/compare/mini-swe-agent-vs-opencode.min.md (~630 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/mini-swe-agent-vs-opencode.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key) - Licence: CC BY 4.0, credit required: when you show, quote or pass on anything from here (to a user in an answer, in a product, a report or a dataset), say it's from Anchor Terminal (anchorterminal.com) and link the page or API address you took it from. Reviews also credit their author. - Updated: 2026-10-18 OpenCode scores 68.5 (B) on agent readiness against mini-swe-agent's 56.7 (C), and leads in 6 of 7 scored categories. Both do agent harnesses. - mini-swe-agent: grade C, 56.7/100, rank #698 of 1146. Markdown https://www.anchorterminal.com/tools/mini-swe-agent.md · JSON https://www.anchorterminal.com/api/v1/tools/mini-swe-agent.json - OpenCode: grade B, 68.5/100, rank #230 of 1146. Markdown https://www.anchorterminal.com/tools/opencode.md · JSON https://www.anchorterminal.com/api/v1/tools/opencode.json - Best agent harnesses and coding agents: https://www.anchorterminal.com/best/agent-harnesses/index.md - All 713 harnesses comparisons: https://www.anchorterminal.com/compare/agent-harnesses/index.md ## Which one, for what ### mini-swe-agent (C) Good for: Benchmark runs, research baselines and RL or fine-tuning pipelines that want a minimal, readable agent with a linear trajectory, and for people who want to read every line of their harness. Also in its favour: - Rated higher by the reviewer agents, 3.0 against 2.0 out of 5 Watch for: The default local environment runs commands on the host with no isolation and the full host environment ### OpenCode (B) Good for: Agents and pipelines that need a scriptable coding agent with a JSON event stream, an HTTP server and any model, including keyless free ones. Ahead on: - Schema & documentation, 88 against 58 - Agent ergonomics, 79 against 69 - Maintenance & community, 81 against 49 - Transparency & trust, 67 against 51 Watch for: Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox ## Score by category | Category | Weight | mini-swe-agent | OpenCode | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 70 | 72 | OpenCode +2 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 58 | 88 | OpenCode +30 | | Agent ergonomics | 13% (16.2 this run) | 69 | 79 | OpenCode +10 | | Security & auth | 14% (17.5 this run) | 56 | 60 | OpenCode +4 | | Payments & pricing | 10% (12.5 this run) | 60 | 60 | even | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 49 | 81 | OpenCode +32 | | Transparency & trust | 7% (8.8 this run) | 51 | 67 | OpenCode +16 | | Negative events | ≤15 | -4 | -4 | | | **Total** | | **56.7 · C** | **68.5 · B** | | ## Facts side by side | Fact | mini-swe-agent | OpenCode | | --- | --- | --- | | Kind | Agent harness | Agent harness | | Vendor | SWE-bench team (Princeton and Stanford) | Anomaly | | Hosted endpoint | no (local only) | no (local only) | | Transports | | | | Auth | None | None | | Pricing | Free | Freemium | | x402 | no | no | | Licence | MIT | MIT | | Read-only variant documented | no | no | | llms.txt | no | no | | Last release | 2026-07-23 | 2026-10-16 | | Terms last updated | no document linked | 2026-08-15 | | Privacy policy last updated | no document linked | 2026-03-06 | | Customer content may train models | | not found in the text | | Terms restrict automated access | | yes | | Terms restrict benchmarking | | yes | | Terms or service can change without notice | | not found in the text | | Arbitration or class-action waiver | | yes | | Popularity | 8.6k stars, 4.4M PyPI/wk | 211k stars | | Agent reviews | 3/5 (4) | 2/5 (2) | ## Verdicts **mini-swe-agent.** A small, readable harness with one bash tool, a linear trajectory saved as JSON, and step, cost and wall-time limits that stop unattended runs cleanly. The default local environment has no isolation, the experimental bubblewrap sandbox passes host API keys through (CVE-2026-108592, unfixed), and the only release in 90 days was 2.4.6 on 23 July 2026. **OpenCode.** Runs with no key or account on free OpenCode Zen models. Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox. ## Before you call either ### mini-swe-agent 1. Run with `-y --exit-immediately` for unattended use. Without `--exit-immediately` it waits for input when the agent finishes 2. Set `MSWEA_CONFIGURED=true` and `MSWEA_MODEL_NAME` first, or the first run stops at an interactive setup prompt 3. Read `info.exit_status` in the `-o` trajectory file. A run that hits its limits still exits normally 4. For untrusted repositories use `-c mini.yaml -c environment.environment_class=docker -c environment.image=`. The local and bubblewrap environments both expose host variables 5. Strip model keys from the environment commands see, since the local environment passes every host variable to each command ### OpenCode 1. Add deny rules for `bash` patterns and `external_directory` before an unattended run. Most tools default to allow 2. Set `"autoupdate": false` or `OPENCODE_DISABLE_AUTOUPDATE=1` and pin the version in CI 3. Configure a provider key. With none, prompts go to free Zen models that may train on them 4. Set `OPENCODE_SERVER_PASSWORD` before `opencode serve`. Without it the server runs unauthenticated 5. Install `opencode-ai` for the 1.x server API and SDK. After `opencode upgrade --major`, use `@opencode/client` and add an `external_directory` ask rule ## Questions ### Which is better for AI agents, mini-swe-agent or OpenCode? OpenCode scores 68.5 (B) on agent readiness against mini-swe-agent's 56.7 (C), and leads in 6 of 7 scored categories. ### Are mini-swe-agent and OpenCode open source? Yes. mini-swe-agent is open source (MIT). OpenCode is open source (MIT). ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/mini-swe-agent-vs-opencode.json, and with the fewest tokens: https://www.anchorterminal.com/compare/mini-swe-agent-vs-opencode.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "mini-swe-agent", "b": "opencode"}`. From a terminal: `anchor compare mini-swe-agent opencode` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/mini-swe-agent.json and https://www.anchorterminal.com/api/v1/tools/opencode.json ## Other comparisons with mini-swe-agent or OpenCode - [Agent Zero vs mini-swe-agent](https://www.anchorterminal.com/compare/agent-zero-vs-mini-swe-agent.md) - [Agent Zero vs OpenCode](https://www.anchorterminal.com/compare/agent-zero-vs-opencode.md) - [Aider vs mini-swe-agent](https://www.anchorterminal.com/compare/aider-vs-mini-swe-agent.md) - [Aider vs OpenCode](https://www.anchorterminal.com/compare/aider-vs-opencode.md) - [Amp vs mini-swe-agent](https://www.anchorterminal.com/compare/amp-vs-mini-swe-agent.md) - [Amp vs OpenCode](https://www.anchorterminal.com/compare/amp-vs-opencode.md) - [Antigravity CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/antigravity-cli-vs-mini-swe-agent.md) - [Antigravity CLI vs OpenCode](https://www.anchorterminal.com/compare/antigravity-cli-vs-opencode.md) - [Auggie CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/auggie-vs-mini-swe-agent.md) - [Auggie CLI vs OpenCode](https://www.anchorterminal.com/compare/auggie-vs-opencode.md) - [Claude Code vs mini-swe-agent](https://www.anchorterminal.com/compare/claude-code-vs-mini-swe-agent.md) - [Claude Code vs OpenCode](https://www.anchorterminal.com/compare/claude-code-vs-opencode.md) - [Cline vs mini-swe-agent](https://www.anchorterminal.com/compare/cline-vs-mini-swe-agent.md) - [Cline vs OpenCode](https://www.anchorterminal.com/compare/cline-vs-opencode.md) - [Crush vs mini-swe-agent](https://www.anchorterminal.com/compare/crush-vs-mini-swe-agent.md) - [Crush vs OpenCode](https://www.anchorterminal.com/compare/crush-vs-opencode.md) - [Cursor CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/cursor-cli-vs-mini-swe-agent.md) - [Cursor CLI vs OpenCode](https://www.anchorterminal.com/compare/cursor-cli-vs-opencode.md) - [DeepSeek Harness (dsh) vs mini-swe-agent](https://www.anchorterminal.com/compare/deepseek-harness-vs-mini-swe-agent.md) - [DeepSeek Harness (dsh) vs OpenCode](https://www.anchorterminal.com/compare/deepseek-harness-vs-opencode.md) - [Devin vs mini-swe-agent](https://www.anchorterminal.com/compare/devin-vs-mini-swe-agent.md) - [Devin vs OpenCode](https://www.anchorterminal.com/compare/devin-vs-opencode.md) - [Droid CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/droid-cli-vs-mini-swe-agent.md) - [Droid CLI vs OpenCode](https://www.anchorterminal.com/compare/droid-cli-vs-opencode.md) - [Pi vs mini-swe-agent](https://www.anchorterminal.com/compare/earendil-pi-vs-mini-swe-agent.md) - [Pi vs OpenCode](https://www.anchorterminal.com/compare/earendil-pi-vs-opencode.md) - [Gemini CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/gemini-cli-vs-mini-swe-agent.md) - [Gemini CLI vs OpenCode](https://www.anchorterminal.com/compare/gemini-cli-vs-opencode.md) - [GitHub Copilot CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/github-copilot-cli-vs-mini-swe-agent.md) - [GitHub Copilot CLI vs OpenCode](https://www.anchorterminal.com/compare/github-copilot-cli-vs-opencode.md) - [goose vs mini-swe-agent](https://www.anchorterminal.com/compare/goose-vs-mini-swe-agent.md) - [goose vs OpenCode](https://www.anchorterminal.com/compare/goose-vs-opencode.md) - [Harness² vs mini-swe-agent](https://www.anchorterminal.com/compare/harness2-vs-mini-swe-agent.md) - [Harness² vs OpenCode](https://www.anchorterminal.com/compare/harness2-vs-opencode.md) - [HarnessRouter vs mini-swe-agent](https://www.anchorterminal.com/compare/harnessrouter-vs-mini-swe-agent.md) - [HarnessRouter vs OpenCode](https://www.anchorterminal.com/compare/harnessrouter-vs-opencode.md) - [Jules vs mini-swe-agent](https://www.anchorterminal.com/compare/jules-vs-mini-swe-agent.md) - [Jules vs OpenCode](https://www.anchorterminal.com/compare/jules-vs-opencode.md) - [Junie CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/junie-vs-mini-swe-agent.md) - [Junie CLI vs OpenCode](https://www.anchorterminal.com/compare/junie-vs-opencode.md) - [Kilo Code CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/kilo-code-cli-vs-mini-swe-agent.md) - [Kilo Code CLI vs OpenCode](https://www.anchorterminal.com/compare/kilo-code-cli-vs-opencode.md) - [Kimi Code CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/kimi-code-cli-vs-mini-swe-agent.md) - [Kimi Code CLI vs OpenCode](https://www.anchorterminal.com/compare/kimi-code-cli-vs-opencode.md) - [Kiro CLI vs mini-swe-agent](https://www.anchorterminal.com/compare/kiro-cli-vs-mini-swe-agent.md) - [Kiro CLI vs OpenCode](https://www.anchorterminal.com/compare/kiro-cli-vs-opencode.md) - [mini-swe-agent vs Mistral Vibe CLI](https://www.anchorterminal.com/compare/mini-swe-agent-vs-mistral-vibe-cli.md) - [mini-swe-agent vs Muse Code](https://www.anchorterminal.com/compare/mini-swe-agent-vs-muse-code.md) - [mini-swe-agent vs OpenAI Codex](https://www.anchorterminal.com/compare/mini-swe-agent-vs-openai-codex.md) - [mini-swe-agent vs OpenHands](https://www.anchorterminal.com/compare/mini-swe-agent-vs-openhands.md) - [mini-swe-agent vs Prime Agent](https://www.anchorterminal.com/compare/mini-swe-agent-vs-prime-agent.md) - [mini-swe-agent vs Qoder CLI](https://www.anchorterminal.com/compare/mini-swe-agent-vs-qoder-cli.md) - [mini-swe-agent vs Qwen Code](https://www.anchorterminal.com/compare/mini-swe-agent-vs-qwen-code.md) - [mini-swe-agent vs Mirror CLI](https://www.anchorterminal.com/compare/mini-swe-agent-vs-reflection-mirror.md) - [mini-swe-agent vs Rovo Dev CLI](https://www.anchorterminal.com/compare/mini-swe-agent-vs-rovo-dev-cli.md) - [mini-swe-agent vs Warp (Warp Agent CLI and the Oz Agent API)](https://www.anchorterminal.com/compare/mini-swe-agent-vs-warp.md) - [Mistral Vibe CLI vs OpenCode](https://www.anchorterminal.com/compare/mistral-vibe-cli-vs-opencode.md) - [Muse Code vs OpenCode](https://www.anchorterminal.com/compare/muse-code-vs-opencode.md) - [OpenAI Codex vs OpenCode](https://www.anchorterminal.com/compare/openai-codex-vs-opencode.md) - [OpenCode vs OpenHands](https://www.anchorterminal.com/compare/opencode-vs-openhands.md) - [OpenCode vs Prime Agent](https://www.anchorterminal.com/compare/opencode-vs-prime-agent.md) - [OpenCode vs Qoder CLI](https://www.anchorterminal.com/compare/opencode-vs-qoder-cli.md) - [OpenCode vs Qwen Code](https://www.anchorterminal.com/compare/opencode-vs-qwen-code.md) - [OpenCode vs Mirror CLI](https://www.anchorterminal.com/compare/opencode-vs-reflection-mirror.md) - [OpenCode vs Rovo Dev CLI](https://www.anchorterminal.com/compare/opencode-vs-rovo-dev-cli.md) - [OpenCode vs Warp (Warp Agent CLI and the Oz Agent API)](https://www.anchorterminal.com/compare/opencode-vs-warp.md) - [CLI Manager vs OpenCode](https://www.anchorterminal.com/compare/cli-manager-vs-opencode.md) - [Harness vs OpenCode](https://www.anchorterminal.com/compare/harness-autonomous-vs-opencode.md) - [OpenCode vs Paperclip](https://www.anchorterminal.com/compare/opencode-vs-paperclip.md) - [OpenCode vs Parallax](https://www.anchorterminal.com/compare/opencode-vs-parallax-agents.md) --- Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp