Tutorial
OpenAI
Use your OpenAI API key or OpenAI OAuth credential to power OpenClaw Setup with GPT models.
How to get API key
- Go to platform.openai.com/api-keys
- Sign in or create an account
- Click Create new secret key, name it (e.g. "OpenClaw"), and copy it
- Paste the key into the OpenClaw Setup wizard
Tip: Set usage limits in your OpenAI dashboard to control spend.
OpenAI OAuth (alternative to API key)
OpenAI OAuth is an alternative to an API key. Configure billing in your OpenAI billing settings first.
- Open this link: Authorize OpenAI OAuth
- Sign in with OpenAI and authorize the app
- After redirect, copy the full URL from your browser address bar
- Paste that URL into the OpenClaw Setup wizard as the credential when auth method is OAuth
Safety: Only use the official link above. Treat the resulting URL as a secret.
For most users, the API Key method above is simpler. Use OAuth only if you specifically need it.
Ready to launch?
Once you have your OpenAI credentials, go to the dashboard to complete setup.