Model-agnostic AI coding agents
Many coding agents are tied to one company's models. If you want to switch providers, compare models, or use a cheaper or local model, pick an agent that supports many providers, or put a gateway in front of the agent you already use. The tools below are from the directory; check each project's docs for the current list of supported providers.
Coding agents that work with many model providers
- OpenCode: Open-source coding agent for the terminal, IDE or desktop that works with many model providers. Official site
- Crush: Charm's terminal coding agent with a polished TUI that works with many model providers. Source-available under FSL-1.1-MIT. Official site
- Pi: Minimal, extensible open-source (MIT) terminal coding agent harness: extensions, skills, prompt templates, many model providers, plus print/JSON, RPC and SDK modes. Official site
- Pax (Pydantic AI): Pydantic's official coding agent for the terminal, built on the Pydantic AI Harness SDK: reads code, edits files and runs commands with every step shown, works with any model, and treats everything (the coding agent, sandboxes, MCP, Logfire tracing) as a plugin; point it at your own Pydantic AI agent with --agent. MIT, in beta; try it with uvx pydantic-ai-pax. Official site
- Goose: Open-source, extensible AI agent with a desktop app, CLI and API that works with any LLM. Official site
- Autohand Code: Open-source (Apache-2.0) code agent for the terminal, VS Code, Zed and Slack: plan mode before edits, agent teams, Unix pipe mode with JSON output, MCP support, 15+ model providers or local models (Ollama, llama.cpp, MLX). Free plan plus paid tiers. Official site
Gateways: keep your agent, change the model
- pansy: Local gateway and desktop app (Linux, macOS, Windows, written in Rust) that lets Claude Code, Codex, Gemini CLI, OpenCode and ~50 other coding agents use any provider's models, translating between Anthropic, OpenAI and Gemini APIs, with key and subscription failover when quotas run out. MIT; runs entirely on your machine. Official site
Things to check before you switch models
- Tool calling. Coding agents depend on the model calling tools reliably. A model that chats well may still struggle with long agent runs.
- Terms of your subscription. Read your provider's terms before routing a plan subscription through another tool.
- Where your code goes. Each provider you add receives your prompts and code. For fully local setups, see local AI coding assistants.
- Costs. Per-token prices differ a lot between models; keep an eye on usage with an observability tool.
Related guides
- AI coding agents that run in your terminal
- Open-source AI coding agents
- Run AI coding models on your own hardware
- Self-hosted AI coding agents
- All CLI agents
Missing a tool? Submit it for free.