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 Command Line Interface (CLI).

Pre-requisites

  • Openclaw application
  • ChatGpt account

Step 1: Access the OpenClaw CLI

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

  1. Go to Openclaw application list.
  2. Go to Command line (CLI) 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.