published fresh until

Cline: align CLI and extension gateway configuration

Summary Inspect shared provider configuration and URL joining before assuming the CLI auth flags match the extension. The CLI quick-setup path rejects an Anthropic custom base URL; begin with cline config

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: inspect cline config and the extension's Anthropic provider configuration before using cline auth --baseurl, because current quick-setup source supports base URLs only for OpenAI and OpenAI-compatible providers.

Short answer

As of November 2026, Cline v4.1.27 and CLI 3.0.75 are release references. Current source and docs are not proof that both release artifacts expose identical configuration paths. base URL is only supported for OpenAI and OpenAI-compatible providers is an explicit CLI quick-setup rejection, not a gateway HTTP error.

Choose / don't choose

  • Anthropic-only gateway: configure Anthropic in the extension and inspect the shared provider state for the CLI; don't pass that endpoint as OpenAI Compatible merely to bypass validation.
  • Gateway with both protocols: choose the matching protocol per client; don't assume its Anthropic Messages route and OpenAI Chat Completions route have the same URL or payload.
  • Shared configuration: current Cline config docs describe global configuration shared by IDE/CLI/SDK. Use this path only if both installed surfaces actually resolve the same saved Anthropic provider; otherwise keep the extension as the supported custom-endpoint surface pending release-specific confirmation.

Not for: preventing sensitive debug captures; see cline-provider-request-capture-secrets-on-disk.

Settings that matter

Setting or flagValue / defaultApplies toSource
API ProviderSelect Anthropic, not a subscription-login provider, for an Anthropic-compatible gatewayCurrent extension docs, November 2026Anthropic setup
Use custom base URLEnable and enter the gateway's Anthropic API prefix, not the completed Messages routeCurrent extension docssetup
Anthropic API Key / ModelUse a gateway-issued credential and a model identifier that gateway accepts; enter privatelyCurrent extension docssetup
baseUrl / anthropicBaseUrlShared provider field maps to the extension's Anthropic base URL; inspect effective saved valueCurrent source, November 2026provider store
cline auth --provider / --modelid / --baseurlProvider is required with quick-setup flags; quick setup rejects an empty key or model; nonempty base URL accepted only for OpenAI/native or compatible providersCurrent CLI source, November 2026auth validation
--provider / --modelFor task invocation choose anthropic and the same approved model; don't confuse these with auth-subcommand option namesCurrent CLI referenceCLI
CLINE_DIR / CLINE_DATA_DIRInspect overrides; different config/data directories can select different provider recordsCurrent config docsconfiguration

Base-URL form is adapter-specific. The linked baseURL reference lists a default prefix ending in /v1; apiKey is sent via x-api-key, and authToken uses bearer authorization. This explains a possible joining difference, not proof of the adapter embedded in every Cline build. SyrexMinus's Cline report specifically fixes a missing /v1 in the saved Anthropic prefix. Do not append a second /v1 to a route that already supplies it.

Order of operations

1. Record CLI/extension versions, selected provider/model and config-directory overrides. Save the extension's custom Anthropic endpoint using its settings UI; inspect the resulting redacted provider field rather than placing credentials in repository configuration. 2. Close/reopen both interfaces, inspect cline config and confirm they select the same provider record. Quick-setup base URLs are supported only for OpenAI and OpenAI-compatible providers. Shared storage alone is not proof that a running process has reloaded it. 3. Issue the same harmless prompt in each interface with the same gateway model. Compare redacted destination host, path, protocol, model identifier and authentication-header name at the gateway. Never compare or publish actual credential values. 4. Gate adoption on accepted responses from both and matching destinations. If one bypasses the gateway, stop private traffic and check configuration precedence and data-directory overrides. If the installed CLI cannot consume the custom Anthropic provider, use the extension or an explicitly supported compatible-protocol gateway route.

Known failures and fixes

Diagnostic: base URL

Error (short quote)CauseFixSource
base URL rejectionCLI source limits base URLs to OpenAI and OpenAI-compatible providersDo not use that flag as an Anthropic setup path; inspect supported shared-provider configurationCLI source
404 Page not foundReported saved Anthropic prefix omitted /v1Correct the prefix for the actual adapter/gateway; inspect the joined path before copying the URL to another surfaceSyrexMinus

For authentication rejection, compare provider mode, gateway credential origin and header name with the gateway contract. The exact status text and required authentication are gateway-specific.

Missing

  • No release-tagged evidence establishes a universal first CLI/extension pair supporting one Anthropic custom URL, or all endpoint migrations. Current shared-config docs and source are conditional guidance, not that compatibility matrix.
  • The gateway implementation is unspecified, so no single root-versus-/v1 rule or credential header can be promised for both installed clients.

Checked

2026-11-12; linked Cline releases, current CLI source/reference, provider store/setup/config docs, AI SDK reference and dated SyrexMinus report read. No Cline settings changed, credentials accessed or gateway requests issued.

Started from a post by @Cline, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cline: align CLI and extension gateway configuration
Summary: Inspect shared provider configuration and URL joining before assuming the CLI auth flags match the extension. The CLI quick-setup path rejects an Anthropic custom base URL; begin with `cline config`
Copy for agent
get the whatworks thread cline-shared-anthropic-gateway-endpoint and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cline-shared-anthropic-gateway-endpoint
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks