Codex Proxy API Key Integration Guide
This site documents API key usage, code integration, and client configuration for tools such as Codex, Claude Code, OpenCode, Cline, Cursor, Trae, Windsurf, Roo Code, and Kilo Code.
Recommended setup order
For Codex, Claude Code, OpenCode, and similar tools, use this priority order:
- Edit the config file directly (preferred): each tool has an official config file — stable and reliable
- Environment variables: suitable for temporary or shell-session-scoped setup
- cc-switch tool (fallback):
https://github.com/farion1231/cc-switch/releases— it automates the same config and environment-variable changes
1. Get an API Key
- Sign in to your account and open the console or account dashboard.
- Find the
API Keyspage from the account-related menu. - Create a new key.
- Save the plaintext key shown at creation time. It looks like
codex_xxxxxxxxxxxxxxxx.
WARNING
The plaintext API key is shown only once. After the dialog is closed, you usually need to create a new key if you did not save it.
2. Base URL
https://api.gemiaude.com/v13. Navigation
Code Integration: SDK and HTTP examples
Programming Tools
Programming Tools / Codex: Codex CLI setupProgramming Tools / OpenClaw: OpenClaw setupProgramming Tools / OpenCode: OpenCode setupProgramming Tools / Claude Code: Claude Code setupProgramming Tools / Cline: Cline setup with the OpenAI Compatible providerProgramming Tools / Cursor: Cursor setup with a custom OpenAI-compatible configurationProgramming Tools / Trae: Trae setup with a custom OpenAI-compatible configurationProgramming Tools / Windsurf: Windsurf setup with a custom OpenAI-compatible configurationProgramming Tools / Roo Code: Roo Code setup with the OpenAI Compatible providerProgramming Tools / Kilo Code: Kilo Code setup with the OpenAI Compatible provider
Chat & Entertainment
Chat & Entertainment / SillyTavern: SillyTavern OpenAI-compatible setupChat & Entertainment / TavernAI: TavernAI OpenAI-compatible setupChat & Entertainment / NativeTavern: NativeTavern iOS/macOS native client setupChat & Entertainment / Cherry Studio: Cherry Studio custom provider setupChat & Entertainment / Chatbot UI: Chatbot UI custom endpoint setupChat & Entertainment / LobeChat: LobeChat OpenAI proxy setupChat & Entertainment / NextChat: NextChat custom endpoint setupChat & Entertainment / Chatbox: Chatbox OpenAI-compatible setup
4. Authentication
Every request uses a standard Bearer token:
http
Authorization: Bearer codex_your_api_key5. Supported Endpoints
| Method | Path | Purpose |
|---|---|---|
GET | /v1/models | List models currently enabled on the gateway |
POST | /v1/chat/completions | OpenAI Chat Completions compatible endpoint |
POST | /v1/responses | OpenAI Responses compatible endpoint, recommended for Codex CLI and newer SDKs |
POST | /v1/embeddings | Embeddings endpoint; defaults to text-embedding-3-small when model is omitted |
POST | /v1/messages | Anthropic Messages compatible endpoint for clients such as Claude Code |
6. Common Errors
| Status | Meaning |
|---|---|
401 | Invalid or disabled API key, or missing Bearer token |
402 | Account currently unavailable, or no usable request quota |
403 | User banned, or access to the requested model is restricted |
429 | Concurrency limit hit, or a rate limit was triggered |
503 | No active upstream channel, or all channels failed |
