Skip to content

Cline ​

Cline officially supports the OpenAI Compatible provider, so it can connect to this service directly.

1. Install ​

Official quick start: https://docs.cline.bot/getting-started/quick-start

According to the official docs:

  • In VS Code, Cursor, Windsurf, or Antigravity, open the Extensions view, search for Cline, and install the official extension
  • In JetBrains IDEs, open Settings / Plugins / Marketplace, search for Cline, install it, and restart the IDE

If you only want the terminal version, see the official CLI install guide: https://docs.cline.bot/cline-cli/installation

2. Open settings ​

Open the Cline settings panel and go to provider configuration.

3. Enter connection details ​

Set API Provider to OpenAI Compatible, then fill in:

  • Base URL: https://codex.openai.com/v1
  • API key: your codex_... or sk-... key
  • Model ID: gpt-5-codex-mini

If the model does not appear in the dropdown, enter gpt-5-codex-mini manually.

4. Verify ​

Click Verify in Cline, or start a new task directly.

If the connection succeeds and Cline can start a session, the setup is complete.

Notes ​

  • Cline's official docs use the OpenAI Compatible provider for this setup
  • The Base URL should be the OpenAI-compatible base path: https://codex.openai.com/v1
  • For this service, do not use the service root and do not append the full /chat/completions endpoint
  • Official docs: https://docs.cline.bot/provider-config/openai-compatible

OpenAI-compatible gateway integration docs