Home / Docs / API key configuration by tool

API key configuration by tool

Select the right key group, then use the key and base URL required by your client.

Select the access group first

  1. Confirm that the intended plan or balance access is active in your account.
  2. For a timed Claude plan, use a key in Claude Unlimited. A Codex-group key follows the separate GPT/Codex route.
  3. Check available models using the same key before configuring the client.

Then use the client settings below. Keep the key secret and test one short request before starting a larger job.

A single reference so you do not have to open five guides to remember one suffix.

ToolKey goes inBase URL
Claude CodeANTHROPIC_AUTH_TOKENhttps://aiprimetech.io
Anthropic SDK (Python/TS)api_key= or ANTHROPIC_API_KEYhttps://aiprimetech.io
OpenAI SDK (Python/TS)api_key= or OPENAI_API_KEYhttps://aiprimetech.io/v1
CursorSettings → Models → OpenAI keyhttps://aiprimetech.io/v1
ClineExtension settings, Anthropic providerhttps://aiprimetech.io
ContinueapiKey in config.jsonhttps://aiprimetech.io (anthropic) / https://aiprimetech.io/v1 (openai)
AiderANTHROPIC_API_KEY / OPENAI_API_KEYANTHROPIC_API_BASE / OPENAI_API_BASE
Codex CLIOPENAI_API_KEYhttps://aiprimetech.io/v1
ZedAssistant provider settingshttps://aiprimetech.io/v1
LangChain / LiteLLMOPENAI_API_KEYhttps://aiprimetech.io/v1
curl (Messages)x-api-key headerhttps://aiprimetech.io/v1/messages
curl (Chat Completions)Authorization: Bearerhttps://aiprimetech.io/v1/chat/completions
OpenCode (provider/npm configuration)provider.<name>.options.apiKeyhttps://aiprimetech.io/v1 with @ai-sdk/anthropic
Hermes named custom providerkey_env in the provider configurationhttps://aiprimetech.io/v1; transport: anthropic_messages
OpenClaw custom Claude providerProvider apiKey; api: anthropic-messageshttps://aiprimetech.io
Follow the row for your client. Claude Code and Anthropic's SDK use the bare origin; the OpenCode Anthropic-provider example and Hermes custom provider use /v1. API format alone does not determine how a client appends its path.