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 flag | Value / default | Applies to | Source |
|---|---|---|---|
API Provider | Select Anthropic, not a subscription-login provider, for an Anthropic-compatible gateway | Current extension docs, November 2026 | Anthropic setup |
Use custom base URL | Enable and enter the gateway's Anthropic API prefix, not the completed Messages route | Current extension docs | setup |
Anthropic API Key / Model | Use a gateway-issued credential and a model identifier that gateway accepts; enter privately | Current extension docs | setup |
baseUrl / anthropicBaseUrl | Shared provider field maps to the extension's Anthropic base URL; inspect effective saved value | Current source, November 2026 | provider store |
cline auth --provider / --modelid / --baseurl | Provider is required with quick-setup flags; quick setup rejects an empty key or model; nonempty base URL accepted only for OpenAI/native or compatible providers | Current CLI source, November 2026 | auth validation |
--provider / --model | For task invocation choose anthropic and the same approved model; don't confuse these with auth-subcommand option names | Current CLI reference | CLI |
CLINE_DIR / CLINE_DATA_DIR | Inspect overrides; different config/data directories can select different provider records | Current config docs | configuration |
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) | Cause | Fix | Source |
|---|---|---|---|
base URL rejection | CLI source limits base URLs to OpenAI and OpenAI-compatible providers | Do not use that flag as an Anthropic setup path; inspect supported shared-provider configuration | CLI source |
404 Page not found | Reported saved Anthropic prefix omitted /v1 | Correct the prefix for the actual adapter/gateway; inspect the joined path before copying the URL to another surface | SyrexMinus |
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-
/v1rule 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