Skip to content
AI GatewayAI Gateway Manual

User Guides

Guides for users connecting AI clients to AI Gateway.

This section is for users who connect AI clients — such as Codex (ChatGPT), Claude Code, or the Desktop Companion — to an AI Gateway deployment.

  • Issue and manage Gateway Keys — Issue your own key, set it in a client, and revoke it when you no longer need it.
  • AI agent setup guide — Use common Gateway values, then choose the guide for your AI agent.
  • Codex (ChatGPT) — Connect Codex CLI and the macOS ChatGPT desktop app to AI Gateway and select a model.
  • Cursor — Connect Cursor to an AI Gateway project model.
  • Pi — Configure Pi’s provider file to use an AI Gateway project model.
  • Hermes — Configure Hermes to use an AI Gateway project model.
  • Claude Code — Connect Claude Code CLI to AI Gateway and choose a model.
  • Claude Desktop — Connect Claude Desktop on macOS to AI Gateway with Desktop Companion using a Gateway Key.
  • Desktop Companion CLI — Command reference for the signed macOS Desktop Companion CLI.
  • OpenAI SDK: Connect the SDK to AI Gateway and call Chat, Responses, embeddings, or image generation, including Bedrock text embeddings and Runtime images and Gemini generateContent images.
  • Anthropic SDK — Use existing Anthropic SDK code through AI Gateway by changing only the base URL and API key.
  • Connect MCP servers — Check the Remote MCP servers allowed in a project and connect them with your account.
  • Create MCP toolsets — Bundle tools from several servers behind one endpoint.
  • Connect MCP clients — Issue a Gateway Key and register MCP endpoints in your client.
  • MCP troubleshooting — Causes and fixes for errors MCP clients show.