Skip to content

Client parameters

Use one Nexus API key. In each client, add a separate connection entry so the client's default connection stays unchanged. Copy the model id from GET /v1/models. Confirm the route family in Models and prices before you rely on tools, images, or a long context window.

Client Protocol Base URL Key field Guide
Codex CLI OpenAI Responses https://api.nexus-hub.tech/v1 NEXUS_API_KEY Codex
ChatGPT / Codex Desktop OpenAI Responses https://api.nexus-hub.tech/v1 NEXUS_API_KEY Codex Desktop
Claude Code Anthropic Messages https://api.nexus-hub.tech ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY Claude Code
Claude Desktop Anthropic Messages https://api.nexus-hub.tech gateway key field, Bearer or x-api-key Claude Desktop
VS Code Responses, Chat Completions, or Messages /v1 for OpenAI, no /v1 for Messages input variable VS Code
Zed OpenAI-compatible or Anthropic-compatible /v1 for OpenAI, no /v1 for Anthropic keychain or environment variable Zed
T3 Code separate Codex or Claude Code profile depends on the profile API key or environment variable T3 Code
CC Switch separate Codex or Claude Code entry depends on the entry protected field CC Switch
Cherry Studio OpenAI Chat, Responses, Messages, or Gemini root or /v1, match the request preview API key field Cherry Studio
Direct API / cURL OpenAI, Anthropic, or Gemini depends on the protocol authorization header Direct API
Custom integration OpenAI, Anthropic, or Gemini depends on the protocol secret store or environment variable Custom integration
Other client custom endpoint depends on the protocol protected client field Other client

Choosing a URL

  • OpenAI Chat and Responses: https://api.nexus-hub.tech/v1.
  • Anthropic Messages: https://api.nexus-hub.tech.
  • Gemini-compatible: https://api.nexus-hub.tech/v1beta.

Enter the base URL rather than the operation's full route. A Responses client appends /responses. An Anthropic client appends /v1/messages. A chat client appends /chat/completions.

ANTHROPIC_AUTH_TOKEN is sent as Authorization: Bearer. ANTHROPIC_API_KEY is sent as x-api-key. Nexus accepts both. Use one of them in a single entry.

Idempotency and retries in clients

Official OpenAI and Anthropic libraries can send Idempotency-Key through extra_headers. The same key and the same body protect a retry after a dropped connection from a second charge. The matrix and examples are in Retries and idempotency.