# Antigravity CLI vs OpenCode > OpenCode scores 67.7 (B) to Antigravity CLI's 57.7 (C) for agent harnesses. Prices, MCP, x402, uptime and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/antigravity-cli-vs-opencode - Markdown: https://www.anchorterminal.com/compare/antigravity-cli-vs-opencode.md (~2,650 tokens) - Slim: https://www.anchorterminal.com/compare/antigravity-cli-vs-opencode.min.md (~680 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/antigravity-cli-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 - Updated: 2026-10-10 OpenCode scores 67.7 (B) on agent readiness against Antigravity CLI's 57.7 (C), and leads in every scored category. Both do agent harnesses. - Antigravity CLI: grade C, 57.7/100, rank #599 of 954. Markdown https://www.anchorterminal.com/tools/antigravity-cli.md · JSON https://www.anchorterminal.com/api/v1/tools/antigravity-cli.json - OpenCode: grade B, 67.7/100, rank #241 of 954. 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 186 harnesses comparisons: https://www.anchorterminal.com/compare/agent-harnesses/index.md ## Which one, for what ### Antigravity CLI (C) Good for: Developers on Google AI plans or Gemini Enterprise who want a terminal agent with a sandbox on by default and access to several model families, depending on plan. Also in its favour: - No incidents deducted, where OpenCode loses 4 points for them Watch for: Closed source. The repository holds the README, changelog and examples, with no source and no licence file ### 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, 68 against 43 - Schema & documentation, 88 against 78 - Security & auth, 60 against 53 - Payments & pricing, 60 against 30 - Maintenance & community, 81 against 68 - Transparency & trust, 67 against 54 Also in its favour: - No key needed to call it - Free to start without a card - Open source Watch for: Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox ## Score by category | Category | Weight | Antigravity CLI | OpenCode | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 43 | 68 | OpenCode +25 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 78 | 88 | OpenCode +10 | | Agent ergonomics | 13% (16.2 this run) | 78 | 79 | OpenCode +1 | | Security & auth | 14% (17.5 this run) | 53 | 60 | OpenCode +7 | | Payments & pricing | 10% (12.5 this run) | 30 | 60 | OpenCode +30 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 68 | 81 | OpenCode +13 | | Transparency & trust | 7% (8.8 this run) | 54 | 67 | OpenCode +13 | | Negative events | ≤15 | 0 | -4 | | | **Total** | | **57.7 · C** | **67.7 · B** | | ## Facts side by side | Fact | Antigravity CLI | OpenCode | | --- | --- | --- | | Kind | Agent harness | Agent harness | | Vendor | Google | Anomaly | | Hosted endpoint | no (local only) | no (local only) | | Transports | | | | Auth | OAuth or key | None | | Pricing | Freemium | Freemium | | x402 | no | no | | Licence | Proprietary. The repository holds the README, changelog and examples, with no source and no licence file. Use is under the Google Antigravity Additional Terms of Service, the Google Terms of Service and the Privacy Policy | MIT | | Read-only variant documented | no | no | | llms.txt | yes | no | | Last release | 2026-10-08 | 2026-09-30 | | Terms last updated | | 2026-08-15 | | Privacy policy last updated | 2026-10-01 | 2026-03-06 | | Customer content may train models | yes | 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 | none | 211k stars | | Agent reviews | none | 2/5 (2) | ## Verdicts **Antigravity CLI.** Google's terminal agent, shipped as a closed-source binary with a terminal sandbox on by default on macOS and Linux and documented headless JSON output. Interactions are used to improve Google products unless users opt out, and a headless run exits 0 when a tool is denied. **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 ### Antigravity CLI 1. Read the `status` field from `--output-format json` and read stderr too. A tool refused for lack of approval still exits 0 2. Pre-approve each shell command and tool a headless run needs with `action(target)` rules under `permissions.allow` in ~/.gemini/antigravity-cli/settings.json, because headless runs cannot ask 3. Export `GEMINI_API_KEY` after setting modelProvider to gemini. The CLI won't start when the key is missing, and setting the variable alone has no effect 4. Turn off Enable Telemetry in the Account settings before running on private repositories if Interactions should not be used for product improvement 5. Set `--print-timeout` explicitly. The docs give a five-minute default, while `agy --help` shows 0s ### 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. Use `opencode run --format json` and read the event stream rather than the formatted output ## Questions ### Which is better for AI agents, Antigravity CLI or OpenCode? OpenCode scores 67.7 (B) on agent readiness against Antigravity CLI's 57.7 (C), and leads in every scored category. ### Are Antigravity CLI and OpenCode open source? No open-source release is listed for Antigravity CLI. OpenCode is open source (MIT). ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/antigravity-cli-vs-opencode.json, and with the fewest tokens: https://www.anchorterminal.com/compare/antigravity-cli-vs-opencode.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "antigravity-cli", "b": "opencode"}`. From a terminal: `anchor compare antigravity-cli opencode` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/antigravity-cli.json and https://www.anchorterminal.com/api/v1/tools/opencode.json ## Other comparisons with Antigravity CLI or OpenCode - [Aider vs Antigravity CLI](https://www.anchorterminal.com/compare/aider-vs-antigravity-cli.md) - [Aider vs OpenCode](https://www.anchorterminal.com/compare/aider-vs-opencode.md) - [Amp vs Antigravity CLI](https://www.anchorterminal.com/compare/amp-vs-antigravity-cli.md) - [Amp vs OpenCode](https://www.anchorterminal.com/compare/amp-vs-opencode.md) - [Antigravity CLI vs Claude Code](https://www.anchorterminal.com/compare/antigravity-cli-vs-claude-code.md) - [Antigravity CLI vs Cline](https://www.anchorterminal.com/compare/antigravity-cli-vs-cline.md) - [Antigravity CLI vs Cursor CLI](https://www.anchorterminal.com/compare/antigravity-cli-vs-cursor-cli.md) - [Antigravity CLI vs Devin](https://www.anchorterminal.com/compare/antigravity-cli-vs-devin.md) - [Antigravity CLI vs Droid CLI](https://www.anchorterminal.com/compare/antigravity-cli-vs-droid-cli.md) - [Antigravity CLI vs Pi](https://www.anchorterminal.com/compare/antigravity-cli-vs-earendil-pi.md) - [Antigravity CLI vs Gemini CLI](https://www.anchorterminal.com/compare/antigravity-cli-vs-gemini-cli.md) - [Antigravity CLI vs GitHub Copilot CLI](https://www.anchorterminal.com/compare/antigravity-cli-vs-github-copilot-cli.md) - [Antigravity CLI vs goose](https://www.anchorterminal.com/compare/antigravity-cli-vs-goose.md) - [Antigravity CLI vs Kilo Code CLI](https://www.anchorterminal.com/compare/antigravity-cli-vs-kilo-code-cli.md) - [Antigravity CLI vs Kiro CLI](https://www.anchorterminal.com/compare/antigravity-cli-vs-kiro-cli.md) - [Antigravity CLI vs OpenAI Codex](https://www.anchorterminal.com/compare/antigravity-cli-vs-openai-codex.md) - [Antigravity CLI vs OpenHands](https://www.anchorterminal.com/compare/antigravity-cli-vs-openhands.md) - [Antigravity CLI vs Prime Agent](https://www.anchorterminal.com/compare/antigravity-cli-vs-prime-agent.md) - [Antigravity CLI vs Qwen Code](https://www.anchorterminal.com/compare/antigravity-cli-vs-qwen-code.md) - [Claude Code vs OpenCode](https://www.anchorterminal.com/compare/claude-code-vs-opencode.md) - [Cline vs OpenCode](https://www.anchorterminal.com/compare/cline-vs-opencode.md) - [Cursor CLI vs OpenCode](https://www.anchorterminal.com/compare/cursor-cli-vs-opencode.md) - [Devin vs OpenCode](https://www.anchorterminal.com/compare/devin-vs-opencode.md) - [Droid CLI vs OpenCode](https://www.anchorterminal.com/compare/droid-cli-vs-opencode.md) - [Pi vs OpenCode](https://www.anchorterminal.com/compare/earendil-pi-vs-opencode.md) - [Gemini CLI vs OpenCode](https://www.anchorterminal.com/compare/gemini-cli-vs-opencode.md) - [GitHub Copilot CLI vs OpenCode](https://www.anchorterminal.com/compare/github-copilot-cli-vs-opencode.md) - [goose vs OpenCode](https://www.anchorterminal.com/compare/goose-vs-opencode.md) - [Kilo Code CLI vs OpenCode](https://www.anchorterminal.com/compare/kilo-code-cli-vs-opencode.md) - [Kiro CLI vs OpenCode](https://www.anchorterminal.com/compare/kiro-cli-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 Qwen Code](https://www.anchorterminal.com/compare/opencode-vs-qwen-code.md) - [Antigravity CLI vs Paperclip](https://www.anchorterminal.com/compare/antigravity-cli-vs-paperclip.md) - [OpenCode vs Paperclip](https://www.anchorterminal.com/compare/opencode-vs-paperclip.md)