BYOAIK — Bring Your Own AI Key: a directory of AI tools that run on your own API key.

Pi

Minimal open-source AI agent toolkit and coding-agent CLI with a unified multi-provider LLM API, BYOK.

Website Source code

Category:
Developer Infrastructure
Pricing:
Open Source
Open source:
Yes (MIT)
Self-hostable:
Yes
Local-first:
Yes
Platforms:
CLI, Library/SDK, Self-hosted, Docker
AI providers (bring your own key):
OpenAI, Anthropic, Google Gemini, Azure OpenAI, OpenRouter, Groq, Mistral, DeepSeek, xAI Grok, Ollama, Hugging Face, Together AI, Fireworks, Custom / OpenAI-compatible
API key storage:
Configured by environment variable
Key risk level:
LOW
Trust score:
90/100

Pi (by earendil-works) is an MIT-licensed AI agent toolkit published as a TypeScript monorepo of npm packages: pi-ai (unified multi-provider LLM API), pi-agent-core (agent runtime/loop with tool calling), pi-tui (terminal UI library with differential rendering), and pi-coding-agent (an interactive coding-agent CLI with read/bash/edit/write tools and session management). The coding agent is installable via npm as @earendil-works/pi-coding-agent and connects to LLM providers through the unified pi-ai layer. BYOK is a first-class, free path: users supply their own provider credentials via environment variables (ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, GROQ_API_KEY, MISTRAL_API_KEY, XAI_API_KEY, OPENROUTER_API_KEY, DEEPSEEK_API_KEY, CEREBRAS_API_KEY, NVIDIA_API_KEY, AZURE_OPENAI_API_KEY, HF_TOKEN, TOGETHER_API_KEY, FIREWORKS_API_KEY, CLOUDFLARE_API_KEY, etc.) or via a CLI --api-key flag, and pay providers directly with no payment to pi.dev. Local and custom OpenAI-compatible models (Ollama, LM Studio, vLLM) are added via a models.json file; Amazon Bedrock and Google Vertex AI are supported through AWS/GCP auth. An optional 'unified billing' hosted offering exists via Cloudflare AI Gateway, but it is fully optional and BYOK runs the tool for free. The project is very actively maintained (release v0.79.9 on 2026-06-20) and highly popular (64k+ stars, 7.8k+ forks, 100+ contributors).

How your API key is handled

Your API key is supplied via an environment variable or local config file. Requests are sent directly to the AI provider. Because it can be self-hosted, your key never has to touch a third-party backend.

Setup

Install the tool, set your provider API key as an environment variable (or in its config file), and pick a model.