mirror of
https://github.com/cline/cline.git
synced 2026-09-14 11:29:25 +08:00
* Move the apps to the root dir * Update all references from sdk/apps/ to apps/ * Update dependencies * Install bun types * Fix types * Fix types * Fix linter * Ingore apps from vscode * Fix security warning * Fix windows install * Enable windows dev mode * Revert "Enable windows dev mode" This reverts commita46c99282e. * Revert "Ingore apps from vscode" This reverts commit47f7b265d2. * Revert "Fix windows install" This reverts commit1dabba1556. * update the repo root * fix root dir * fix path * fix other path * Fix unrelated changes * fix: address apps move follow-up blockers (#11228) * fix: update root app command paths * fix: include moved apps in root checks * fix: clean up moved app path references --------- Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
Quickstart
The simplest possible Cline SDK example. Creates one agent, sends a single prompt, and streams the response to stdout.
Getting started
Use Node.js 22 or newer.
Install dependencies:
bun install
bun run build:sdk
Set an API key:
export CLINE_API_KEY="cline_..."
Run:
bun dev
What it does
- Creates an
Agentwith a provider and model - Subscribes to
assistant-text-deltaevents to stream output - Calls
agent.run()with a prompt - Prints token usage when done
Notes
For an interactive terminal chat, see cli-agent. For custom tools and structured workflows, see code-review-bot.