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
- Confirm that the intended plan or balance access is active in your account.
- For a timed Claude plan, use a key in Claude Unlimited. A Codex-group key follows the separate GPT/Codex route.
- 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.
| Tool | Key goes in | Base URL |
|---|---|---|
| Claude Code | ANTHROPIC_AUTH_TOKEN | https://aiprimetech.io |
| Anthropic SDK (Python/TS) | api_key= or ANTHROPIC_API_KEY | https://aiprimetech.io |
| OpenAI SDK (Python/TS) | api_key= or OPENAI_API_KEY | https://aiprimetech.io/v1 |
| Cursor | Settings → Models → OpenAI key | https://aiprimetech.io/v1 |
| Cline | Extension settings, Anthropic provider | https://aiprimetech.io |
| Continue | apiKey in config.json | https://aiprimetech.io (anthropic) / https://aiprimetech.io/v1 (openai) |
| Aider | ANTHROPIC_API_KEY / OPENAI_API_KEY | ANTHROPIC_API_BASE / OPENAI_API_BASE |
| Codex CLI | OPENAI_API_KEY | https://aiprimetech.io/v1 |
| Zed | Assistant provider settings | https://aiprimetech.io/v1 |
| LangChain / LiteLLM | OPENAI_API_KEY | https://aiprimetech.io/v1 |
| curl (Messages) | x-api-key header | https://aiprimetech.io/v1/messages |
| curl (Chat Completions) | Authorization: Bearer | https://aiprimetech.io/v1/chat/completions |
| OpenCode (provider/npm configuration) | provider.<name>.options.apiKey | https://aiprimetech.io/v1 with @ai-sdk/anthropic |
| Hermes named custom provider | key_env in the provider configuration | https://aiprimetech.io/v1; transport: anthropic_messages |
| OpenClaw custom Claude provider | Provider apiKey; api: anthropic-messages | https://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.