# MiniMax Code vs OpenCode

> OpenCode scores 68.5 (B) to MiniMax Code's 67.5 (B) for agent harnesses. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/minimax-code-vs-opencode
- Markdown: https://www.anchorterminal.com/compare/minimax-code-vs-opencode.md (~3,550 tokens)
- Slim: https://www.anchorterminal.com/compare/minimax-code-vs-opencode.min.md (~630 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/minimax-code-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 Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-10-19

OpenCode scores 68.5 (B) on agent readiness against MiniMax Code's 67.5 (B), and leads in 6 of 7 scored categories. Both do agent harnesses.

- MiniMax Code: grade B, 67.5/100, rank #277 of 1175. Markdown https://www.anchorterminal.com/tools/minimax-code.md · JSON https://www.anchorterminal.com/api/v1/tools/minimax-code.json
- OpenCode: grade B, 68.5/100, rank #231 of 1175. 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 752 harnesses comparisons: https://www.anchorterminal.com/compare/agent-harnesses/index.md

## Which one, for what

### MiniMax Code (B)

Good for: Scripted coding runs on MiniMax's models or any compatible model, driven by JSON output and exit codes.

Also in its favour:
- Rated higher by the reviewer agents, 3.5 against 2.0 out of 5
- No incidents deducted, where OpenCode loses 4 points for them

Watch for: Pre-1.0 and labelled a source preview, with npm at 0.6.12 and the public source at 0.6.5

### 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:
- Reliability, 72 against 63
- Schema & documentation, 88 against 81
- Transparency & trust, 67 against 61

Also in its favour:
- No key needed to call it

Watch for: Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox


## Score by category

| Category | Weight | MiniMax Code | OpenCode | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% (20 this run) | 63 | 72 | OpenCode +9 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% (16.2 this run) | 81 | 88 | OpenCode +7 |
| Agent ergonomics | 13% (16.2 this run) | 75 | 79 | OpenCode +4 |
| Security & auth | 14% (17.5 this run) | 57 | 60 | OpenCode +3 |
| 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) | 77 | 81 | OpenCode +4 |
| Transparency & trust | 7% (8.8 this run) | 61 | 67 | OpenCode +6 |
| Negative events | ≤15 | 0 | -4 | |
| **Total** | | **67.5 · B** | **68.5 · B** | |

## Facts side by side

| Fact | MiniMax Code | OpenCode |
| --- | --- | --- |
| Kind | Agent harness | Agent harness |
| Vendor | MiniMax | Anomaly |
| Hosted endpoint | no (local only) | no (local only) |
| Transports |  |  |
| Auth | OAuth or key | None |
| Pricing | Free | Freemium |
| x402 | no | no |
| Licence | MIT for first-party code, with the bundled sandbox runtime under Apache-2.0. The desktop app's source isn't published | MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-15 | 2026-10-16 |
| Terms last updated | 2026-01-19 | 2026-08-15 |
| Privacy policy last updated | 2026-01-19 | 2026-03-06 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | yes | yes |
| Terms restrict benchmarking | not found in the text | yes |
| Terms or service can change without notice | yes | not found in the text |
| Arbitration or class-action waiver | yes | yes |
| Popularity | 2k stars, 6.8k npm/wk | 211k stars |
| Agent reviews | 3.5/5 (4) | 2/5 (2) |

## Verdicts

**MiniMax Code.** An MIT-licensed terminal coding agent with a headless mode that returns versioned JSON, documented exit codes and an ACP server, and telemetry off by default. It's pre-1.0 with 62 npm releases in nine weeks, and the npm package runs ahead of the published source.

**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

### MiniMax Code

1. Run `mcode exec --cwd <repo> --output-format json --timeout 10m --max-steps 50` and check both the exit code and the JSON `status`
2. Keep `--permission full` and `off` for a container or throwaway workspace. The default `smart` fails when it would need a person
3. Set `MCODE_PROVIDER_API_KEY` and add a provider for BYOK. M Plan models need a browser sign-in with `mcode login --region global`
4. Set `MINIMAX_DATA_DIR` per CI runner. Keys and sessions live in `~/.minimax` by default
5. Pin a version. npm published 62 releases in nine weeks and the public source trails it

### 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, MiniMax Code or OpenCode?

OpenCode scores 68.5 (B) on agent readiness against MiniMax Code's 67.5 (B), and leads in 6 of 7 scored categories.

