How to connect Managed OpenClaw to ChatGPT via OAuth

Securely connect your Managed OpenClaw instance to your ChatGPT account using OAuth—no API keys required.

Updated 2 weeks ago

Connecting your Managed OpenClaw instance to your ChatGPT account via OAuth allows your AI agents to use your existing subscription without manual API keys. This process is handled directly through the OpenClaw Terminal.

Pre-requisites

Step 1 – Access the OpenClaw Terminal

To manage your Managed OpenClaw instance, you need to use the dedicated command-line interface:

  1. Access your OpenClaw instance.
  2. Navigate to your OpenClaw dashboard by clicking the Manage button next to your application.
  3. Click on Dashboard.
  4. Click on Terminal button.

Step 2 – Authenticate via OAuth

In the CLI , run the following command and follow instructions:

openclaw models auth login --provider openai-codex

Step 3 – Restart gateway

In the CLI , run the following command:

openclaw gateway restart

Your Managed OpenClaw instance is now successfully connected to your ChatGPT account. You can now start deploying agents that utilize your ChatGPT models.

See How to use your ChatGPT subscription in Managed OpenClaw for other details about using your ChatGPT subscription in Managed OpenClaw.