# Pi

> Open-source AI agent toolkit (unified LLM API, agent loop, TUI, coding agent CLI); the CLI runs headless on your own model API key.

- Page: https://vibetoolrank.com/tools/pi/
- Markdown: https://vibetoolrank.com/tools/pi.md
- Official: https://github.com/earendil-works/pi
- Category: Coding Agents (CLI & Cloud) (https://vibetoolrank.com/best/terminal-agents/ · https://vibetoolrank.com/best/terminal-agents.md)
- Pricing: Free open source (MIT); you pay your model provider
- Free tier: Yes: free tool; bring your own API key
- Last checked: 2026-11-30

## Agent test

- Overall: **8.2/10** (outcome 7.8, speed 9.8, cost 10, DX 7, reliability 6.7)
- Cost per run: $0.059 / run
- Tested: 2026-11-25 · Runs: 3 runs · Edition: Pi coding agent 1.6.0 headless (pi --offline -p --mode json --provider google --model gemini-3.5-flash-lite, default thinking level), free-tier Google AI Studio API key, gemini-3.5-flash-lite. Headline is T3+T4+T5 (rubric v0.3).
- Score label: rubric v0.3
- Summary: Headline 8.2 is the mean of T3 9.6, T4 7.5, and T5 7.4 (rubric v0.3). T3 was 4/4 on all three runs. T4 was 12/12, 0/12 and 12/12; T5 was 20/20, 1/20 and 20/20. The two failed runs stopped on free-tier 429s (15 requests/minute on T4 run 2; 250,000 input tokens/minute on T5 run 2) and Pi did not wait the retryDelay, but still exited 0. Cost per run is $0.058570, the mean of all nine runs (shown as $0.059 / run).
- Evidence: docs/tests/pi/RESULTS.md

## Pros / cons

- Pro: Fixed the seeded T3 bug in 3 of 3 runs (8–13s) and passed 20/20 held-out T5 tests on two of three runs
- Pro: Headless --mode json reports split input, cached and output tokens plus the model id on every message
- Pro: Retried 503 'high demand' errors automatically and continued (2s backoff, up to 3 attempts)
- Con: Does not wait out the free-tier 429 retryDelay: T4 run 2 and T5 run 2 stopped mid-task and still exited 0
- Con: A single T5 run can send ~250k input tokens, close to the free tier's whole per-minute budget
- Con: No built-in sandbox or permission gate (by design)

## Sources

- https://github.com/earendil-works/pi

Methodology: https://vibetoolrank.com/methodology/
