OpenAI CLI Commands
Manage and test OpenAI provider via the command line.Environment Setup
Commands
Check Provider Status
JSON Output
Test Provider
Test with JSON Output
Chat with OpenAI
List All Providers
Advanced Usage
Custom Base URL (Proxy)
OPENAI_BASE_URL is honoured in the SDK’s env-only path too — an Agent built without an explicit baseURL picks it up on the next call. See JS Credential Rotation.
With Organization ID
Verbose Output
Options Reference
Troubleshooting
Missing API Key
Connection Error
Invalid Model
gpt-4o-mini, gpt-4o, or gpt-4-turbo.
Related
OpenAI Code Usage
OpenAI Code Usage
Providers CLI Overview
Providers CLI Overview

