Back to directory

Developer Tools · AI Assisted Coding

pi

A minimal, extensible toolkit for building and using AI agents

Pi is an MIT-licensed TypeScript monorepo for a unified LLM API, agent runtime, terminal coding assistant, TUI, and related libraries. It targets developers who want a configurable local agent rather than a fixed product. The repository is open source, and no hosted Pi service is advertised.

Key facts

License
MIT
Main language
TypeScript, JavaScript, CSS, HTML, Shell
Maintainer
badlogic and earendil-works community
First released
2025
Latest release
v0.84.4, August 28, 2026
GitHub stars
116,978, October 2026
Hosted option
None advertised; local binaries, Nix, npm, or self-managed deployment

What pi is

Pi is an extensible AI-agent toolkit started by badlogic and maintained in the earendil-works repository with a large contributor community. GitHub listed 116,978 stars and 14,943 forks as of October 2026. The repository was created on August 9, 2025, giving the project a short public history. Top contributors include badlogic, mitsuhiko, davidbrai, and christianklotz. Pi is MIT licensed and does not require a cloud account. Its packages cover agent execution, model access, terminal interfaces, and coding workflows. The project is maintained through GitHub releases and community contributions. No company funding arrangement is described in the repository material, and no paid corporate backing is identified.

How it works

A typical Pi workflow begins in a terminal. Install the CLI, choose a provider and model, open a project directory, and give the agent a task. Pi can inspect files, call tools, edit code, execute shell commands, display streamed responses, and preserve sessions. Extensions add commands, tools, renderers, themes, skills, prompt templates, and event handlers. Packages can be shared through npm or git. The TypeScript SDK supports embedding the agent loop, while print, JSON, and RPC modes support automation. Pi intentionally omits built-in sub-agents and plan mode. Users can add those behaviors through extensions or their own applications, which makes the default workflow small while leaving policy decisions in user-controlled code.

Architecture and recent releases

Pi is mainly written in TypeScript, with JavaScript, CSS, HTML, shell, Dockerfile, Nix, C, Objective-C, PowerShell, and Batchfile also present. Its monorepo includes pi-ai, pi-agent-core, pi-coding-agent, pi-tui, chord, telemetry, and durable runtime packages, allowing developers to work across API access, agent execution, terminal interaction, and supporting infrastructure in one codebase. Built-in integrations include OpenAI, Anthropic, Google, Cloudflare Workers AI, and other providers, giving users configuration choice while requiring attention to provider differences. The v0.70.6 release on April 28, 2026 added Cloudflare Workers AI support and related update behavior. The v0.84.4 release on August 28, 2026 added terminal capability overrides, extension UI events, RPC queue clearing, and a DeepSeek vision model. Release archives target Linux, macOS, and Windows.

License and pricing

MIT permits commercial use, modification, redistribution, sublicensing, and proprietary derivatives, subject to retaining the copyright notice and license notice. Pi has no required subscription or hosted control plane in the repository documentation, which can reduce vendor lock-in and support local deployment choices. Users pay separately for model API calls, provider subscriptions, compute, or deployment, so costs and administration vary with each organization’s architecture and usage. The project documents npm, git, Nix, source builds, and release binaries rather than an enterprise edition. The pi.dev domain is described as donated, while the repository does not advertise a paid cloud service. No official monthly hosted price is published. Organizations must therefore budget for model access, maintenance, security, and operational controls independently.

Limitations and how it compares

Pi suits developers who are comfortable selecting models, managing credentials, and deciding which extensions can access project files and commands. Its default permission model grants the launched process the user's permissions, so setup requires attention to trust boundaries, while the repository recommends containers or sandboxes for stronger isolation. Compared with Continue, Pi offers a broader terminal agent and package model, which favors customization but can require more configuration. Compared with OpenHands, Pi is smaller and more extension-oriented, making it easier to shape for specific workflows while offering fewer built-in layers. Compared with GitHub Copilot, Pi avoids a mandatory hosted subscription but lacks Copilot's enterprise administration. Choose Pi when inspectable TypeScript, provider choice, local execution, and programmable behavior matter more than managed onboarding and centralized policy controls.

Main features

  • Unified model API. Provides typed access to multiple LLM providers through one interface, including OpenAI, Anthropic, Google, Cloudflare, and others.
  • Coding agent CLI. Runs an interactive terminal agent that reads files, invokes tools, edits code, executes commands, and keeps session transcripts.
  • Extension system. Adds custom tools, commands, renderers, themes, skills, prompt templates, and event handlers without changing core packages.
  • TypeScript SDK. Embeds agent loops and supporting libraries into applications that need programmable model and tool execution.
  • Terminal UI. Supports differential rendering, streaming output, permission interactions, keyboard controls, and configurable handling of terminal capabilities.

Self-hosting pi

Pi is primarily self-hosted on a developer workstation or server. Installation can use npm, git packages, Nix, release binaries, or a source checkout. Docker support is documented for isolation, but no mandatory container stack is specified. The basic CLI does not require PostgreSQL, Redis, or object storage. Users supply provider credentials and protect session data. Documented binaries target Linux, macOS, and Windows, with ARM64 and x86-64 support for several platforms. Pin release tags, review extensions before installation, and back up session files and configuration before upgrades. The project does not publish minimum hardware requirements. Nix builds support offline workflows when model data is present.

Strengths

  • MIT licensing permits commercial use and private modification.
  • Provider choice avoids dependence on one model vendor.
  • Extensions cover tools, UI, prompts, and workflow policy.
  • Release binaries reduce the need for a local toolchain.

Drawbacks

  • Minimal defaults require users to design agent conventions.
  • Model API costs remain separate from the free software.
  • Third-party extensions expand the trust and security surface.

What teams replace with it

Teams usually evaluate pi when they want to move off GitHub Copilot, Cursor, Devin.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to pi

Frequently asked questions

Is Pi free to use?

The Pi software is free under MIT, and the repository does not require a hosted subscription. Users can incur charges for model APIs, cloud machines, or other services. A local installation can run with supported providers and credentials, but free software does not mean free inference. The project does not advertise a paid Pi cloud service.

Can businesses use Pi commercially?

Yes. MIT permits commercial use, modification, distribution, sublicensing, and incorporation into proprietary software, subject to retaining the copyright notice and license notice. Businesses remain responsible for provider contracts, data handling, credentials, and extensions. The repository does not describe a separate enterprise license or enterprise pricing program.

How do I self-host Pi?

Install Pi from npm, Nix, a git checkout, or a release binary, then configure a supported model provider. The basic CLI does not require PostgreSQL, Redis, or object storage. Protect credentials and session files, pin versions, and review extensions because they can access tools and project data. Docker or a sandbox can add process isolation.

How does Pi compare with GitHub Copilot?

GitHub Copilot is a managed commercial product with integrated editor features and organizational controls. Pi is an MIT-licensed, provider-neutral agent toolkit that runs locally and can be extended or embedded. Pi offers more control over models and behavior, while Copilot offers standardized onboarding and hosted administration. The choice depends on control requirements and operational preferences.

Does Pi keep my code private?

Pi is local software and does not require a Pi-hosted control plane. Privacy depends on the model provider, integrations, extensions, logs, and machine running the agent. Review provider retention terms, restrict credentials, avoid untrusted extensions, and define rules for sending source code to external APIs. The default process uses the permissions of its launching user.

Similar projects to compare

Sources

Last updated 2026-10-22.