DEMO A showcase of hev ask⌘K agentic search — running on Coder's real docs. Unaffiliated with Coder; not the official documentation. Official Coder docs ↗ Add ask to your docs ↗
Documentation › Cline

Cline

Note AI Gateway requires the AI Governance Add-On. As of Coder v2.32, deployments without the add-on will not be able to access AI Gateway.

Cline supports both OpenAI and Anthropic models and can be configured to use AI Gateway by setting providers.

Configuration

To configure Cline to use AI Gateway, follow these steps: Cline Settings

Centralized API Key

OpenAI Compatible

  1. Open Cline in VS Code.
  2. Go to Settings.
  3. API Provider: Select OpenAI Compatible.
  4. Base URL: Enter https://coder.example.com/api/v2/aibridge/openai/v1.
  5. OpenAI Compatible API Key: Enter your Coder API token.
  6. Model ID (Optional): Enter the model you wish to use (e.g., gpt-5.2-codex).

Cline OpenAI Settings

Anthropic

  1. Open Cline in VS Code.
  2. Go to Settings.
  3. API Provider: Select Anthropic.
  4. Anthropic API Key: Enter your Coder API token.
  5. Base URL: Enter https://coder.example.com/api/v2/aibridge/anthropic after checking Use custom base URL.
  6. Model ID (Optional): Select your desired Claude model.

Cline Anthropic Settings

BYOK (Personal API Key)

OpenAI Compatible

  1. Open Cline in VS Code.
  2. Go to Settings.
  3. API Provider: Select OpenAI Compatible.
  4. Base URL: Enter https://coder.example.com/api/v2/aibridge/openai/v1.
  5. OpenAI Compatible API Key: Enter your personal OpenAI API key.
  6. Model ID (Optional): Enter the model you wish to use (e.g., gpt-5.2-codex).
  7. Custom Headers: Add X-Coder-AI-Governance-Token with your Coder API token.

Cline BYOK OpenAI Settings

References: Cline Configuration

esc