Tutorial

OpenAI

Use your OpenAI API key or OpenAI OAuth credential to power OpenClaw Setup with GPT models.

How to get API key

  1. Go to platform.openai.com/api-keys
  2. Sign in or create an account
  3. Click Create new secret key, name it (e.g. "OpenClaw"), and copy it
  4. 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.

  1. Open this link: Authorize OpenAI OAuth
  2. Sign in with OpenAI and authorize the app
  3. After redirect, copy the full URL from your browser address bar
  4. 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.

Cookie preferences