Skip to content

Client Setup

Pick a tool and follow the walkthrough. Every guide uses the same base URL (https://codegate.dev) and the same sk-... key from Console, API Keys.

Native Anthropic protocol

  • Claude Code, Anthropic's official CLI. Two environment variables and you are done.

OpenAI-shaped clients

  • Codex, OpenAI's agentic coding CLI, pointed at CodeGate's OpenAI-compatible endpoint.
  • opencode, an open-source agentic coding CLI, pointed at CodeGate's OpenAI-compatible endpoint.

Raw

  • curl, reference curl blocks for every supported endpoint and streaming.

Something else?

Claude Code, Codex, and opencode are the tools we primarily support. You are free to test other tools that speak either the OpenAI Chat Completions protocol or the Anthropic Messages protocol — point them at:

  • OpenAI shape: base URL https://codegate.dev/v1, key sk-...
  • Anthropic shape: base URL https://codegate.dev, key sk-...

Compatibility and cache hit rate are not guaranteed for tools that aren't widely used, and we can't prioritize fixes for them.

If something breaks, join the Discord and tell us the tool, the exact command, and the response you got.

Built on new-api. Served by CodeGate.