Skip to main content
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.

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.
Your App  →  Cline API (api.cline.bot)  →  Anthropic / OpenAI / Google / etc.

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.

Quick Start

curl -X POST https://api.cline.bot/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-4-6",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Get your API key at app.cline.bot (Settings > API Keys), then follow the Getting Started guide.