Welcome to the Cline API documentation. Use the same models that power the Cline extension and CLI from any language, framework, or tool that speaks the OpenAI format.Documentation Index
Fetch the complete documentation index at: https://docs.cline.bot/llms.txt
Use this file to discover all available pages before exploring further.
What is the Cline API?
The Cline API is an OpenAI-compatible Chat Completions endpoint. You 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.Getting Started
Create an API key and make your first request in under a minute.
Authentication
API keys, account tokens, key rotation, and security best practices.
Chat Completions
Full endpoint reference with request schemas, streaming, and tool calling.
Code Examples
Ready-to-copy examples for Python, Node.js, curl, and the Cline CLI.
Explore the Reference
Models
Browse available models, free tier options, reasoning support, and selection guidance.
Errors
Error codes, mid-stream errors, retry strategies, and debugging tips.
Enterprise API
Admin endpoints for managing users, organizations, billing, and API keys.

