← All applications · Connect apps section on /docs
Anthropic + OpenAIconfigure cline
Cline
Also known as: vscode-cline
Cline: connect the coding extension to a custom provider.
Published instructions · App version: unverified
Chat, ping, invoke and content-generation examples may send real billable requests. Check the model, balance, rate and minimum before running them. GET /v1/models checks authentication and the catalogue only. Set up environment variables safely
Base URL to paste
OpenAI SDKs generally use a URL ending in /v1; Anthropic SDKs use the root URL. Avoid adding /v1 twice. Protocol compatibility does not guarantee every provider feature.
https://thapi.cloudPrerequisites
- VS Code or Cursor
- Install the Cline extension from Marketplace
- API key ThAPI
Recommended model: claude-fable-5
Quick way — command / config
api-cli configure cline -m claude-fable-5Where to place file / fill Settings
Interfaceany
Cline panel → Settings (bánh răng)
Enable Use custom base URL first — if Base URL is hidden, the toggle is not enabled.
Filemacos
~/Library/Application Support/Code/User/globalStorage/ (Cline)
Prefer the UI; API CLI may write cline_settings. Do not edit it manually unless you understand the settings.
Filewindows
%APPDATA%\Code\User\globalStorage\…
Similar setup; Cursor uses the Cursor directory instead of Code.
Verify connection
- Send a small task in Cline (list files).
- Dashboard Usage.
- api-cli doctor (when using API CLI).
Troubleshooting
| Symptom | Reason | How to handle |
|---|---|---|
| 404 | Anthropic is selected, but the pasted URL includes /v1. | Anthropic → https://thapi.cloud; OpenAI Compatible → https://thapi.cloud/v1. |
| Base URL is hidden | Use custom base URL has not been enabled. | Enable the toggle, then paste the URL. |
Notes
- The Roo Code / Kilo UI is similar to Cline.