VS Code

How to fix a wrong Cline Base URL causing request failures

The Base URL is the core setting that connects to AI Code With. Cline appends /v1/messages to the Base URL automatically, so adding /v1 duplicates the path and the request fails.

Start with these checks

The Base URL was entered with a /v1 suffix, so Cline builds a duplicated path.

  • The request fails after sending a message, or reports a wrong endpoint path.
  • The Base URL was entered with a /v1 suffix, and Cline appends another /v1/messages
  • Open Cline settings and find the Base URL field
base url404ECONNREFUSED

01

Understand Cline's path appending

Cline's Anthropic Provider uses the official SDK, which appends /v1/messages to the Base URL. Enter only the domain — do not add a /v1 suffix.

02

Enter the correct Base URL

Check Use custom base URL, change the address to https://api.aicodewith.ai, remove every extra trailing path segment, and save the settings.

  1. 1Open Cline settings and find the Base URL field
  2. 2Remove any trailing /v1, /v1/messages, or guessed path

03

Verify the request succeeds

Send a test message after saving; a normal reply means the path is correct. If it still fails, make sure Use custom base URL is checked.

  1. 1Remove any trailing /v1, /v1/messages, or guessed path
  2. 2Enter https://api.aicodewith.ai (no /v1 — Cline appends /v1/messages automatically)

If it is still not fixed

Sources

Reconfigure

Return to the integration center and continue the setup steps.

Return to the related setup step