Any agent.Any model.One gateway.
pansy runs one gateway on your computer. Claude Code, Codex, Gemini CLI and the rest send their requests to it, and it sends them on to the model you picked, from any provider.
Free and open source · macOS, Windows, Linux · no account
Pick a model
For every session, one project, or one run.
Three ways to say which model an agent uses. Each leaves your files as you wrote them.
# my Codex, the way I like it-model = "gpt-6.2-sol"+model = "deepseek/deepseek-v4-pro"+model_provider = "pansy"approval_policy = "on-request" # ask before writing +[model_providers.pansy]+name = "Pansy"+base_url = "http://127.0.0.1:7267/v1"+wire_api = "responses"+experimental_bearer_token = "pansy"
On the way through
Translated, failed over, masked.
Four protocols, both ways
Agents speak Anthropic Messages, OpenAI Chat, OpenAI Responses or Gemini, and so do providers. The gateway translates between any two, with streaming, tool calls and reasoning, and passes a request through untouched when both sides match.
Claude Code ⇄ DeepSeekTranslated, both ways.
The next key answers
Give a provider several keys, a subscription several accounts, a group several models. One that is rate-limited, out of quota or refused rests a while, and the next answers before your agent sees an error.
Click a row to break it.
Secrets leave as placeholders
Keys, tokens, passwords and personal data are swapped for placeholders before a request leaves your computer, and swapped back in the reply. The values are never written to disk.
OPENAI_API_KEY={{API_KEY_1xxgd5d1}} DATABASE_URL=postgres://deploy:{{PASSWORD_16cr670l}}@db.internal/app Customer: {{EMAIL_p5ju48td}}, card {{BANK_CARD_n9qs7rlk}}


And
The rest, briefly.
- Subscriptions
- Your ChatGPT, GitHub Copilot and Gemini Code Assist plans serve every agent. pansy reads the sign-in where Codex, Copilot's editors and Gemini CLI keep it.
- Subagents
- Send an agent's subagents to a cheaper model than its lead: the ones that name no model in Claude Code, every one in Codex.
- Routing groups
- group/daily is several models picked as one: in order, in turn, or least used first. Groups can hold groups.
- Profiles
- Save every agent's model under one name, and switch them all back in one move.
- Usage
- Requests, tokens and cache reads by day, model, agent, provider and project, counted on this computer.
- Sessions
- Claude Code's, Codex's and OpenCode's sessions by folder: what each spent and the command that resumes it. Delete goes to a trash that restores.
- Agents as files
- An agent is a short TOML file: where its config is and which keys to set. Add one of your own without waiting for a release.
- Plugins
- Community plugins on Bun add sign-ins to more providers, gateway middleware and agents.
- Doctor
- pansy doctor checks the gateway, every provider and every agent's config, and says how to fix what isn't right.
Providers
60 presets. Paste a key.
The models' makers, relays and servers on your own machine, each with its endpoints, plans and regions. And any OpenAI-, Anthropic- or Gemini-compatible URL.
Anthropic
OpenAI
Gemini
xAI
Mistral
DeepSeek
Qwen
Kimi
GLM
MiniMax
OpenRouter
Vercel
Together
Fireworks
Groq
SiliconFlow
Promises
Your files stay yours.
- An agent's config is edited a key at a time, and put back on Disconnect.
- Keys are stored 0600 and masked wherever they are shown.
- A subscription's sign-in is read where the agent keeps it. pansy stores no token.
- A project file counts only after you say yes to it, and asks again when it changes.
- Prompts and replies are never kept. Usage is counted on this computer.
Three petals. One point.
Your agents and your providers, meeting in one gateway.