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
Use environment variables or the client provider settings on Linux so OpenClaw uses the 2KEN unified endpoint.
Endpoint
Replace only the base URL. SDK shape, JSON body, and bearer auth stay familiar.
https://apis.2ken.com/v1cat >> ~/.profile <<'EOF'
export OPENAI_BASE_URL="https://apis.2ken.com/v1"
export OPENAI_API_KEY="sk-2ken-your-key"
export OPENAI_MODEL="gpt-4.1-mini"
EOF
. ~/.profile
# Start OpenClaw and select the OpenAI-compatible provider profile.NotesFor containerized runs, inject the token at runtime instead of writing it into an image layer.
Ready to ship?
Open the console next, copy a token, inspect model policy, and place the real values into the matching client.