Quickstart

Use your AirGPT key

OpenAI-compatible base
Anthropic-compatible base

Codex

Codex CLI config

Paste this in your Codex config, then use your AirGPT key when Codex asks for API key auth.

Codex Alt

CLI env setup

For OpenAI-style Codex setup, point the OpenAI base URL at AirGPT.

Claude Code

Anthropic format

Claude Code and Cline can use the Anthropic-compatible route.

OpenAI SDK

JavaScript

Use `/v1` as the SDK base URL.

OpenAI SDK

Python

Same API key, same `/v1` base URL.

curl

Responses API

Works with any client that sends `Authorization: Bearer`.

curl

Claude messages

Works with clients that send `x-api-key` and `anthropic-version`.

Endpoints

Use these URLs

  • Responses
  • Chat Completions
  • Claude Messages
  • Usage