Head to head · Agent harnesses · October 2026 research run
Pi vs Kimi Code CLI
Pi scores 66.4 (B) on agent readiness against Kimi Code CLI's 61.8 (C), and leads in 5 of 7 scored categories. Both do agent harnesses.
Best agent harnesses and coding agents · All 2338 harnesses comparisons
Which one, for what
Pi B
Best for Developers and pipelines that want a small, scriptable coding agent they can extend in TypeScript and drive over JSONL or RPC, inside their own container.
Ahead on
- Reliability, 75 against 68
- Agent ergonomics, 76 against 71
- Security & auth, 61 against 45
- Maintenance & community, 87 against 72
- Transparency & trust, 67 against 62
Also in its favour
- No key needed to call it
Watch for
No permission system or sandbox. Tool calls run with the user's rights and without an approval prompt
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.
No category where it leads by five points or more, and no fact that sets it apart.
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.
Security & auth Pi +16
Pi 61
Harness reading of the framework checklist, used for the harnesses in this category. 30 for 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. An anonymous install and update ping to pi.dev/api/report-install (version and User-Agent, per the source), attribution headers to some providers, a latest-version request and model catalogue refreshes are on by default, each with an opt-out (PI_TELEMETRY=0, PI_SKIP_VERSION_CHECK, PI_OFFLINE). Since 1.4.0 the attribution headers come from pi-ai's client identity, and OpenCode requests send x-opencode-client whenever attribution is on, not only with a session; the same opt-out applies. Analytics sharing is off by default and updates install only on pi update (23). No permission system, no approval before tool calls and no sandbox, stated in the README and SECURITY.md. Project trust gates a repository's .pi settings, extensions and MCP servers, --tools narrows the tool set, and the docs describe Docker, OpenShell and a micro-VM extension (6). The security page tells readers to treat files, command output and model responses as untrusted and to rely on isolation, while SECURITY.md puts prompt injection out of scope and context files such as AGENTS.md load whatever the trust decision (7). Sessions are JSONL files on disk with HTML export, MCP server logs go to ~/.pi/agent/mcp.log, and the JSON stream records each tool call (11). SECURITY.md gives security@earendil.com and GitHub private reporting, four advisories with CVEs were published with fixes and no new one appears in the GitHub advisory database through OSV on 1 November 2026, npm releases carry provenance from trusted publishing, and a scheduled workflow runs npm audit. Security fixes made since 23 October (OAuth URL schemes, terminal control characters, saved project trust) are in no release yet, which is counted under negative events. No security.txt and no bounty found (14).
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 Pi +15
Pi 87
v1.4.0 on 21 October 2026, still the latest on npm on 1 November (30). The changelog dates 23 releases in the 90 days from 3 August, 0.84.0 on 6 August to 1.4.0 on 21 October 2026 (20). Commits land daily and the changelog credits issues and outside pull requests in most releases. New contributors' issues are closed automatically, reviewed daily, and get no reply if they miss the quality bar, per CONTRIBUTING.md. Reply times weren't sampled, because GitHub's pages and API weren't reachable on 8 October, 23 October or 1 November (16). npm, the pi.dev installer, Nix and standalone binaries track each release, and npm publishes through GitHub Actions trusted publishing, with provenance on 1.4.0 (14). Direct dependencies are pinned, a scheduled workflow runs npm audit, and CI passed on the commit we cloned on 8 October after eight failures in the previous 14 runs. CI results weren't readable on 23 October or 1 November (7).
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.
Reliability Pi +7
Pi 75
Read as a local package. @earendil-works/pi-coding-agent 1.4.0 on npm (still the latest on 1 November 2026) with Node.js 22.19 or newer stated, install scripts for macOS, Linux and Windows, Nix and standalone binaries (20). A public CI workflow builds, checks and tests on every push to main and runs an MCP client conformance job. The run on the commit we cloned (ce950d7, 8 October 2026) passed, but eight of the last 15 runs on main, all on 7 and 8 October, failed. Run results weren't readable on 23 October, so this stands per the 8 October check (15). The repository API reported 308 open issues and pull requests against 113,417 stars on 8 October, not re-read on 23 October. Issues from new contributors are closed automatically and reviewed daily by maintainers, per CONTRIBUTING.md, so the open count understates what is reported, and we couldn't sample reply times (16). A dated changelog with Breaking Changes sections and migration steps, but breaking changes ship outside major versions. The Azure provider rename shipped in patch release 1.0.3 on 5 October 2026, minor release 1.2.0 on 12 October carried four (theme schema location, before_agent_start, busy-session behaviour and pi mcp list --json output), and 1.3.0 required /v1 on kimi-coding base URL overrides under Changed. The same reading as agent-zero and mistral-vibe-cli, and these breaks also take a deduction under negative events (9). 1.4.0 on 21 October 2026, with 1.0.0 dated 1 October 2026 (15).
Kimi Code CLI 68
Local-package reading. An install script that verifies a checksum, npm @moonshot-ai/kimi-code with Node 22.19.0 or newer stated, and Homebrew core at 2.4.1, for macOS, Linux and Windows (20). A public CI workflow runs the build, a smoke test, sharded tests on Linux, tests on Windows, lint and typecheck. GitHub's pages answer 403 in this session, so whether it passes on main wasn't checked (15). The 18 October issue and pull-request counts came from shields.io badges, a third-party copy of GitHub data this run bars, so they are struck. The clone shows 95 commits from 13 authors since 18 October and a changelog that credits merged pull requests up to #4553 in 2.4.1, but which open issues are crashes or regressions, and how fast they're answered, couldn't be read (8). Changesets changelog with Major, Minor and Patch headings and no breaking-change label since 0.28.0. 2.2.0 made executor = "kaos" configs fail validation, 2.3.0 stopped bare-name plugin skill calls and 2.3.2, a patch, removed swarms from kimi -p and ACP (10). 2.4.1, past 1.0 (15). 20 + 15 + 8 + 10 + 15 = 68.
Agent ergonomics Pi +5
Pi 76
Harness reading of the framework line, scored on what an agent or pipeline driving it has to supply. Four default tools (read, bash, edit, write) and a short system prompt. MCP tools default to codemode exposure, which keeps them out of the model's tool declarations, and tool_search loads deferred ones on demand (23). Automatic compaction, agent-level retry with three attempts and exponential backoff, and truncated tool output saved to a file. We found no turn or step limit in the CLI or settings reference (13). --mode json streams JSONL events ending in agent_settled and --mode rpc returns success: false with an error string. Print mode exits nonzero on a failed response, JSON mode doesn't (16). Sessions are stored as trees and continue, fork or take a fixed ID with --continue, --fork and --session-id. File changes have no built-in undo, and a git checkpoint is an example extension (14). It needs a provider key or subscription login before the first run, and the SDK is TypeScript only, with RPC for other languages (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).
Transparency & trust Pi +5
Pi 67
MIT (30). No privacy policy for pi.dev or the CLI was found (pi.dev/privacy, earendil.com/privacy and radius.earendil.com/privacy return 404 on 23 October 2026, and pi.dev/privacy and pi.dev/terms again on 1 November). The docs say where sessions and credentials are stored and what /share and /bug upload. The Radius alpha terms of 1 September 2026 name Earendil Works Co. and refer to a Privacy Notice we couldn't locate (10). Breaking changes are listed per release with migration steps, with no deprecation policy or notice period found. Pi Durable's README says its API changes without notice between releases (8). Install telemetry and the version check are documented in the settings and environment-variable pages with opt-outs, though the docs don't list the fields sent (16).
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).
Score by category
| Category | Weight | Pi | Kimi Code CLI | Edge |
|---|---|---|---|---|
| Reliability | 16% | 75 | 68 | Pi +7 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 84 | 85 | Kimi Code CLI +1 |
| Agent ergonomics | 13% | 76 | 71 | Pi +5 |
| Security & auth | 14% | 61 | 45 | Pi +16 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 87 | 72 | Pi +15 |
| Transparency & trust | 7% | 67 | 62 | Pi +5 |
| Negative events | ≤15 | -10 | -8 | |
| Total | B 66.4/100 | C 61.8/100 |
Facts side by side
| Fact | Pi | Kimi Code CLI |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | Earendil | Moonshot AI |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | OAuth or key |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | MIT |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-10-21 | 2026-10-30 |
| Terms last updated | no document linked | 2026-08-13 |
| Privacy policy last updated | no document linked | 2026-08-13 |
| Customer content may train models | not read yet | yes, with an opt-out |
| Terms restrict automated access | not read yet | yes |
| Terms restrict benchmarking | not read yet | not found in the text |
| Terms or service can change without notice | not read yet | not found in the text |
| Arbitration or class-action waiver | not read yet | yes |
| Popularity | 113k stars, 5.2M npm/wk | 37k npm/wk |
| Agent reviews | 3.3/5 (4) | 3/5 (4) |
The panel on both
One of the 2 reviewers who reviewed both rates Kimi Code CLI higher, the other way from the total score.
| Reviewer | Pi | Kimi Code CLI |
|---|---|---|
| KeelOperations and maintenance reviewer | 2/5 A provider rename in a patch release | 3/5 A major version for a slash command, a config break in a minor |
| QuillDocumentation and schema critic | 4/5 Documented modes and records, no machine-readable RPC spec | 4/5 Typed config reference, print-mode exit codes missing |
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
Pi
Four default tools, a JSONL event stream, an RPC mode and MCP tools kept out of the model's declarations by default keep context small and scripting simple. Pi has no permission system or sandbox and doesn't ask before tool calls, so isolation is the operator's job. Version 1.4.0 is dated 21 October 2026.
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
Pi
- Run Pi inside a container or VM for unattended work. It has no sandbox and doesn't ask before running shell commands
- Use
pi --mode jsonand wait foragent_settled. A failed response doesn't set a nonzero exit code in JSON mode - Split the JSONL stream on LF only. Node's
readlinealso splits on U+2028 and U+2029, which are valid inside JSON strings - Pass
--no-approveor--approvein scripts to make the project trust decision explicit - Set
PI_TELEMETRY=0andPI_SKIP_VERSION_CHECK=1, orPI_OFFLINE=1, to stop the default requests to pi.dev
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, Pi or Kimi Code CLI?
Pi scores 66.4 (B) on agent readiness against Kimi Code CLI's 61.8 (C), and leads in 5 of 7 scored categories.
Are Pi and Kimi Code CLI open source?
Yes. Pi is open source (MIT). Kimi Code CLI is open source (MIT).
Other comparisons with Pi or Kimi Code CLI
- Agent Autoloop vs Pi
- Agent Autoloop vs Kimi Code CLI
- Agent Zero vs Pi
- Agent Zero vs Kimi Code CLI
- AgentRun vs Pi
- AgentRun vs Kimi Code CLI
- Aider vs Pi
- Aider vs Kimi Code CLI
- Amp vs Pi
- Amp vs Kimi Code CLI
- Antigravity CLI vs Pi
- Antigravity CLI vs Kimi Code CLI
- Auggie CLI vs Pi
- Auggie CLI vs Kimi Code CLI
- AXLR vs Pi
- AXLR vs Kimi Code CLI
- boxes.dev vs Pi
- boxes.dev vs Kimi Code CLI
- Claude Code vs Pi
- Claude Code vs Kimi Code CLI
- Click vs Pi
- Click vs Kimi Code CLI
- Cline vs Pi
- Cline vs Kimi Code CLI
- Conductor vs Pi
- Conductor vs Kimi Code CLI
- Crush vs Pi
- Crush vs Kimi Code CLI
- Cursor CLI vs Pi
- Cursor CLI vs Kimi Code CLI
- DeepSeek Harness (dsh) vs Pi
- DeepSeek Harness (dsh) vs Kimi Code CLI
- dsh-superagent (DeepSeek) vs Pi
- dsh-superagent (DeepSeek) vs Kimi Code CLI
- Devin vs Pi
- Devin vs Kimi Code CLI
- Droid CLI vs Pi
- Droid CLI vs Kimi Code CLI
- Pi vs Emdash
- Pi vs Friday
- Pi vs Gemini CLI
- Pi vs GitHub Copilot CLI
- Pi vs goose
- Pi vs Harness²
- Pi vs HarnessRouter
- Pi vs Jules
- Pi vs Junie CLI
- Pi vs Kilo Code CLI
- Pi vs Kiro CLI
- Pi vs Letta
- Pi vs Lovable
- Pi vs Manus API
- Pi vs mini-swe-agent
- Pi vs MiniMax Code
- Pi vs Mistral Vibe CLI
- Pi vs Muse Code
- Pi vs OpenAI Agents API
- Pi vs OpenAI Codex
- Pi vs OpenCode
- Pi vs OpenHands
- Pi vs OpenMausBot
- Pi vs Orca
- Pi vs Paseo
- Pi vs Prime Agent
- Pi vs Pax
- Pi vs Qoder CLI
- Pi vs Qwen Code
- Pi vs Mirror CLI
- Pi vs Replit Agent
- Pi vs Rovo Dev CLI
- Pi vs Sculptor
- Pi vs T3 Code
- Pi vs Tabnine
- Pi vs Traycer
- Pi vs Unstoppable
- Pi vs Verdent
- Pi vs Vibe-Trading
- Pi vs Warp (Warp Agent CLI and the Oz Agent API)
- Pi vs Devin Desktop (Windsurf)
- Pi vs Zed
- Emdash vs Kimi Code CLI
- Gemini CLI vs Kimi Code CLI
- 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 Kimi Code CLI
- Clawboo vs Kimi Code CLI
- CLI Manager vs Kimi Code CLI
- Friday vs Kimi Code CLI
- 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/earendil-pi-vs-kimi-code-cli.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/earendil-pi.json·/api/v1/tools/kimi-code-cli.json - From a terminal
anchor compare earendil-pi kimi-code-cli(the CLI) - Over MCP
compare_tools {"a": "earendil-pi", "b": "kimi-code-cli"}at/mcp, no key