curl
Non-Streaming
Streaming
Python
OpenAI SDK
The OpenAI Python SDK works with the Cline API by settingbase_url:
Streaming in Python
Tool Calling in Python
Using requests
If you prefer not to use the OpenAI SDK:Node.js / TypeScript
OpenAI SDK
The OpenAI Node.js SDK works with the Cline API by settingbaseURL:
Streaming in Node.js
Using fetch
Cline CLI
The Cline CLI is the fastest way to use the Cline API from your terminal. It handles authentication, streaming, and tool execution for you.Setup
Run Tasks
VS Code / JetBrains
The Cline extension handles the API integration for you:- Open the Cline panel in your editor
- Select Cline as the provider in the model picker
- Sign in with your Cline account
- Start chatting or give Cline a task

