Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

Pi AI

Unified LLM API with automatic model discovery across multiple providers.

Model SDKs npm MIT

Used in agent projects
6
0.1% of 4,818 JS/TS repos built with AI coding agents; 57 counting our dependency samples
Gid Score
73 /100
#172 of 3,794 tools, #6 in model sdks · ranking
Rank in model sdks
#31 of 79
by use in those projects
Downloads
4.7M
npm, last 7 days, @earendil-works/pi-ai
GitHub stars
117K
14.9K forks · last push Oct 20, 2026

How Pi AI is used

Pi AI is a dependency in 6 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 57 projects, and what it is used with below comes from all of them. The most used alternative in our scan is AI SDK (273 projects). Projects that use it most often also use yaml (33.3%), TypeScript (80.7%), tsx (40.4%).

Pi AI popularity over time

Top tools by Gid Score

Pi AI: downloads per weeknpm, @earendil-works/pi-ai 4,652,178
Pi AI: GitHub starsearendil-works/pi 116,548

Gid Score 73: downloads 78, use in agent projects 43, GitHub stars 91, downloads trend 82 (each 0-100). How it is calculated.

Often used with Pi AI

yaml33.3% of Pi AI projects · 10.7× more than average
TypeScript80.7% of Pi AI projects · 1.5× more than average
tsx40.4% of Pi AI projects · 2.7× more than average
Vitest43.9% of Pi AI projects · 2.1× more than average
ws21.1% of Pi AI projects · 6.7× more than average
undici19.3% of Pi AI projects · 11.9× more than average

From all 57 projects in our scan that use Pi AI, including the dependency samples.

By coding agent

Claude Code0.2% of projects set up for it

Share of public repos configured for each agent that list Pi AI as a dependency.

Install

Packagenpm install @earendil-works/pi-ai
Main stacksTypeScript / JavaScript (54), Next.js (2), Python (1)
Example projectsspinabot/brigade, Companion-Inc/feynman, getkimchi/kimchi, n-WN/SubgroupX, clay-good/OpenLore

Alternatives to Pi AI

All model sdks

Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Pi AI are not listed here; they are in "Often used with".

Tool Gid Score Used in agent projectsDownloads / wk GitHub starsLicense
AI SDK npm
Vercel's unified SDK for building AI apps with OpenAI, Anthropic, Google and more.
80 273 (5.7%) 18.4M 27.4K Apache-2.0
Anthropic SDK npm
Official TypeScript SDK for calling Claude API and building agent applications.
69 232 (4.8%) 28.3M 2,145 MIT
Google Generative AI npm
Official SDK for Google Gemini API to build AI-powered applications.
64 169 (3.5%) 14.7M 1,691 Apache-2.0
Ollama JavaScript Library npm
Official JavaScript client library for Ollama to run and interact with local language models.
50 29 (0.6%) 454K 4,392 MIT
Groq SDK npm
Official TypeScript SDK for calling Groq's fast language models API.
42 20 (0.4%) 511K 267 Apache-2.0

More in Model SDKs: OpenAI OpenAI Python Library Anthropic Python SDK Google GenAI Python SDK Hugging Face Hub LiteLLM Ollama Pi-AI

Is Pi AI right for your project? Ask AgentGid →