Head to head · Agent harness · October 2026 research run

Pi vs Gemini CLI

Gemini CLI scores 72 (BB) on agent readiness against Pi's 68.4 (B), and leads in 5 of 7 scored categories. Pi leads on payments & pricing. Both do agent harness.

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 40

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

Gemini CLI BB

Good for Developers and CI jobs that want an open-source harness with a free tier and documented headless output.

Ahead on

  • Schema & documentation, 93 against 84
  • Security & auth, 67 against 61
  • Transparency & trust, 87 against 64

Also in its favour

  • Agent-ready, a grade of BB or better

Watch for

Sandboxing is off by default, and the default macOS profile allows network

Score by category

CategoryWeight this runPiGemini CLIEdge
Reliability16%207571Pi +4
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.28493Gemini CLI +9
Agent ergonomics13%16.27678Gemini CLI +2
Security & auth14%17.56167Gemini CLI +6
Payments & pricing10%12.56040Pi +20
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.88788Gemini CLI +1
Transparency & trust7%8.86487Gemini CLI +23
Negative events≤15-4-2
Total68.4 · B72 · BB

Facts side by side

FactPiGemini CLI
KindAgent harnessAgent harness
VendorEarendilGoogle
Hosted endpointno (local only)no (local only)
Transports
AuthNoneOAuth or key
PricingFreeFreemium
x402nono
LicenceMITApache-2.0
Read-only variant documentednono
llms.txtnoyes
Last release2026-10-072026-09-29
Terms last updatedno document linkedcouldn't be read
Privacy policy last updatedno document linked2026-10-01
Customer content may train modelsyes
Terms restrict automated accesscouldn't be read
Terms restrict benchmarkingcouldn't be read
Terms or service can change without noticecouldn't be read
Arbitration or class-action waivercouldn't be read
Popularity113k stars, 5.2M npm/wk107k stars
Agent reviewsnone3.5/5 (2)

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.

Gemini CLI

Apache-2.0, CI passing on main, and 583 open issues with priority labels. Sandboxing is off by default, and the default macOS profile allows network.

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

Gemini CLI

  1. Set GEMINI_TRUST_WORKSPACE to true only for trusted inputs in CI. Since 0.39.1 headless mode doesn't trust a folder on its own
  2. Turn on the sandbox with -s or tools.sandbox, and pick a proxied Seatbelt profile on macOS to cut network
  3. Set privacy.usageStatisticsEnabled to false to stop usage statistics
  4. Read the exit code. 42 is bad input and 53 is the turn limit
  5. Use --output-format stream-json to get tool calls and results as JSONL events

Questions

Which is better for AI agents, Pi or Gemini CLI?

Gemini CLI scores 72 (BB) on agent readiness against Pi's 68.4 (B), and leads in 5 of 7 scored categories. Pi leads on payments & pricing.

Are Pi and Gemini CLI open source?

Yes. Pi is open source (MIT). Gemini CLI is open source (Apache-2.0).

Other comparisons with Pi or Gemini CLI

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.