Cline
Cline is an autonomous AI coding agent that runs inside VS Code. It supports custom OpenAI-compatible endpoints.
Configuration
Section titled “Configuration”- Open Cline settings in VS Code (
Cmd+Shift+P→ “Cline: Open Settings”) - Set API Provider to
OpenAI Compatible - Configure:
| Setting | Value |
|---|---|
| Base URL | http://localhost:1234/v1 |
| API Key | candela |
| Model ID | gemini-3.5-pro (or any model from /v1/models) |
Alternative: Settings JSON
Section titled “Alternative: Settings JSON”Add to your VS Code settings.json:
{ "cline.apiProvider": "openai-compatible", "cline.openaiBaseUrl": "http://localhost:1234/v1", "cline.openaiApiKey": "candela", "cline.openaiModelId": "gemini-3.5-pro"}Using with Local Models
Section titled “Using with Local Models”Switch to a local model for free, private AI coding:
{ "cline.openaiModelId": "llama3.2:3b"}Candela still traces every request — you get full token counts and latency metrics even for local models (cost will show $0.00).
Using with Continue
Section titled “Using with Continue”Continue (another popular VS Code AI extension) works the same way:
{ "models": [ { "title": "Candela — Gemini Pro", "provider": "openai", "apiBase": "http://localhost:1234/v1", "apiKey": "candela", "model": "gemini-3.5-pro" }, { "title": "Candela — Local Llama", "provider": "openai", "apiBase": "http://localhost:1234/v1", "apiKey": "candela", "model": "llama3.2:3b" } ]}Official Candela Cline Plugin
Section titled “Official Candela Cline Plugin”For deeper integration, install the official candela-cline plugin package. This enables Cline to run custom tools inside its workspace to query session spend, check daily budgets, and ensure proxy health.
Features
Section titled “Features”- Session Cost Summaries: Formats a detailed summary of token usage, requests, spend, and cache savings for the active coding session.
- Live Budget Check: Inspects daily budget limits, current consumption percentage, remaining allowance, and active grant waterfall breakdown (including expiries).
- Automatic Health Check: Ensures that the local
candeladaemon is active and responsive before running heavy automated tasks.
Installation
Section titled “Installation”Install from npm:
npm install --save-dev candela-clineUsage as Custom Tools
Section titled “Usage as Custom Tools”You can register these custom tools inside your workspace or configure Cline’s MCP tools. If you are developing extensions or wrappers around Cline, import the methods directly:
import { getSessionSummary, getBudgetStatus, checkCandelaHealth} from "candela-cline";
// Print summary of the last 2 hours of workconsole.log(await getSessionSummary("http://localhost:8181", 2));
// Print budget status progress bar and active grantsconsole.log(await getBudgetStatus("http://localhost:8181"));Example Output: Session Summary
Section titled “Example Output: Session Summary”📊 Session Cost Summary (Past 1h)---------------------------------Requests: 12 callsTokens: 45.2K (28.4K in / 16.8K out)Cache Savings: 32.4K tokens ($0.12 saved)Total Spend: $0.18Example Output: Budget Status
Section titled “Example Output: Budget Status”💰 Daily Budget StatusDaily: [████████████░░░░░░░░] 60% $3.00 / $5.00🎁 Grant: $10.00 / $10.00 — hackathon sprint (expires May 25)Total available: $12.00