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:
- Go to Openclaw application list.
- 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.
