# Pi vs Kilo Code CLI > Kilo Code CLI scores 75.4 (BB) on agent readiness against Pi's 68.4 (B), and leads in 4 of 7 scored categories. Pi leads on payments & pricing. Both do agent harness. Category scores, facts, verdicts and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/earendil-pi-vs-kilo-code-cli - Markdown: https://www.anchorterminal.com/compare/earendil-pi-vs-kilo-code-cli.md (~2,400 tokens) - Slim: https://www.anchorterminal.com/compare/earendil-pi-vs-kilo-code-cli.min.md (~630 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/earendil-pi-vs-kilo-code-cli.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-09 Kilo Code CLI scores 75.4 (BB) on agent readiness against Pi's 68.4 (B), and leads in 4 of 7 scored categories. Pi leads on payments & pricing. Both do agent harness. - Pi: grade B, 68.4/100, rank #203 of 842. Markdown https://www.anchorterminal.com/tools/earendil-pi.md · JSON https://www.anchorterminal.com/api/v1/tools/earendil-pi.json - Kilo Code CLI: grade BB, 75.4/100, rank #47 of 842. Markdown https://www.anchorterminal.com/tools/kilo-code-cli.md · JSON https://www.anchorterminal.com/api/v1/tools/kilo-code-cli.json ## Which one, for what ### Pi (B) Good 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: - Payments & pricing, 60 against 50 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 ### Kilo Code CLI (BB) Good for: Developers who want an open-source terminal agent with per-tool permission rules, an optional sandbox and a choice of provider, and the same engine in VS Code and JetBrains. Ahead on: - Reliability, 85 against 75 - Schema & documentation, 90 against 84 - Security & auth, 66 against 61 - Transparency & trust, 76 against 64 Also in its favour: - Agent-ready, a grade of BB or better - No incidents deducted, where Pi loses 4 points for them Watch for: Telemetry to PostHog is on by default, and the privacy policy and PRIVACY.md don't mention it ## Score by category | Category | Weight | Pi | Kilo Code CLI | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 75 | 85 | Kilo Code CLI +10 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 84 | 90 | Kilo Code CLI +6 | | Agent ergonomics | 13% (16.2 this run) | 76 | 72 | Pi +4 | | Security & auth | 14% (17.5 this run) | 61 | 66 | Kilo Code CLI +5 | | Payments & pricing | 10% (12.5 this run) | 60 | 50 | Pi +10 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 87 | 87 | even | | Transparency & trust | 7% (8.8 this run) | 64 | 76 | Kilo Code CLI +12 | | Negative events | ≤15 | -4 | 0 | | | **Total** | | **68.4 · B** | **75.4 · BB** | | ## Facts side by side | Fact | Pi | Kilo Code CLI | | --- | --- | --- | | Kind | Agent harness | Agent harness | | Vendor | Earendil | Kilo Code Inc. | | Hosted endpoint | no (local only) | no (local only) | | Transports | | | | Auth | None | OAuth or key | | Pricing | Free | Freemium | | x402 | no | no | | Licence | MIT | MIT | | Read-only variant documented | no | no | | llms.txt | no | yes | | Last release | 2026-10-07 | 2026-10-07 | | Terms last updated | no document linked | 2026-09-30 | | Privacy policy last updated | no document linked | 2026-05-29 | | Customer content may train models | | not found in the text | | Terms restrict automated access | | yes | | Terms restrict benchmarking | | not found in the text | | Terms or service can change without notice | | yes | | Arbitration or class-action waiver | | yes | | Popularity | 113k stars, 5.2M npm/wk | 28k stars, 33k npm/wk | ## 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.0.0 is dated 1 October 2026. **Kilo Code CLI.** Shell commands ask before running by default, and an optional operating-system sandbox blocks writes outside the workspace and outbound network. Telemetry to PostHog is on by default and the sandbox is off, so an unattended `kilo run --auto` approves everything not denied unless both are configured first. ## Before you call either ### Pi 1. Run Pi inside a container or VM for unattended work. It has no sandbox and doesn't ask before running shell commands 2. Use `pi --mode json` and wait for `agent_settled`. A failed response doesn't set a nonzero exit code in JSON mode 3. Split the JSONL stream on LF only. Node's `readline` also splits on U+2028 and U+2029, which are valid inside JSON strings 4. Pass `--no-approve` or `--approve` in scripts to make the project trust decision explicit 5. Set `PI_TELEMETRY=0` and `PI_SKIP_VERSION_CHECK=1`, or `PI_OFFLINE=1`, to stop the default requests to pi.dev ### Kilo Code CLI 1. Set `sandbox.enabled` to true in the global `kilo.jsonc` before `kilo run --auto`. `--auto` approves every permission request not explicitly denied 2. Set `experimental.openTelemetry` to false, or `KILO_TELEMETRY_LEVEL` to a value other than `all`, to stop telemetry 3. Add needed hosts to `sandbox.allowed_hosts` in global config. MCP tool calls are unavailable while network restriction is on 4. Without `--auto` a non-interactive run rejects every permission prompt and exits 1 5. Put provider keys in global config or the environment. `{env:VAR}` in a project `kilo.json` is ignored ## Questions ### Which is better for AI agents, Pi or Kilo Code CLI? Kilo Code CLI scores 75.4 (BB) on agent readiness against Pi's 68.4 (B), and leads in 4 of 7 scored categories. Pi leads on payments & pricing. ### Are Pi and Kilo Code CLI open source? Yes. Pi is open source (MIT). Kilo Code CLI is open source (MIT). ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/earendil-pi-vs-kilo-code-cli.json, and with the fewest tokens: https://www.anchorterminal.com/compare/earendil-pi-vs-kilo-code-cli.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "earendil-pi", "b": "kilo-code-cli"}`. From a terminal: `anchor compare earendil-pi kilo-code-cli` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/earendil-pi.json and https://www.anchorterminal.com/api/v1/tools/kilo-code-cli.json ## Other comparisons with Pi or Kilo Code CLI - [Aider vs Pi](https://www.anchorterminal.com/compare/aider-vs-earendil-pi.md) - [Aider vs Kilo Code CLI](https://www.anchorterminal.com/compare/aider-vs-kilo-code-cli.md) - [Amp vs Pi](https://www.anchorterminal.com/compare/amp-vs-earendil-pi.md) - [Amp vs Kilo Code CLI](https://www.anchorterminal.com/compare/amp-vs-kilo-code-cli.md) - [Claude Code vs Pi](https://www.anchorterminal.com/compare/claude-code-vs-earendil-pi.md) - [Claude Code vs Kilo Code CLI](https://www.anchorterminal.com/compare/claude-code-vs-kilo-code-cli.md) - [Cline vs Pi](https://www.anchorterminal.com/compare/cline-vs-earendil-pi.md) - [Cline vs Kilo Code CLI](https://www.anchorterminal.com/compare/cline-vs-kilo-code-cli.md) - [Cursor CLI vs Pi](https://www.anchorterminal.com/compare/cursor-cli-vs-earendil-pi.md) - [Cursor CLI vs Kilo Code CLI](https://www.anchorterminal.com/compare/cursor-cli-vs-kilo-code-cli.md) - [Devin vs Pi](https://www.anchorterminal.com/compare/devin-vs-earendil-pi.md) - [Devin vs Kilo Code CLI](https://www.anchorterminal.com/compare/devin-vs-kilo-code-cli.md) - [Pi vs Gemini CLI](https://www.anchorterminal.com/compare/earendil-pi-vs-gemini-cli.md) - [Pi vs GitHub Copilot CLI](https://www.anchorterminal.com/compare/earendil-pi-vs-github-copilot-cli.md) - [Pi vs goose](https://www.anchorterminal.com/compare/earendil-pi-vs-goose.md) - [Pi vs Kiro CLI](https://www.anchorterminal.com/compare/earendil-pi-vs-kiro-cli.md) - [Pi vs OpenAI Codex](https://www.anchorterminal.com/compare/earendil-pi-vs-openai-codex.md) - [Pi vs OpenCode](https://www.anchorterminal.com/compare/earendil-pi-vs-opencode.md) - [Pi vs OpenHands](https://www.anchorterminal.com/compare/earendil-pi-vs-openhands.md) - [Pi vs Prime Agent](https://www.anchorterminal.com/compare/earendil-pi-vs-prime-agent.md) - [Pi vs Qwen Code](https://www.anchorterminal.com/compare/earendil-pi-vs-qwen-code.md) - [Gemini CLI vs Kilo Code CLI](https://www.anchorterminal.com/compare/gemini-cli-vs-kilo-code-cli.md) - [GitHub Copilot CLI vs Kilo Code CLI](https://www.anchorterminal.com/compare/github-copilot-cli-vs-kilo-code-cli.md) - [goose vs Kilo Code CLI](https://www.anchorterminal.com/compare/goose-vs-kilo-code-cli.md) - [Kilo Code CLI vs Kiro CLI](https://www.anchorterminal.com/compare/kilo-code-cli-vs-kiro-cli.md) - [Kilo Code CLI vs OpenAI Codex](https://www.anchorterminal.com/compare/kilo-code-cli-vs-openai-codex.md) - [Kilo Code CLI vs OpenCode](https://www.anchorterminal.com/compare/kilo-code-cli-vs-opencode.md) - [Kilo Code CLI vs OpenHands](https://www.anchorterminal.com/compare/kilo-code-cli-vs-openhands.md) - [Kilo Code CLI vs Prime Agent](https://www.anchorterminal.com/compare/kilo-code-cli-vs-prime-agent.md) - [Kilo Code CLI vs Qwen Code](https://www.anchorterminal.com/compare/kilo-code-cli-vs-qwen-code.md) - [Kilo Code CLI vs Paperclip](https://www.anchorterminal.com/compare/kilo-code-cli-vs-paperclip.md)