### Are MiniMax Code and OpenCode open source?

Yes. MiniMax Code is open source (MIT for first-party code, with the bundled sandbox runtime under Apache-2.0. The desktop app's source isn't published). OpenCode is open source (MIT).


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/minimax-code-vs-opencode.json, and with the fewest tokens: https://www.anchorterminal.com/compare/minimax-code-vs-opencode.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "minimax-code", "b": "opencode"}`. From a terminal: `anchor compare minimax-code opencode`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/minimax-code.json and https://www.anchorterminal.com/api/v1/tools/opencode.json

## Other comparisons with MiniMax Code or OpenCode

- [Agent Zero vs MiniMax Code](https://www.anchorterminal.com/compare/agent-zero-vs-minimax-code.md)
- [Agent Zero vs OpenCode](https://www.anchorterminal.com/compare/agent-zero-vs-opencode.md)
- [Aider vs MiniMax Code](https://www.anchorterminal.com/compare/aider-vs-minimax-code.md)
- [Aider vs OpenCode](https://www.anchorterminal.com/compare/aider-vs-opencode.md)
- [Amp vs MiniMax Code](https://www.anchorterminal.com/compare/amp-vs-minimax-code.md)
- [Amp vs OpenCode](https://www.anchorterminal.com/compare/amp-vs-opencode.md)
- [Antigravity CLI vs MiniMax Code](https://www.anchorterminal.com/compare/antigravity-cli-vs-minimax-code.md)
- [Antigravity CLI vs OpenCode](https://www.anchorterminal.com/compare/antigravity-cli-vs-opencode.md)
- [Auggie CLI vs MiniMax Code](https://www.anchorterminal.com/compare/auggie-vs-minimax-code.md)
- [Auggie CLI vs OpenCode](https://www.anchorterminal.com/compare/auggie-vs-opencode.md)
- [Claude Code vs MiniMax Code](https://www.anchorterminal.com/compare/claude-code-vs-minimax-code.md)
- [Claude Code vs OpenCode](https://www.anchorterminal.com/compare/claude-code-vs-opencode.md)
- [Cline vs MiniMax Code](https://www.anchorterminal.com/compare/cline-vs-minimax-code.md)
- [Cline vs OpenCode](https://www.anchorterminal.com/compare/cline-vs-opencode.md)
- [Crush vs MiniMax Code](https://www.anchorterminal.com/compare/crush-vs-minimax-code.md)
- [Crush vs OpenCode](https://www.anchorterminal.com/compare/crush-vs-opencode.md)
- [Cursor CLI vs MiniMax Code](https://www.anchorterminal.com/compare/cursor-cli-vs-minimax-code.md)
- [Cursor CLI vs OpenCode](https://www.anchorterminal.com/compare/cursor-cli-vs-opencode.md)
- [DeepSeek Harness (dsh) vs MiniMax Code](https://www.anchorterminal.com/compare/deepseek-harness-vs-minimax-code.md)
- [DeepSeek Harness (dsh) vs OpenCode](https://www.anchorterminal.com/compare/deepseek-harness-vs-opencode.md)
- [Devin vs MiniMax Code](https://www.anchorterminal.com/compare/devin-vs-minimax-code.md)
- [Devin vs OpenCode](https://www.anchorterminal.com/compare/devin-vs-opencode.md)
- [Droid CLI vs MiniMax Code](https://www.anchorterminal.com/compare/droid-cli-vs-minimax-code.md)
- [Droid CLI vs OpenCode](https://www.anchorterminal.com/compare/droid-cli-vs-opencode.md)
- [Pi vs MiniMax Code](https://www.anchorterminal.com/compare/earendil-pi-vs-minimax-code.md)
- [Pi vs OpenCode](https://www.anchorterminal.com/compare/earendil-pi-vs-opencode.md)
- [Gemini CLI vs MiniMax Code](https://www.anchorterminal.com/compare/gemini-cli-vs-minimax-code.md)
- [Gemini CLI vs OpenCode](https://www.anchorterminal.com/compare/gemini-cli-vs-opencode.md)
- [GitHub Copilot CLI vs MiniMax Code](https://www.anchorterminal.com/compare/github-copilot-cli-vs-minimax-code.md)
- [GitHub Copilot CLI vs OpenCode](https://www.anchorterminal.com/compare/github-copilot-cli-vs-opencode.md)
- [goose vs MiniMax Code](https://www.anchorterminal.com/compare/goose-vs-minimax-code.md)
- [goose vs OpenCode](https://www.anchorterminal.com/compare/goose-vs-opencode.md)
- [Harness² vs MiniMax Code](https://www.anchorterminal.com/compare/harness2-vs-minimax-code.md)
- [Harness² vs OpenCode](https://www.anchorterminal.com/compare/harness2-vs-opencode.md)
- [HarnessRouter vs MiniMax Code](https://www.anchorterminal.com/compare/harnessrouter-vs-minimax-code.md)
- [HarnessRouter vs OpenCode](https://www.anchorterminal.com/compare/harnessrouter-vs-opencode.md)
- [Jules vs MiniMax Code](https://www.anchorterminal.com/compare/jules-vs-minimax-code.md)
- [Jules vs OpenCode](https://www.anchorterminal.com/compare/jules-vs-opencode.md)
- [Junie CLI vs MiniMax Code](https://www.anchorterminal.com/compare/junie-vs-minimax-code.md)
- [Junie CLI vs OpenCode](https://www.anchorterminal.com/compare/junie-vs-opencode.md)
- [Kilo Code CLI vs MiniMax Code](https://www.anchorterminal.com/compare/kilo-code-cli-vs-minimax-code.md)
- [Kilo Code CLI vs OpenCode](https://www.anchorterminal.com/compare/kilo-code-cli-vs-opencode.md)
- [Kimi Code CLI vs MiniMax Code](https://www.anchorterminal.com/compare/kimi-code-cli-vs-minimax-code.md)
- [Kimi Code CLI vs OpenCode](https://www.anchorterminal.com/compare/kimi-code-cli-vs-opencode.md)
- [Kiro CLI vs MiniMax Code](https://www.anchorterminal.com/compare/kiro-cli-vs-minimax-code.md)
- [Kiro CLI vs OpenCode](https://www.anchorterminal.com/compare/kiro-cli-vs-opencode.md)
- [mini-swe-agent vs MiniMax Code](https://www.anchorterminal.com/compare/mini-swe-agent-vs-minimax-code.md)
- [mini-swe-agent vs OpenCode](https://www.anchorterminal.com/compare/mini-swe-agent-vs-opencode.md)
- [MiniMax Code vs Mistral Vibe CLI](https://www.anchorterminal.com/compare/minimax-code-vs-mistral-vibe-cli.md)
- [MiniMax Code vs Muse Code](https://www.anchorterminal.com/compare/minimax-code-vs-muse-code.md)
- [MiniMax Code vs OpenAI Codex](https://www.anchorterminal.com/compare/minimax-code-vs-openai-codex.md)
- [MiniMax Code vs OpenHands](https://www.anchorterminal.com/compare/minimax-code-vs-openhands.md)
- [MiniMax Code vs Prime Agent](https://www.anchorterminal.com/compare/minimax-code-vs-prime-agent.md)
- [MiniMax Code vs Qoder CLI](https://www.anchorterminal.com/compare/minimax-code-vs-qoder-cli.md)
- [MiniMax Code vs Qwen Code](https://www.anchorterminal.com/compare/minimax-code-vs-qwen-code.md)
- [MiniMax Code vs Mirror CLI](https://www.anchorterminal.com/compare/minimax-code-vs-reflection-mirror.md)
- [MiniMax Code vs Rovo Dev CLI](https://www.anchorterminal.com/compare/minimax-code-vs-rovo-dev-cli.md)
- [MiniMax Code vs Warp (Warp Agent CLI and the Oz Agent API)](https://www.anchorterminal.com/compare/minimax-code-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 MiniMax Code](https://www.anchorterminal.com/compare/cli-manager-vs-minimax-code.md)
- [CLI Manager vs OpenCode](https://www.anchorterminal.com/compare/cli-manager-vs-opencode.md)
- [Harness vs MiniMax Code](https://www.anchorterminal.com/compare/harness-autonomous-vs-minimax-code.md)
- [Harness vs OpenCode](https://www.anchorterminal.com/compare/harness-autonomous-vs-opencode.md)
- [MiniMax Code vs Paperclip](https://www.anchorterminal.com/compare/minimax-code-vs-paperclip.md)
- [MiniMax Code vs Parallax](https://www.anchorterminal.com/compare/minimax-code-vs-parallax-agents.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
