Pi: the 85k-star open-source Claude Code you own and self-host

The minimal harness behind OpenClaw is having a moment: a sub-1k-token prompt, 300+ models, build-your-own tooling, and sharply lower cost per task.

Nowline Nov 9 4:00 AM banner

Top AI stories from the last hour

Top AI stories from the last hour

Copy markdown

  • An open-source Claude Code, having its moment

    Pi (pi.dev) — an MIT-licensed coding agent from libGDX creator Mario Zechner, now maintained under Earendil — is climbing Hacker News on a wave of "switched from Claude Code" writeups, with 85k+ GitHub stars and OpenClaw running on top of it. You can try it today with your own API keys or fully local via Ollama, vLLM or llama.cpp.

  • Four tools, a sub-1k-token prompt, you build the rest

    Pi gives the model just read, write, edit and bash (grep/find/ls behind a flag) and a system prompt under 1,000 tokens — against Claude Code's former ~10-14k. There's no built-in MCP, sub-agents, plan mode or permissions; you add them as TypeScript extensions that hook 25 event types, and branch any turn via session trees (/tree, /fork). The pi-ai layer spans 300+ models across 20+ providers, swappable mid-session with Ctrl+P.

  • ~6x cheaper per success — read the caveats

    In Composio's 30-task benchmark on DeepSeek V4 Flash, Pi passed 20/30 to Claude Code's 16/30 at $0.56 vs $3.12 total, roughly $0.028 vs $0.195 per success. Caveats: Composio sells agent tooling and the runs mixed reasoning levels and APIs. Pi itself is free, but Anthropic now bars third-party harnesses from Claude Pro/Max plans, so running Claude inside Pi means paying API rates.