Docs.
Detailed guides for every way to connect to 2KEN. Use the same token, base URL, and model configuration from command lines, OpenAI-compatible SDKs, HTTP APIs, code clients, and switching tools.
macOS
Export the Claude Code variables in a macOS terminal session and route requests through the 2KEN-compatible endpoint.
Endpoint
Replace only the base URL. SDK shape, JSON body, and bearer auth stay familiar.
https://apis.2ken.comexport ANTHROPIC_BASE_URL="https://apis.2ken.com"
export ANTHROPIC_API_KEY="sk-2ken-your-key"
export ANTHROPIC_MODEL="claude-sonnet-4"
claudeNotesTemporary exports only apply to the current terminal. For daily use, write them to a shell profile or the client config file.
Ready to ship?
Open the console next, copy a token, inspect model policy, and place the real values into the matching client.