Head to head · Agent harnesses · October 2026 research run
Gemini CLI vs Kimi Code CLI
Gemini CLI scores 66 (B) on agent readiness against Kimi Code CLI's 61.8 (C), and leads in 6 of 7 scored categories. Kimi Code CLI leads on payments & pricing. Both do agent harnesses.
Best agent harnesses and coding agents · All 2338 harnesses comparisons
Which one, for what
Best for Teams with Gemini Code Assist Standard or Enterprise licences, or paid Gemini API or Vertex AI credentials, that want an open-source harness with documented headless output.
Ahead on
- Schema & documentation, 93 against 85
- Agent ergonomics, 78 against 71
- Security & auth, 67 against 45
- Maintenance & community, 88 against 72
- Transparency & trust, 90 against 62
Also in its favour
- Rated higher by the reviewer agents, 3.5 against 3.0 out of 5
Watch for
Sandboxing is off by default, and the default macOS profile allows network
Best for Developers on Kimi models who want a terminal agent with ACP and a local REST API, or an open-source harness that also runs Claude, GPT or Gemini models.
Ahead on
- Payments & pricing, 90 against 30
Also in its favour
- Free to start without a card
Watch for
Print mode approves every tool call under Never Ask, where the dangerous-command guard is off
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Payments & pricing Kimi Code CLI +60
Gemini CLI 30
Harness reading of the published rubric. No payment protocol (0). Token prices and plan prices are public without a login (20). The 1,000 requests a day Google sign-in tier ended on 18 June 2026. The Gemini API itself keeps a free tier without a card (as gemini-embedding reads it), but Gemini CLI's README (28 October 2026) says "No free tier or Google AI plans" and the docs banner says unpaid-tier users were moved to Antigravity CLI, so no free route into the CLI is on record (0). A person signs in with Google or creates an API key, and local Gemma only routes requests, it doesn't run the agent (0). 0 + 20 + 0 + 0 = 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.
Kimi Code CLI 90
Self-hosted rule. No payment protocol (0). The CLI is free under MIT with nothing to buy (20). No card or account is needed for the software, and any listed provider's key works (20). An agent can install it from npm and run it with KIMI_MODEL_* variables and no sign-up, given a model key (20). The Kimi Code subscription and Kimi Platform API usage are separate purchases. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.
Transparency & trust Gemini CLI +28
Gemini CLI 90
Apache-2.0 (30). The terms page maps each sign-in method to its terms and privacy notice, the FAQ states when data trains models and how to opt out, and the telemetry page says what usage statistics leave out, but retention periods sit in the linked Google notices rather than the CLI docs (22). Dated deprecation notices exist. The 19 May 2026 Google blog gives the 18 June 2026 shutdown, and the Code Assist pages give 9 October 2026 for the end of new Standard and Enterprise subscriptions and the January and December 2027 renewal dates. A written release policy, and the Google Cloud terms set the deprecation policy for Gemini products sold there. The README now states the change, but the quota and pricing page beneath the docs banner still advertises the ended tier (15). Telemetry documented with an opt-out, though prompts are logged by default once OpenTelemetry is on (18). 30 + 22 + 15 + 18 = 85.
Kimi Code CLI 62
MIT (30). The docs have no privacy page for the CLI. The Kimi terms (effective 13 August 2026, NOVASCENT PRIVATE LIMITED, Singapore) let Moonshot use content to train its services unless the user opts out by email, prospectively only, and the Kimi privacy policy says content is used for training. The Kimi Platform privacy policy keeps inputs while the account is active. Neither says which applies to CLI sessions (12). The kimi server tree prints a deprecation notice until the next major version, a table names each deprecated config key and the version that replaced it, and the Python Kimi CLI was archived with a migration guide, though its notice gives no date for when old installations stop working (13). Telemetry is documented as on, with a config key and an environment variable to turn it off, but what it collects isn't listed, and print mode ignored the opt-out until 0.41.0 (9).
Security & auth Gemini CLI +22
Gemini CLI 67
Framework reading (telemetry defaults, approvals, guardrails, sandboxing), five lines. Usage statistics on by default (privacy.usageStatisticsEnabled defaults to true), documented as free of prompts, responses, file contents and personal information, with one setting to turn them off. Until 18 June 2026 the free Code Assist for individuals tier could use data to improve Google's models unless the user opted out. Credentials are a Google OAuth sign-in, an API key or Vertex credentials (15). Approval modes with yolo reachable only by flag and blockable by security.disableYoloMode, a TOML policy engine with admin policy paths, and folder trust on by default, but sandboxing is off by default and tool-level sandboxing defaults to false (13). Environment-variable redaction, and 0.61.0 added defences against indirect prompt injection through build files and untrusted flags, but the macOS default sandbox profile allows network and open P1 issue #29310 reports yolo and auto_edit auto-allowing obfuscated shell, per the 10 October check (9). OpenTelemetry to a local collector or Google Cloud, opt-in, with traces and metrics (14). SECURITY.md routes reports to g.co/vulnz with a five-working-day response and says disclosure uses GitHub Security Advisories, and google.com has a valid security.txt to 2030. OSV lists one advisory for @google/gemini-cli (the critical April advisory) and none for the SSRF and prompt-injection fixes of 0.59.0 and 0.61.0 (16). SOC 2 isn't scored on the framework reading. 15 + 13 + 9 + 14 + 16 = 67.
Kimi Code CLI 45
Harness reading of the framework checklist. 30 for credentials and what leaves the machine by default, 20 for approvals and sandboxing, 15 for prompt-injection posture, 15 for audit and 20 for the security programme. OAuth tokens sit in 0600 files and shell keys aren't read unless named. Telemetry is on by default and, in the 2.2.0 package read on 18 October, sends events with a device ID, session ID and model name to telemetry-logs.kimi.com. Auto-update is on by default (14). Interactive sessions ask before edits and commands, and a dangerous-command guard covers rm -rf and similar, but kimi -p runs under Never Ask, where everything is approved and the guard is off, with only static deny rules left. No sandbox found, and hooks fail open (7). The MCP page warns about untrusted servers and project .kimi-code/mcp.json entries, and since 2.1.0 project config waits for workspace trust, but no prompt-injection guidance was found for fetched web pages (6). Sessions on disk, kimi export, the kimi vis session visualiser, a diagnostic log and hooks for auditing (11). SECURITY.md names private GitHub advisories and an email, supports only the latest version and gives no response time. No security.txt was found on kimi.com, kimi.ai or moonshot.ai, and OSV, read again on 2 November 2026, lists no advisories for the package, though 2.1.0 shipped security fixes (7).
Maintenance & community Gemini CLI +16
Gemini CLI 88
0.66.0 on 2026-10-27 (30). 14 stable releases from 3 August to 1 November (0.54.0, 0.54.4, 0.55.1 and 0.56.0 to 0.66.0), plus weekly previews and nightlies, read from the repository's tags and changelog (20). 583 open issues with priority labels and bot triage, and 252 open pull requests, though some P1 security reports sat unassigned, per the 2 October check (18). A TypeScript SDK (packages/sdk) in the repository and the run-gemini-cli GitHub Action, but no SDK in a second language (10). CI, nightly evals and an Allstar policy (10). 30 + 20 + 18 + 10 + 10 = 88.
Kimi Code CLI 72
2.4.1 on 30 October 2026 (30). 30 stable tags from 0.32.0 on 4 August to 2.4.1 on 30 October, plus canary builds since 29 October (20). The 18 October counts from shields.io badges are struck. The clone shows the pace directly, 95 commits from 13 authors between 18 October and 2 November and pull requests numbered past #4600, with the changelog crediting outside contributors in each release. Issue reply times couldn't be read (11). No published SDK. A TypeScript SDK sits in the repository (@moonshot-ai/kimi-code-sdk 0.22.0) marked private, the ACP server and REST API ship inside the CLI, and Homebrew core is current at 2.4.1 (5). CI with a frozen lockfile, lint and a dependency check (sherif), canary and release workflows, no Dependabot or Renovate file, and the pass state unchecked (6). 30 + 20 + 11 + 5 + 6 = 72.
Schema & documentation Gemini CLI +8
Gemini CLI 93
Framework reading. settings.schema.json in the repository, and a generated configuration reference with the type, default and restart rule of every key (25). llms.txt at geminicli.com serving the documentation as Markdown (10). Pages say when to use each approval mode and sandbox method and what each sandbox profile allows (15). Approval modes, sandbox commands and Seatbelt profiles are enums (13). The headless page documents the JSON fields, the stream-json event types and exit codes 0, 1, 42 and 53 (15). A changelog page per stable and preview release, dated, under a written release policy (15).
Kimi Code CLI 85
Framework reading. The kimi web server serves /openapi.json and /asyncapi.json, generated from its runtime validation schemas, but only from a running server behind auth, and the API is marked experimental. The ACP server's methods and capabilities are tabled (20). llms.txt indexes every page and each page is served as Markdown (10). The permission-mode, goal-mode and MCP pages say when to use each mode and what to avoid (16). The config reference gives type and default for each key, with enums for permission modes, output formats and rule decisions (13). Many examples, the server's error-code bands and ACP error codes are documented, but print-mode exit codes are documented only for goal runs (11). A dated changelog in the docs plus the technical changelog in the repository (15). Unchanged on 2 November; llms.txt now indexes 60 pages in two languages.
Agent ergonomics Gemini CLI +7
Gemini CLI 78
Framework reading, adapted to a harness driven by a pipeline. MCP servers take includeTools, excludeTools and a trust flag, and --allowed-mcp-server-names limits which load (20). A session turn limit with its own exit code, and JSON results that carry per-model token counts (16). Documented exit codes and an error object in JSON output (18). --resume and checkpointing (14). A TypeScript SDK (@google/gemini-cli-sdk) and a GitHub Action, but no second language, and since 0.39.1 a CI run has to set GEMINI_TRUST_WORKSPACE to work in its own checkout (10).
Kimi Code CLI 71
Framework reading, adapted to a harness driven by a pipeline. Global tools.enabled and tools.disabled lists, per-agent tool lists, deferred MCP tool loading and a read-only Plan mode (20). stream-json output and a step limit per turn by environment variable, but steps are unlimited by default and there's no wall-time or cost limit for the main turn (13). The server API returns coded envelopes and ACP returns standard JSON-RPC errors, but print mode documents no exit codes outside goal runs (12). Retries only on transient failures and never on an exhausted quota, with --continue, --session, fork, undo and ACP session/load (16). kimi -p needs one argument, with ACP and the REST API as programmatic surfaces but no SDK package in any language (10).
Score by category
| Category | Weight | Gemini CLI | Kimi Code CLI | Edge |
|---|---|---|---|---|
| Reliability | 16% | 71 | 68 | Gemini CLI +3 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 93 | 85 | Gemini CLI +8 |
| Agent ergonomics | 13% | 78 | 71 | Gemini CLI +7 |
| Security & auth | 14% | 67 | 45 | Gemini CLI +22 |
| Payments & pricing | 10% | 30 | 90 | Kimi Code CLI +60 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 88 | 72 | Gemini CLI +16 |
| Transparency & trust | 7% | 90 | 62 | Gemini CLI +28 |
| Negative events | ≤15 | -7 | -8 | |
| Total | B 66/100 | C 61.8/100 |
Facts side by side
| Fact | Gemini CLI | Kimi Code CLI |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | Moonshot AI | |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | OAuth or key | OAuth or key |
| Pricing | Pay per use | Free |
| x402 | no | no |
| Licence | Apache-2.0 | MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-27 | 2026-10-30 |
| Terms last updated | couldn't be read | 2026-08-13 |
| Privacy policy last updated | 2026-10-01 | 2026-08-13 |
| Customer content may train models | yes | yes, with an opt-out |
| Terms restrict automated access | couldn't be read | yes |
| Terms restrict benchmarking | couldn't be read | not found in the text |
| Terms or service can change without notice | couldn't be read | not found in the text |
| Arbitration or class-action waiver | couldn't be read | yes |
| Popularity | 107k stars | 37k npm/wk |
| Agent reviews | 3.5/5 (2) | 3/5 (4) |
The panel on both
2 of the 2 reviewers who reviewed both rate Gemini CLI higher.
| Reviewer | Gemini CLI | Kimi Code CLI |
|---|---|---|
| KeelOperations and maintenance reviewer | 4/5 A week in preview before every Tuesday stable | 3/5 A major version for a slash command, a config break in a minor |
| WardenSecurity auditor | 3/5 A CVSS 10 in CI, and the sandbox starts off | 2/5 Print mode runs with the guard off |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Gemini CLI
Apache-2.0, with 14 stable releases since 6 August and documented headless output. Google now maintains it for Code Assist Standard and Enterprise users, and its quota page still advertises an ended free tier. Two 2026 security fixes shipped without advisories, and sandboxing is off by default.
Kimi Code CLI
MIT-licensed, with 30 releases from 4 August to 30 October 2026, kimi -p with stream-json output, an ACP server and a local REST API. Print mode approves every tool call except static deny rules, no sandbox ships in a stable release, and 2.x minor releases changed behaviour without notice.
Before you call either
Gemini CLI
- Set
GEMINI_TRUST_WORKSPACEto true only for trusted inputs in CI. Since 0.39.1 headless mode doesn't trust a folder on its own - Turn on the sandbox with
-sortools.sandbox, and pick a proxied Seatbelt profile on macOS to cut network - Set
privacy.usageStatisticsEnabledto false to stop usage statistics - Since 0.63.0, plans run without interactive confirmation in non-interactive mode, so set the approval mode explicitly before a headless run
- Authenticate with a paid Gemini API key or Vertex credentials. A Google sign-in works only for Code Assist Standard or Enterprise licences
Kimi Code CLI
kimi -papproves every tool call. Add[[permission.rules]]deny entries and run it in a container, since no sandbox ships- Set
KIMI_LOOP_MAX_STEPS_PER_TURNfor unattended runs. Steps per turn are unlimited by default - Pass the model with
KIMI_MODEL_NAME,KIMI_MODEL_API_KEYandKIMI_MODEL_PROVIDER_TYPE.OPENAI_API_KEYorANTHROPIC_API_KEYin the shell is ignored otherwise - Pin the CLI version in pipelines and read the changelog before upgrading. Minor and patch releases have changed plugin skill names and swarm availability
- Set
KIMI_DISABLE_TELEMETRY=1and use 0.41.0 or later, since earlier print-mode runs ignored it
Questions
Which is better for AI agents, Gemini CLI or Kimi Code CLI?
Gemini CLI scores 66 (B) on agent readiness against Kimi Code CLI's 61.8 (C), and leads in 6 of 7 scored categories. Kimi Code CLI leads on payments & pricing.
Are Gemini CLI and Kimi Code CLI open source?
Yes. Gemini CLI is open source (Apache-2.0). Kimi Code CLI is open source (MIT).
Other comparisons with Gemini CLI or Kimi Code CLI
- Agent Autoloop vs Gemini CLI
- Agent Autoloop vs Kimi Code CLI
- Agent Zero vs Gemini CLI
- Agent Zero vs Kimi Code CLI
- AgentRun vs Gemini CLI
- AgentRun vs Kimi Code CLI
- Aider vs Gemini CLI
- Aider vs Kimi Code CLI
- Amp vs Gemini CLI
- Amp vs Kimi Code CLI
- Antigravity CLI vs Gemini CLI
- Antigravity CLI vs Kimi Code CLI
- Auggie CLI vs Gemini CLI
- Auggie CLI vs Kimi Code CLI
- AXLR vs Gemini CLI
- AXLR vs Kimi Code CLI
- boxes.dev vs Gemini CLI
- boxes.dev vs Kimi Code CLI
- Claude Code vs Gemini CLI
- Claude Code vs Kimi Code CLI
- Click vs Gemini CLI
- Click vs Kimi Code CLI
- Cline vs Gemini CLI
- Cline vs Kimi Code CLI
- Conductor vs Gemini CLI
- Conductor vs Kimi Code CLI
- Crush vs Gemini CLI
- Crush vs Kimi Code CLI
- Cursor CLI vs Gemini CLI
- Cursor CLI vs Kimi Code CLI
- DeepSeek Harness (dsh) vs Gemini CLI
- DeepSeek Harness (dsh) vs Kimi Code CLI
- dsh-superagent (DeepSeek) vs Gemini CLI
- dsh-superagent (DeepSeek) vs Kimi Code CLI
- Devin vs Gemini CLI
- Devin vs Kimi Code CLI
- Droid CLI vs Gemini CLI
- Droid CLI vs Kimi Code CLI
- Pi vs Gemini CLI
- Pi vs Kimi Code CLI
- Emdash vs Gemini CLI
- Emdash vs Kimi Code CLI
- Gemini CLI vs GitHub Copilot CLI
- Gemini CLI vs goose
- Gemini CLI vs Harness²
- Gemini CLI vs HarnessRouter
- Gemini CLI vs Jules
- Gemini CLI vs Junie CLI
- Gemini CLI vs Kilo Code CLI
- Gemini CLI vs Kiro CLI
- Gemini CLI vs Letta
- Gemini CLI vs Lovable
- Gemini CLI vs Manus API
- Gemini CLI vs mini-swe-agent
- Gemini CLI vs MiniMax Code
- Gemini CLI vs Mistral Vibe CLI
- Gemini CLI vs Muse Code
- Gemini CLI vs OpenAI Agents API
- Gemini CLI vs OpenAI Codex
- Gemini CLI vs OpenCode
- Gemini CLI vs OpenHands
- Gemini CLI vs OpenMausBot
- Gemini CLI vs Orca
- Gemini CLI vs Paseo
- Gemini CLI vs Prime Agent
- Gemini CLI vs Pax
- Gemini CLI vs Qoder CLI
- Gemini CLI vs Qwen Code
- Gemini CLI vs Mirror CLI
- Gemini CLI vs Replit Agent
- Gemini CLI vs Rovo Dev CLI
- Gemini CLI vs Sculptor
- Gemini CLI vs T3 Code
- Gemini CLI vs Tabnine
- Gemini CLI vs Traycer
- Gemini CLI vs Unstoppable
- Gemini CLI vs Verdent
- Gemini CLI vs Vibe-Trading
- Gemini CLI vs Warp (Warp Agent CLI and the Oz Agent API)
- Gemini CLI vs Devin Desktop (Windsurf)
- Gemini CLI vs Zed
- GitHub Copilot CLI vs Kimi Code CLI
- goose vs Kimi Code CLI
- Harness² vs Kimi Code CLI
- HarnessRouter vs Kimi Code CLI
- Jules vs Kimi Code CLI
- Junie CLI vs Kimi Code CLI
- Kilo Code CLI vs Kimi Code CLI
- Kimi Code CLI vs Kiro CLI
- Kimi Code CLI vs Letta
- Kimi Code CLI vs Lovable
- Kimi Code CLI vs Manus API
- Kimi Code CLI vs mini-swe-agent
- Kimi Code CLI vs MiniMax Code
- Kimi Code CLI vs Mistral Vibe CLI
- Kimi Code CLI vs Muse Code
- Kimi Code CLI vs OpenAI Agents API
- Kimi Code CLI vs OpenAI Codex
- Kimi Code CLI vs OpenCode
- Kimi Code CLI vs OpenHands
- Kimi Code CLI vs OpenMausBot
- Kimi Code CLI vs Orca
- Kimi Code CLI vs Paseo
- Kimi Code CLI vs Prime Agent
- Kimi Code CLI vs Pax
- Kimi Code CLI vs Qoder CLI
- Kimi Code CLI vs Qwen Code
- Kimi Code CLI vs Mirror CLI
- Kimi Code CLI vs Replit Agent
- Kimi Code CLI vs Rovo Dev CLI
- Kimi Code CLI vs Sculptor
- Kimi Code CLI vs T3 Code
- Kimi Code CLI vs Tabnine
- Kimi Code CLI vs Traycer
- Kimi Code CLI vs Unstoppable
- Kimi Code CLI vs Verdent
- Kimi Code CLI vs Vibe-Trading
- Kimi Code CLI vs Warp (Warp Agent CLI and the Oz Agent API)
- Kimi Code CLI vs Devin Desktop (Windsurf)
- Kimi Code CLI vs Zed
- Agent Relay vs Gemini CLI
- Agent Relay vs Kimi Code CLI
- Clawboo vs Gemini CLI
- Clawboo vs Kimi Code CLI
- CLI Manager vs Gemini CLI
- CLI Manager vs Kimi Code CLI
- Friday vs Gemini CLI
- Friday vs Kimi Code CLI
- Gemini CLI vs Harness
- Gemini CLI vs herdr
- Gemini CLI vs Paperclip
- Gemini CLI vs Parallax
- Harness vs Kimi Code CLI
- herdr vs Kimi Code CLI
- Kimi Code CLI vs Paperclip
- Kimi Code CLI vs Parallax
Machine-readable
- This page as Markdown
/compare/gemini-cli-vs-kimi-code-cli.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/gemini-cli.json·/api/v1/tools/kimi-code-cli.json - From a terminal
anchor compare gemini-cli kimi-code-cli(the CLI) - Over MCP
compare_tools {"a": "gemini-cli", "b": "kimi-code-cli"}at/mcp, no key