{"slug": "set-up-coding-agents-in-one-command-with-ai-gateway", "title": "Set up coding agents in one command with AI Gateway", "summary": "Vercel's AI Gateway now lets developers set up coding agents in one command, routing traffic from Claude Code, Codex, OpenCode, and six other agents through a centralized gateway with access to 200+ models, unified dashboards, budgets, and team-wide policies. The setup command `vercel ai-gateway coding-agents setup` automatically detects agents, creates API keys, and writes gateway URLs into each agent's config, with support for Zero Data Retention and provider allowlists.", "body_md": "Using coding agents means setting up multiple accounts, provisioning API keys, and scattering observability and billing. Now, you can route them through [AI Gateway](https://vercel.com/docs/ai-gateway/coding-agents) to centralize all of this and add controls, with set up in one command:\n\n**Any of ****200+ models**** in any agent**, including models the agent has no native support for. The gateway routes the request to whichever model you picked, with automatic fallbacks.\n\n**One dashboard**** for agent traffic**: spend, performance, tokens and more, across the models your agents used.\n\n**Budgets****, resets, and expiry on the **[ keys](https://vercel.com/docs/ai-gateway/authentication-and-byok/api-keys) agents use to control spend.\n\n**Team-wide policy your agents can't route around**: turn on [Zero Data Retention](https://vercel.com/docs/ai-gateway/security-and-compliance/zdr) or restrict [which providers](https://vercel.com/docs/ai-gateway/security-and-compliance/provider-allowlist) may serve requests, and it holds for every agent request without editing an agent's config.\n\n[ Request traces](https://vercel.com/docs/ai-gateway/observability-and-spend/logs), with the cost, tokens, and model behind each request.\n\nTo start:\n\n`vercel ai-gateway coding-agents setup`\n\nconnects Claude Code, Codex, OpenCode, and more in one command. It finds the agents on your machine, creates the API key, and writes the gateway URL and your credentials into each agent's own config format.\n\nAgent | Selecting a model |\n|---|---|\nClaude Code, CLI and desktop |\n|\nCodex, CLI and desktop |\n|\nOpenCode |\n|\nPi |\n|\nCline |\n|\nCursor | Add gateway slugs under Settings, then Models |\nHermes |\n|\nKilo Code |\n|\nOpenClaw | Add slugs to the starter list in |\n\nFiles are edited in place with their formatting preserved, and setup does not pin to a model. This command supports 9 coding agents to utilize the models in AI Gateway. You can also use the `/model`\n\nin-line command for a selector with all models: refer to the [models list](https://vercel.com/ai-gateway/models) for the full catalog.\n\nPass `--yes`\n\nto take the defaults, or set the key up front:", "url": "https://wpnews.pro/news/set-up-coding-agents-in-one-command-with-ai-gateway", "canonical_source": "https://vercel.com/changelog/set-up-coding-agents-in-one-command-with-ai-gateway", "published_at": "2026-08-12 00:00:00+00:00", "updated_at": "2026-08-12 23:45:05.250624+00:00", "lang": "en", "topics": ["ai-infrastructure", "developer-tools", "ai-agents"], "entities": ["Vercel", "AI Gateway", "Claude Code", "Codex", "OpenCode"], "alternates": {"html": "https://wpnews.pro/news/set-up-coding-agents-in-one-command-with-ai-gateway", "markdown": "https://wpnews.pro/news/set-up-coding-agents-in-one-command-with-ai-gateway.md", "text": "https://wpnews.pro/news/set-up-coding-agents-in-one-command-with-ai-gateway.txt", "jsonld": "https://wpnews.pro/news/set-up-coding-agents-in-one-command-with-ai-gateway.jsonld"}}