XO Docs

API Key

Connect Anthropic, OpenAI, or OpenRouter to your XO project via an API key.

Paste an API key from any supported provider — OpenRouter, Anthropic, or OpenAI. Credentials live in your project's workspace, not on the XO platform.

Prefer subscription auth? See OAuth to connect with your Claude or ChatGPT account instead.

What You'll Need

Connect via API Key

Open Setup → Models

From your project page, open the Setup tab and select Models.

Setup → Models

Save Your API Key

Scroll to the API Keys section. Paste your key into the relevant provider's field (e.g. Anthropic API Key) and click Save.

Save the API key

Restart the OpenClaw Gateway

Model changes only take effect after the Gateway restarts. Open the Launch tab.

Open the Launch tab

Click OpenClaw Restart to apply the new model.

Click OpenClaw Restart

Your model is now connected. Send a test message to your agent to confirm it's responding with the new provider.

On this page