A local gateway that lets every coding agent use every provider's models, with a desktop window
open sourceMITself-hostablefree
pansy is a local LLM gateway and desktop app for macOS, Windows and Linux, written in Rust, that lets coding agents such as Claude Code, Codex, Gemini CLI, OpenCode, Qwen Code and Crush (some fifty in all) use any provider's models: Claude Code on Kimi, Codex on DeepSeek. Its gateway on 127.0.0.1:7267 speaks Anthropic Messages, OpenAI Chat Completions, OpenAI Responses and Gemini and translates between them, with streaming, tool calls and reasoning, and pansy points each agent at it by editing only the setting that matters in the agent's own config, which Disconnect puts back. A provider can hold several keys or subscription accounts (a ChatGPT plan, GitHub Copilot, Gemini Code Assist) that fail over when one is rate-limited or out of quota, and routing groups pick among models. It also lists and resumes agents' sessions, counts usage by day, model, agent and project, masks API keys and personal data before requests leave the computer, and sets a model per run (pansy run) or per folder (.pansy.toml). It has 60 provider presets and runs entirely on your computer, with no account.
Problems it solves
- run Claude Code on Kimi or DeepSeek instead of Anthropic's models
- use my ChatGPT subscription from agents other than Codex
- when one API key hits its rate limit, switch to the next key before my coding agent errors out
- switch every coding agent's model at once without hand-editing their config files
- translate between Anthropic, OpenAI and Gemini API formats so any agent can use any model
- see how many tokens each coding agent and project used across providers
- mask API keys and personal data in prompts before they leave my machine
- use a different model in one terminal than another for the same agent
- find and resume an old Claude Code or Codex session by what was said in it
Features
- one local gateway for Anthropic Messages, OpenAI Chat, OpenAI Responses and Gemini, translating both ways
- points about fifty agents at the gateway by editing one setting; Disconnect restores it
- several keys per provider with automatic failover on rate limits and quota
- ChatGPT plan, GitHub Copilot and Gemini Code Assist subscriptions as providers
- routing groups: in order, in turn or least used, nestable
- profiles to switch every agent's model at once
- sessions of Claude Code, Codex and OpenCode, searchable, with resume commands
- usage by day, model, agent, provider and project, counted locally
- masking of keys, tokens, passwords and personal data in requests
- pansy run for a model per run; .pansy.toml for a model per project
View 3 more
- agents defined as TOML manifests
- 60 provider presets plus any OpenAI-, Anthropic- or Gemini-compatible URL
- imports providers from CC Switch, Claude Code, Codex and OpenCode
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what pansy does.
- CLIProxyAPI Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code and Devin as an OpenAI/Gemini/Claude/Codex compatible API service
- CC Switch All-in-one desktop manager for Claude Code, Codex, Gemini CLI and other AI coding tools: providers, routing, MCP, skills, sessions and usage
- 9Router FREE AI Router & Token Saver
- OmniRoute The free AI gateway: one endpoint for hundreds of providers, with quota-aware fallback
- New API An AI gateway for models, applications, and agents
