- Cline REST API — An OpenAI-compatible HTTP endpoint at
api.cline.bot. Send chat messages to any supported model from any language, framework, or tool. - VS Code Extension API (
ClineAPI) — A TypeScript interface exposed by the Cline VS Code extension. Lets other extensions programmatically start tasks, send messages, and interact with the Cline panel.
Cline REST API
The Cline REST API is an OpenAI-compatible Chat Completions endpoint. Authenticate once with a Cline API key and get access to models from Anthropic, OpenAI, Google, and more through a single base URL. No need to manage separate keys for each provider.Base URL
Authentication
All requests require a Bearer token in theAuthorization header:
Quick example
VS Code extension API
The Cline VS Code extension exports aClineAPI interface that other extensions can use to control the Cline panel programmatically. This is intended for extension authors building editor integrations.
The
ClineAPI is only available in the VS Code extension context. It does not apply to the REST API, the CLI, or JetBrains.REST API reference
Authentication
API keys, security best practices, and environment variable setup.
Chat completions
Full endpoint reference — parameters, streaming, tool calling, and response format.
Errors
Error codes, mid-stream errors, and retry strategies.
Models
Browse available models, free tiers, and selection guidance.