Skip to content
AppClap
Pi Coding Agent is unclaimed —
P

Pi Coding Agent

A terminal-based coding agent·pi.dev

Visit

Pi is a minimal terminal-based coding agent harness that can be extended with TypeScript extensions, skills, prompt templates, and themes. It supports 15+ model providers and hundreds of models, with authentication via API keys or OAuth and the ability to switch models mid-session. Sessions are stored as shareable, tree-structured history that can be branched, exported to HTML, or shared as a GitHub gist. It offers four operating modes: interactive, print/JSON, RPC, and an SDK for embedding in other applications.

What it's for

Interactive terminal coding sessionsGenerating shell scripts via print modeStreaming structured JSON events for automationEmbedding the agent in other applications via SDKBuilding custom extensions, skills, prompt templates, and themesSharing and installing community-built Pi packagesBranching and reviewing session history as a treeRunning the agent inside containers/sandboxes for security

Features 20

  • AGENTS.md project instructions loaded at startup
  • Automatic context compaction when nearing context limit
  • Credential export commands (pi auth print-api-key, pi auth print-bearer-token)
  • Custom providers and models via models.json or extensions
  • Custom themes for the terminal UI
  • Cycle through favorite models with Ctrl+P
  • Export sessions to HTML or share via GitHub gist with /share
  • Four modes: interactive, print/JSON, RPC, and SDK
  • Install extensions/packages from npm or git
  • Minimal agent harness with extensibility via TypeScript extensions
  • Pi packages: bundle and share extensions, skills, prompts, and themes via npm or git
  • Prompt templates expandable via slash commands
  • RPC mode: JSON protocol over stdin/stdout for non-Node integrations
  • Sandboxing and containerization support (Gondolin, Docker, OpenShell)
  • Skills: capability packages with instructions and tools, loaded on-demand
  • Steering messages (Enter) and follow-up messages (Alt+Enter) while agent works
  • Support for 15+ model providers and hundreds of models
  • Switch models mid-session with /model or Ctrl+L
  • SYSTEM.md to replace or append to default system prompt
  • Tree-structured, branchable session history via /tree

At a glance

open sourceAPI
TypeCLI tool
DeploymentInstalled (local)
PlatformsWindows, macOS, Linux
CompanyEarendil Inc.

Integrations

AnthropicOpenAIGoogleAzureAmazon BedrockMistralGroqCerebrasxAIHugging FaceKimi For CodingMiniMaxNVIDIAOpenRouterOllamaGitHub CopilotGitHubDiscordnpmtmuxDockerGondolinOpenShellMCPllama.cpp

Resources

Last checked 28 days ago·