Cline for VS Code: Free AI Coding Agent Setup Guide (2026)
If you've used AI coding assistants like GitHub Copilot or ChatGPT, you know the pattern: copy context out of your editor, paste it into a chat window, copy the response back, and manually apply changes across your files. Cline breaks this loop entirely. It's an open-source autonomous AI coding agent — Apache 2.0, 5M+ installs, 61.2k GitHub stars, currently shipping at v3.81 — that runs as a sidebar inside VS Code (and, as of 2026, JetBrains, Cursor, Windsurf, Zed, Neovim, and a preview CLI for macOS and Linux). Rather than suggesting code snippets you paste in, Cline reads your codebase, creates and edits files, runs terminal commands, drives a real browser via Puppeteer, and asks for your approval at each step. Originally released as "Claude Dev" — the VS Code extension ID is still saoudrizwan.claude-dev — Cline has grown into one of the most capable AI coding agents available, with support for 30+ LLM providers and a transparent, human-in-the-loop workflow that keeps you in control. This guide walks through installing and configuring Cline in 2026, explains the Plan/Act split, MCP Marketplace, Rules system, Computer Use, and Checkpoints, and shows how to pair Cline with DeployHQ's automated Git deployments so production stays predictable while your local agent runs at full speed.
Why Cline Matters for Web Developers in 2026
The AI coding tool landscape is crowded. Cursor, Windsurf, GitHub Copilot, Aider, Devin, Claude Code, Warp — each takes a different approach. What makes Cline distinct in 2026 is a combination of factors that matter specifically for professional developers shipping real code:
- It lives inside the editor you already use. Cline operates as a sidebar panel in standard VS Code, JetBrains, Cursor, Windsurf, Zed, or Neovim. No editor migration, no theme reset, no losing your keybindings. For teams standardised on a particular IDE, that's not a small thing.
- It's fully open source under Apache 2.0. You can inspect exactly what it does with your code, what data leaves your machine, and how it talks to LLM providers. The shadow Git repository it uses for Checkpoints is auditable. For teams with security or compliance constraints, that transparency is a hard requirement, not a perk.
- Plan mode and Act mode give you structured control. Unlike tools that immediately start generating code, Cline separates thinking from doing. Plan reads and reasons; Act executes with per-step approval. The split prevents the "AI rewrote half my project" failure mode.
- It works with any LLM. Cline's provider list crossed 30 in 2026: Anthropic, OpenAI, Google Gemini, AWS Bedrock, Azure OpenAI, OpenRouter, Cerebras, DeepSeek, Moonshot, Alibaba Qwen, xAI Grok, Mistral, Groq, Fireworks, Together, Baseten, SambaNova, Nebius, Hugging Face, and local models via Ollama or LM Studio. You're never locked to a vendor.
- It's an agent, not an autocompleter. Cline scaffolds whole features across files, runs your test suite, debugs failures by reading stderr, and iterates until things pass. That implement-test-fix loop is what separates it from line-by-line completion tools.
- Cline Provider is BYOK-optional. Most users still bring their own API keys ($0.01–$0.10 per coding task is typical), but as of 2026 you can also use the Cline Provider directly through
app.cline.botfor pay-as-you-go inference without managing keys yourself. There is no Cline Pro subscription — the model is open source plus usage-based.
Step 1: System Requirements
Cline is lightweight on its own; the heavy lifting happens at the LLM provider's edge (or on your GPU, if you run local models).
- VS Code 1.84.0 or later (the original target host), or any of the supported alternatives — JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm), Cursor, Windsurf, Zed, Neovim, VSCodium
- Node.js 20+ (required for the Cline CLI, recommended for MCP servers)
- Operating system: macOS, Windows, or Linux. The Cline CLI is in preview on macOS and Linux only; Windows CLI support is on the roadmap
- Internet connection for cloud LLM providers — not required if you run local models via Ollama or LM Studio
- API key from at least one supported LLM provider, or a Cline Provider account at app.cline.bot
If you plan to run local models, also budget:
- Ollama or LM Studio installed and running
- A coding-tuned model —
qwen2.5-coder,deepseek-coder,codellama, or the newer Qwen3-Coder family - 16 GB RAM minimum for 7B models; 32 GB+ for anything in the 14B–34B range. Apple Silicon's unified memory is unusually well-suited to this workload
There are no specific CPU or GPU requirements for Cline itself — its overhead is negligible next to whatever LLM you point it at.
Step 2: Install Cline
Installing Cline takes under a minute on any supported IDE.
VS Code (and forks: Cursor, Windsurf, VSCodium)
- Open the IDE
- Open the Extensions panel (
Cmd+Shift+Xon macOS,Ctrl+Shift+Xon Windows/Linux) - Search for "Cline" in the marketplace
- Click Install on the extension by Saoudrizwan
- The Cline icon appears in the activity bar (left sidebar)
Or from the command line:
code --install-extension saoudrizwan.claude-dev
The extension ID is still saoudrizwan.claude-dev from the original "Claude Dev" name — that hasn't changed despite the rebrand to Cline.
JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, GoLand, RubyMine, etc.)
- Settings → Plugins → Marketplace
- Search for "Cline", install, and restart the IDE
- The Cline tool window appears in the sidebar
Zed and Neovim (via ACP)
Zed and Neovim integrate Cline through the Agent Client Protocol (ACP), a Cline-led standard for editor-agent communication. Install the Cline CLI first (below), then enable the integration in the editor's agent settings.
Cline CLI (macOS / Linux preview)
The CLI is the headless flavour, suitable for cron jobs, CI pipelines, and scripts:
npm install -g cline
cline auth # opens app.cline.bot to authorise
cline # interactive session in the current directory
The CLI shares configuration, MCP servers, and Rules with your IDE installation, so a workflow built once is reusable everywhere.
Verify the install
Inside the IDE, click the Cline icon. The first launch prompts you to configure a provider. From the CLI:
cline --version
Step 3: Configure Your AI Provider
Cline's provider-agnostic architecture means you can swap models without changing your workflow. Open the Cline panel, click the gear icon, and pick your provider.
Cline Provider (the BYOK-free path)
If you'd rather not manage API keys, sign in to the Cline Provider through app.cline.bot. You get pay-as-you-go access to multiple frontier models — including periodic stealth/preview models that aren't publicly available elsewhere — billed per token through one Cline account. There is no subscription tier; you pay for inference.
Anthropic (Claude)
Claude — particularly Sonnet 4.7 and the newer Opus 4.7 (added in v3.79) — is widely considered the strongest single model for code generation, and the only model that supports Cline's Computer Use browser automation.
- Get an API key from console.anthropic.com
- In Cline settings, select Anthropic
- Paste your key
- Pick a model — Sonnet 4.7 is the strong default for cost/quality balance
OpenAI
- Get an API key at platform.openai.com
- Select OpenAI, paste your key
- Choose a model — GPT-5.5 (added in v3.81), GPT-4o, or o3-mini all work well
OpenRouter
OpenRouter is a unified gateway to 200+ models, often at lower prices, and is the easiest way to compare models without managing five separate API keys:
- Get an API key from openrouter.ai
- Select OpenRouter, paste your key
- Browse and pick from the available model list
AWS Bedrock and Azure OpenAI
For enterprise environments where every API call must route through your cloud provider:
- AWS Bedrock — provide AWS access key, secret key, region; pick a Bedrock-hosted Claude or Llama
- Azure OpenAI — provide endpoint URL, API key, and deployment name. v3.79 added Azure Blob Storage as a Cline storage backend for enterprise-managed deployments
Local models via Ollama or LM Studio
Local models mean zero per-token cost and complete data isolation — your code never leaves your machine.
# Ollama
ollama pull qwen2.5-coder:14b
ollama serve
In Cline settings, pick Ollama and the model list auto-populates from your local pulls.
Local models are fine for routine work — boilerplate, simple refactors, file scaffolding. For complex multi-file architectural reasoning, frontier cloud models (Sonnet 4.7, GPT-5.5, Opus 4.7) still pull ahead noticeably. Cline lets you switch per task, so use the cheap path for simple work and the expensive path for hard problems.
Cost awareness and spend limits
Cline shows the token count and estimated cost for every interaction in the chat panel. A typical feature implementation session burns 50,000–200,000 tokens depending on codebase size and task complexity — roughly $0.50–$2.00 with Sonnet 4.7. As of v3.78 (April 2026), Cline ships a dedicated "Spend Limit Reached" UI so a runaway agent can't quietly drain your account. Set a daily or monthly cap in Settings → Spending Limits.
Step 4: Plan Mode vs Act Mode
This is Cline's defining workflow. Get it right and you save hours and tokens.
Plan mode (read-only exploration)
Plan mode is a non-destructive reasoning phase. Type a request and Cline:
- Reads relevant files to understand the codebase
- Analyses requirements
- Proposes a step-by-step implementation plan
- Does not create, edit, or delete files
- Does not run terminal commands
This is where you refine the approach before any code is written. Ask follow-up questions, request a different architecture, narrow the scope — all without touching your project. Plan mode is also dramatically cheaper than Act mode; it pays for itself in tokens you don't waste rejecting bad implementations.
Act mode (execution with approval)
Switch to Act and Cline:
- Creates new files and directories
- Edits existing files (showing a diff before each edit)
- Runs terminal commands
- Reads command output and reacts to errors
- Iterates until the task is complete or it needs your input
Every action requires explicit approval. Cline shows the proposed file edit or command and waits for Approve or Reject — you see exactly what changes before they apply.
A practical session
- Plan: "Add rate limiting middleware to our Express API. Routes are in
src/routes/, existing middleware insrc/middleware/." - Cline proposes
express-rate-limit, a new middleware file, and applies it to specific route groups - Refine: "Use a sliding-window algorithm and store counters in Redis since we already run it"
- Switch to Act: Cline implements the plan, installs the npm package, wires up the middleware
- Review every diff as it lands
Lazy Teammate Mode (v3.77+)
Lazy Teammate Mode is an opt-in setting that asks Cline to do the minimum necessary to satisfy your request — no proactive refactors, no "while I'm here" cleanups, no unsolicited file creation. Useful when working in a codebase where you don't want the agent making opinionated structural changes.
Step 5: Core Tools and Capabilities
Cline exposes a small, sharp set of tools to the model. Knowing what's available helps you write better prompts.
| Tool | Purpose |
|---|---|
read_file |
Read a file (chunked reading supported since v3.77) |
write_to_file |
Create or overwrite a file |
replace_in_file |
Surgical targeted edits |
search_files |
Regex search across the workspace |
list_files |
List directory contents |
list_code_definition_names |
Map symbols across files |
execute_command |
Run a CLI command (background-only since v3.80) |
browser_action |
Drive a Puppeteer browser session |
use_mcp_tool |
Call a tool exposed by an MCP server |
access_mcp_resource |
Read a resource from an MCP server |
ask_followup_question |
Ask the user for clarification |
attempt_completion |
Present the final result |
new_task |
Hand off to a fresh task with distilled context |
File creation and editing
When Cline edits a file, you see a standard diff in the IDE. Changes integrate with VS Code's undo/redo, your .gitignore and workspace settings are respected, and Git diff treats AI-generated edits the same as anything you'd type by hand. You can reject individual edits while approving others.
Terminal command execution
Cline runs commands in the IDE's integrated terminal. Each command surfaces as:
Cline wants to run: npm install express-rate-limit
[Approve] [Reject]
After running, Cline reads stdout/stderr. If a test fails, it parses the error and proposes a fix. As of v3.80, all commands run in background mode — the foreground terminal mode was removed, eliminating an entire class of zombie-process bugs.
Computer Use and browser automation
browser_action opens a real Puppeteer-controlled Chromium window. Cline can navigate, click, type, scroll, and capture screenshots, then reason about the rendered page. Practical uses:
- Verify a UI change renders correctly across breakpoints
- Test a form submission end-to-end
- Debug visual issues by screenshotting and inspecting DOM
- Validate API responses in browser context
Computer Use depends on Anthropic's Claude Sonnet (3.5 or later) — it's the only model with the screen-aware tool support to reason about screenshots reliably. Other providers will run browser_action but with significantly degraded results. Pin to Sonnet for any session that's heavy on browser work.
new_task: managing long sessions
When the context window is filling up — or when you want to transition cleanly from research to implementation — invoke new_task (or type /newtask in chat). Cline distills the conversation into "plan, work done, files, next steps", lets you refine, and starts a fresh task with a clean context window. Useful for keeping costs in check during multi-hour sessions.
Cline handles the coding, but production deployments are still the riskiest part of the loop. DeployHQ takes over the moment your branch is ready: automated build pipelines, atomic file transfers with zero-downtime cutover, and one-click rollback when something does go wrong.
Step 6: Cline Rules — Persistent Project Standards
Custom instructions that Cline repeats in every prompt are useful for one-off rules, but for anything you want under version control, use Cline Rules.
Rules are markdown files that Cline injects into the system prompt before every interaction. They live in:
| Format | Location | Scope |
|---|---|---|
| Cline Rules | .clinerules/ (directory) at project root |
Workspace, version-controlled |
| Cursor Rules | .cursorrules |
Auto-imported for cross-tool compatibility |
| Windsurf Rules | .windsurfrules |
Auto-imported |
AGENTS.md |
Project root | Auto-imported (cross-IDE standard) |
| Global rules | ~/Documents/Cline/Rules/ (macOS/Linux) or Documents\Cline\Rules\ (Windows) |
All projects on this machine |
When workspace and global rules conflict, workspace rules win. All detected rule formats appear together in the Rules panel for unified management — meaning you can adopt Cline without rewriting your existing .cursorrules or AGENTS.md.
Conditional rules (the 2026 step change)
Conditional rules use YAML frontmatter to activate only when specific files are in scope:
---
description: TypeScript strict-mode rules
globs:
- "**/*.ts"
- "**/*.tsx"
alwaysApply: false
---
- Use TypeScript strict mode; never `any`
- Prefer `unknown` and narrow with type guards
- Named exports only; no default exports
- All async functions must declare their return type
---
description: API security rules
globs:
- "src/api/**/*.ts"
- "src/middleware/**/*.ts"
alwaysApply: true
---
- Validate every request body with Zod before any DB access
- Never log full request bodies in production
- All endpoints under /api/v1 require JWT auth except /auth/login and /auth/register
The agent evaluates rules against your message, currently open tabs, visible files, edited files, and pending operations. Rules that don't match the file scope simply don't load, which keeps the system prompt small and the context budget intact. Each rule also has a manual toggle — turn one off without deleting the file.
For a deeper look at rule files across IDEs (CLAUDE.md, copilot-instructions.md, cursorrules, AGENTS.md), see our guide on configuring AI coding assistants with rule files and how to write effective AI coding agent instructions.
Step 7: MCP Servers and the MCP Marketplace
The Model Context Protocol (MCP) is an open standard that lets agents connect to external tools and data sources. Cline shipped first-class MCP support in 2024 and has been expanding the integration ever since.
What MCP unlocks
- Database access: Query your PostgreSQL, MongoDB, or SQLite directly from Cline
- API documentation: Connect a docs server so Cline can look up your internal API specs
- Issue trackers: Linear, Jira, GitHub Issues — pull tickets, post comments
- Observability: Sentry stack traces, Datadog metrics, log search
- Codebase navigation: Semantic search beyond regex
- Custom tools: Anything you can wrap in an MCP server — internal RPC, internal docs, deploy hooks
For a curated list of the most useful MCP servers, see our best MCP servers for web developers guide.
MCP Marketplace
Cline's MCP Marketplace is a built-in directory: browse, install, and configure MCP servers without leaving the IDE. Provide a GitHub repo URL and Cline clones, builds, and wires up the configuration for you — handy for community servers that don't ship a one-line install.
Manual configuration
For servers you want to lock down or pin to a specific version, edit cline_mcp_settings.json:
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"DATABASE_URL": "postgresql://user:pass@localhost:5432/mydb"
},
"alwaysAllow": ["query"],
"timeout": 60
},
"linear": {
"url": "https://mcp.linear.app/sse",
"transport": "sse"
}
}
}
Two transports are supported: stdio (local CLI processes — command + args) and SSE (remote URL endpoints). Per-server settings include enable/disable toggles, network timeout (30s to 1h), environment variables, and a tool allowlist via alwaysAllow.
.mcp.json and cross-tool sharing
Unlike Warp, Cline doesn't currently auto-discover .mcp.json from sibling tools. The simplest cross-tool pattern in 2026 is to maintain a single canonical configuration in your project root and reference it from each tool's settings — Cline reads from cline_mcp_settings.json, but you can symlink or template it from .mcp.json if you want one source of truth across Claude Code, Cursor, and Cline.
Step 8: Auto-Approve, YOLO Mode, and Safety
Approving every action gets old fast. Cline's auto-approve settings let you pre-authorise specific categories of action.
Auto-approve categories
- Read-only file operations — let Cline read freely, no prompts
- File writes — auto-approve creates and edits (use with care)
- Terminal commands — auto-approve safe operations or all of them
- Browser actions — auto-approve
browser_actionsteps - MCP tools — auto-approve specific MCP server calls
The agent classifies each terminal command with a requires_approval flag. Build commands, read-only queries, and similar operations are flagged as safe; destructive operations (rm -rf, DROP TABLE, force push) always require explicit approval regardless of auto-approve settings.
A common practical setup for solo work: auto-approve file reads and a small allowlist of safe commands (npm test, npm run lint, pnpm build), require explicit approval for file writes and dependency installs. This keeps you in the loop without grinding the agent to a halt.
YOLO Mode
YOLO Mode disables every safety check. The Cline docs explicitly warn: "This is dangerous." Enabling YOLO Mode auto-approves all actions — file deletion, system modification, network requests, anything. Restrict it to isolated environments (a sandboxed VM, a throwaway branch, a container) and assume nothing about the resulting state.
Notification system
Cline can post OS-level notifications when approvals are needed or when an auto-approved long-running command crosses 30 seconds. Useful when you're context-switching to email or Slack between iterations.
Step 9: Checkpoints and Rollback
Cline maintains a shadow Git repository — separate from your project's actual Git history — and commits the file state after each tool use. Checkpoints offer three restore modes:
- Restore Files — revert files to the snapshot, keep the conversation
- Restore Task Only — delete messages after the checkpoint, leave files alone
- Restore Files & Task — full reset to the chosen point
Checkpoints capture untracked files too, which is the difference between "I lost a file" and "I lost nothing." Combined with a feature branch and git stash, the cost of an experiment that goes sideways drops to roughly zero. This is separate from your real Git history; nothing pollutes your commits unless you commit it yourself.
Step 10: Best Practices
Always start with Plan mode
The single most common mistake is jumping straight into Act. Plan mode reads, doesn't write — it costs a fraction of the tokens and catches misunderstandings early. A 30-second planning conversation routinely saves a 10-minute wrong-direction implementation.
Review every diff
Cline shows you a diff for each file edit. Read it. AI-generated code can contain subtle issues — wrong error handling, missing edge cases, hardcoded values that should be configurable. Pay special attention to:
- Imports — right paths, no surprise dependencies?
- Error handling — catching the right exceptions, helpful error messages?
- Naming — does it match your project's conventions?
- Side effects — did it touch files outside the scope you expected?
Provide rich context with @ mentions
Cline supports an @ mention system in chat input:
@file— include a specific file's content@folder— include a directory tree@url— fetch and include a URL's content@problems— include the IDE's current diagnostics@terminal— include recent terminal output@git— include current diff or commit history
Specific is cheaper. Instead of "fix the auth", try:
@src/middleware/auth.ts @src/routes/api.ts @AGENTS.md
Add JWT refresh-token rotation to the auth middleware and update the API
routes to handle the new token format. Access tokens expire in 15 minutes,
refresh tokens in 7 days.
Manage costs deliberately
- Start in Plan mode — it's cheaper than rejected Act-mode generations
- Cheap models for boilerplate (Haiku, GPT-4o mini, qwen2.5-coder local) and frontier models for hard reasoning
- Be specific — vague prompts cause wider codebase exploration and bigger token bills
- Break large tasks into smaller ones — "refactor the entire API layer" is a token bonfire; "extract the user-routes module into its own service" is tractable
- Set a spend limit in Settings → Spending Limits
Use feature branches and frequent checkpoints
Feature branch every significant Cline session — Git is your real safety net. Combined with Cline checkpoints, you have two complementary undo systems: Cline for "step back two prompts", Git for "throw the whole branch out".
Cline vs Cursor vs Claude Code: when to use what
A reasonable 2026 decision tree:
- Cursor — AI-first fork of VS Code, best for inline completion and chat-driven micro-edits inside a custom editor
- Cline — extension that adds agentic AI to standard VS Code (and JetBrains, Zed, Neovim), best for multi-file autonomous tasks, terminal automation, browser-driven verification
- Claude Code — Anthropic's own terminal-native agent, best for headless / CLI workflows, deep MCP integration, agent-to-agent setups
Many teams run two: a tab-completion tool for line-level speed (Copilot or Cursor) and Cline for multi-file work where the agent needs to plan, execute, and verify across the project. They're complementary, not competing — the comparison of AI coding CLIs for deployment workflows breaks down the tradeoffs further, and our broader writeup of how AI coding assistants are changing deployments covers the workflow implications.
Step 11: Pair Cline with DeployHQ for Git-to-Production
Cline writes the code; DeployHQ ships it. The boundary is clean: Cline owns the local edit/test/debug loop, DeployHQ owns what happens after git push.
A real Cline-to-DeployHQ workflow
1. Plan the feature
I need to add a /health endpoint to our Express API that checks database
connectivity, Redis connection, and returns the app version from package.json.
Return 200 with JSON when all checks pass; 503 with details about which check
failed otherwise. Use @src/config/database.ts and @src/config/redis.ts for
connection references.
Cline reads the codebase in Plan mode and proposes:
- Create
src/routes/health.tswith the health-check logic - Add ping helpers for the database and Redis connections
- Register the route in
src/app.ts - Add
tests/routes/health.test.ts
2. Switch to Act — Cline implements across files
// src/routes/health.ts
import { Router, Request, Response } from 'express';
import { pool } from '../config/database';
import { redisClient } from '../config/redis';
import { version } from '../../package.json';
const router = Router();
router.get('/health', async (_req: Request, res: Response) => {
const checks = { database: false, redis: false };
try {
await pool.query('SELECT 1');
checks.database = true;
} catch { /* db check failed */ }
try {
await redisClient.ping();
checks.redis = true;
} catch { /* redis check failed */ }
const healthy = Object.values(checks).every(Boolean);
res.status(healthy ? 200 : 503).json({
status: healthy ? 'healthy' : 'degraded',
version,
checks,
timestamp: new Date().toISOString(),
});
});
export { router as healthRouter };
It registers the route and creates the test file, each diff visible for approval.
3. Cline runs the tests
Cline wants to run: npm test -- --grep "health"
[Approve] [Reject]
If a test fails, Cline reads the error, proposes a fix, applies it, and runs again. The implement-test-fix loop continues until the suite is green.
4. Review changes in the IDE diff view
Use the IDE's Source Control panel to review every file Cline created or modified — exactly like reviewing a teammate's pull request.
5. Commit, push, let DeployHQ deploy
git checkout -b feature/health-check
git add -A
git commit -m "Add /health endpoint with database and Redis checks"
git push origin feature/health-check
If your DeployHQ project is configured with automatic Git deployments, pushing to your deployment branch triggers the pipeline immediately. DeployHQ:
- Pulls the latest code from your repository (GitHub, GitLab, Bitbucket, or self-hosted Git)
- Runs your build pipeline (
npm ci && npm run build, etc.) - Transfers files to your server via SFTP, SSH, or a cloud target
- Cuts over with zero downtime — the old release keeps serving traffic until the new release is fully staged
- Keeps every deployment versioned so you can roll back instantly when something does go wrong
Why the separation matters
Cline stays in your editor. DeployHQ stays in your deployment pipeline. Neither tries to do the other's job, and that boundary buys you:
- Auditability — Git history shows what Cline changed; DeployHQ logs show what was deployed and when
- Rollback safety — DeployHQ can roll back to any previous deployment independently of what Cline did. You're never locked into AI-generated code
- Team compatibility — half the team can use Cline, the other half can use whatever they like; the deployment pipeline doesn't care
- Build pipeline control — DeployHQ's build commands handle compilation, minification, and dependency installation server-side, separate from whatever the agent did locally
For a deeper look at running AI agents directly inside CI/CD pipelines, see our writeup on agentic workflows in CI/CD and AI agents in CI/CD: from GitHub issue to production deploy.
Setting up DeployHQ for Cline projects
If you don't have DeployHQ wired up yet:
- Create a free DeployHQ account
- Connect your Git repository (GitHub, GitLab, Bitbucket, or any Git host)
- Configure your server connection (SSH, SFTP, or a cloud provider)
- Set your build commands — for a typical Node.js project:
npm ci
npm run build
- Enable automatic deployments on your main branch
- Push from VS Code; DeployHQ deploys. No additional steps.
Step 12: Troubleshooting
"Connection failed" or "API key invalid"
- Verify the API key is correct and has credits/quota remaining
- For Anthropic: check the key hasn't been rotated at the Anthropic console
- For OpenRouter: confirm credits are loaded
- For Ollama: confirm the daemon is running (
ollama list) - For Cline Provider: re-authenticate with
cline auth(CLI) or sign in again at app.cline.bot - v3.79+ enterprise users: confirm Azure Blob Storage credentials if you're using it as the storage backend
Cline is slow or unresponsive
- Large files balloon token usage and response time — use
@fileto scope to specific files instead of letting Cline scan the workspace - Local models are slower than cloud APIs; switch providers for hard tasks
- Check the IDE's output panel (View → Output → Cline) for error messages
- v3.80 raised the Node.js heap to 8 GB to fix OOM crashes — if you're on an older version, upgrade
Cline makes incorrect changes
- Always start in Plan mode and verify the approach
- Provide more context: reference specific files, describe existing patterns, mention constraints
- Use
.clinerules/to enforce coding standards across sessions - Roll back via Checkpoints and try a more specific prompt
High token usage
- Break large tasks into smaller, focused requests
- Use Plan mode to estimate scope before acting
- Switch to a cheaper model for routine work
- Use
@fileto limit codebase exploration - Enable a spend limit in Settings → Spending Limits so a runaway session stops itself
MCP server won't connect
- Verify the MCP server command works when run manually in your terminal
- Check that env vars are set correctly in
cline_mcp_settings.json - Confirm the command path is absolute or on the launchd/systemd
$PATH(not your interactive shell$PATH) - Look at the MCP server logs in Settings → MCP Servers → [server name] → Logs
- For SSE servers, confirm the URL is reachable:
curl -sI <url>
Terminal commands fail
- Cline uses the IDE's integrated terminal, which inherits your shell environment
- If commands fail, run them manually in the same terminal first to isolate
- Check that
PATHincludes the necessary tools (Node.js, Python, Docker, etc.) - On Windows, ensure the right shell is active (PowerShell vs Command Prompt vs WSL)
- v3.80 removed foreground terminal mode — every command now runs as a background task, which fixes a class of stuck-process bugs
Browser automation broken or returns empty pages
browser_actionrequires Claude Sonnet (3.5+) — the only model with reliable screen-aware tool support. Other providers will run it but with degraded results- On Linux, ensure Chromium dependencies are installed (
sudo apt-get install -y libnss3 libatk1.0-0 libgbm1and friends) - For headless containers, check that Puppeteer can spawn a sandboxed Chromium — disable AppArmor profiles for
chromeif needed
Conclusion
Cline in 2026 is materially different from the "Claude Dev" extension that launched in 2024. The core idea — autonomous, agentic AI inside your editor with explicit per-step approval — is the same; the surface around it has expanded considerably. Plan/Act gives you structured control. The 30+ provider list (plus Cline Provider) means you're never locked to a vendor. .clinerules/ and conditional rules turn coding standards into version-controlled, file-scoped governance. The MCP Marketplace plus stdio/SSE configuration makes it trivial to plug in databases, observability, and internal tools. Computer Use lets the agent verify its own UI work in a real browser. Spend limits, YOLO mode, and Lazy Teammate Mode let you tune the safety/autonomy trade-off to match the work in front of you.
For developers running serious deployment workflows, pairing Cline with DeployHQ's continuous deployment platform is the natural shape: Cline handles the smart-editor side of your day (writing code, fixing errors, debugging across files, automating browser checks), while DeployHQ handles the production side — running build pipelines, executing atomic deployments, and supporting one-click rollback when something does go wrong.
Sign up for a free DeployHQ account and connect Cline to your editor-to-production workflow.
If you have questions about integrating Cline into your deployment workflow, reach out at support@deployhq.com or find us on Twitter/X at @deployhq.