The Cline SDK is a set of TypeScript packages for embedding Cline’s agent runtime in your own applications. Use it to build: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.
- in-process agents with custom tools
- coding agents with file, shell, search, and web tools
- persistent sessions
- chat connectors
- scheduled automations
- multi-agent workflows
Install
@cline/sdk re-exports everything from @cline/core. You only need @cline/agents or @cline/llms if you want lower-level control over the agent runtime or model gateway directly.
Requires Node.js 22 or later.
Minimal Agent
Here is a complete quickstart example. Clone it and run
bun dev to try it.Packages
| Package | Purpose |
|---|---|
@cline/sdk | Public SDK surface (re-exports @cline/core) |
@cline/core | Node runtime for sessions, built-in tools, persistence, hub support, automation |
@cline/agents | Browser-compatible stateless agent execution loop |
@cline/llms | Provider gateway and model catalogs |
@cline/shared | Types, schemas, tool helpers, hooks, storage helpers |
Runtime Choices
| Runtime | Use when |
|---|---|
ClineCore | The fully featured Cline agent that you can customize and build upon. Includes session management, built-in tools, approvals, config discovery, channels, and scheduling |
Agent / AgentRuntime | A stateless in-process loop that offers even more control. ClineCore depends on the Agents package. Build with Agents directly if you want to control tools, session persistence, and configuration directly |
Next Steps
Examples
Browse complete, runnable SDK examples.
Plugins
Extend Cline’s functionality.
Tools
Add actions the model can call.
Building an Agent
Build a complete SDK agent from a tutorial.

