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.
Linux
Write the Claude Code-compatible address and token into a Linux shell profile for remote development machines or containers.
Endpoint
Replace only the base URL. SDK shape, JSON body, and bearer auth stay familiar.
https://apis.2ken.comcat >> ~/.bashrc <<'EOF'
export ANTHROPIC_BASE_URL="https://apis.2ken.com"
export ANTHROPIC_API_KEY="sk-2ken-your-key"
export ANTHROPIC_MODEL="claude-sonnet-4"
EOF
source ~/.bashrc
claudeNotesOn shared servers, avoid putting personal tokens in a shared profile. Prefer project-level secrets or scoped tokens.
Ready to ship?
Open the console next, copy a token, inspect model policy, and place the real values into the matching client.