Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>SideCarNew to Visual Studio Code? Get it now.
SideCar

SideCar

nedonatelli

|
701 installs
| (0) | Free
Autonomous AI agent for coding — run full agent loops with local Ollama, Anthropic Claude, or OpenAI models
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SideCar Logo

SideCar — AI Coding Assistant for VS Code

VS Code Marketplace Installs License: MIT

SideCar is a free, open-source coding agent for VS Code: a full agent loop with tool use, inline completions and inline chat, not just a chat panel. Run it on local Ollama models with no API key and no data leaving your machine, or connect Anthropic, OpenAI, OpenRouter, Groq, Fireworks, Google Gemini, AWS Bedrock, your GitHub Copilot subscription, or any OpenAI-compatible server.

Quick start

  1. Install Ollama and pull the default model: ollama pull gemma4:e4b
  2. Install the SideCar extension
  3. Click the SideCar icon in the activity bar (or Cmd+Shift+I / Ctrl+Shift+I)
  4. Start chatting. SideCar starts Ollama if it isn't running, and offers Install Model if the selected model is missing.

gemma4:e4b (9.6 GB, about 10 GB of VRAM) is the most-tested local model. For real repository work at a similar size, qwen3.5:9b (6.6 GB) resolved 2.3× as many SWE-bench Lite tasks (see Tested models). On smaller GPUs, try ministral-3:latest (6 GB) or granite4.1:3b (2 GB).

Other providers

Open the ☰ menu in the chat header → Backend (or run SideCar: Switch Backend) and pick a provider. SideCar sets the URL, provider and a default model, then asks for the API key and keeps it in the OS keychain, one slot per provider. Then pick the model you want with SideCar: Select Model.

Provider What you need
Anthropic, OpenAI, Google Gemini An API key from the provider (billed separately from Claude.ai or ChatGPT plans)
OpenRouter, Fireworks An API key; one key reaches many models
Groq An API key on a paid tier: one SideCar request is larger than the free tier's tokens-per-minute cap
AWS Bedrock Your AWS credentials or a Bedrock API key, and model access enabled in the region
GitHub Copilot The Copilot extension, signed in; no separate key
Custom endpoint Any OpenAI-compatible server (vLLM, LM Studio, llama.cpp, a gateway) and its URL

Setup, tuning and limits for each: docs/backends.md.

Features

The highlights. Full list: feature specs.

Feature Description
87 built-in tools File ops, shell, git, web search, databases, screenshots, code profiling, CI-failure analysis, change-impact analysis, and more — full list
Local-model scaffolding harness Capability-adaptive machinery for weaker local models: tool-call recovery from model text, grounding/completion gates, tiered reprompt budgets, and a trimmed tool catalog for local backends. Net effect is measured, not assumed
Completion gate Holds back "done" until lint and colocated tests have actually run, reading their output rather than trusting exit codes; failing tests get the agent sent back to fix them, and edited files must parse
Write isolation Review/Audit modes (buffer writes in-memory, approve per-file diffs) and Shadow Workspaces (run in an ephemeral git worktree; main tree untouched until you accept)
Safety checks Asks before commits that hold ignored or oversized files, before pushes (naming the remote and whether it's public), and before config changes you didn't ask for
Parallelism Fork & parallel solve (N attempts, pick the winner), typed sub-agent facets (named specialists with their own tool allowlist + model), and background agents
Durable instruction memory (A/B-proven) Standing instructions survive context compaction and the session itself, applied automatically in later sessions; review or forget them in the Remembered Instructions view
Project knowledge & impact Semantic search over every symbol (tree-sitter + embeddings) and an AST-exact code graph — analyze_impact answers "what depends on this symbol?"
Inline completions & chat Copilot-style FIM autocomplete and Cmd+I in-place editing with Fix/Explain/Refactor on diagnostics
MCP (client + server) stdio / HTTP / SSE transports with lazy schema loading; expose SideCar's own agent loop as an MCP server
Skills & project instructions Markdown skills (allowed-tools, preferred-model, max-iterations) and 40+ slash commands; path-scoped SIDECAR.md, falling back to AGENTS.md / CLAUDE.md / .cursorrules
Cost controls Anthropic prompt caching, a pruner for oversized tool results, delegation to a local worker model, and daily/weekly spend caps
VS Code integration Security and diagnostic findings in the Problems panel, agent runs from Test Explorer, CodeLens actions, and #sidecar_delegate in Copilot Chat

Why SideCar

  • Free and local-first. Runs offline on Ollama with no account or key; add a cloud provider only when you want one. No subscription.
  • Works with local models that other agents can't drive. Many capable local models write their tool calls as text or JSON in the reply instead of the structured field, so a stock agent sees no call and stalls. SideCar parses and runs them; qwen2.5-coder, for one, can't call tools at all without it.
  • Any provider, in the VS Code you already use. Not a fork; switching provider is one menu pick, and you can install GGUF models from Hugging Face.

The trade-off: SideCar is VS Code-only, while Cline and Kilo Code cover more editors and have larger plugin ecosystems.

Measured, not claimed

SideCar carries a lot of machinery meant to make weaker local models usable: gates, reprompt budgets, tool-call repair. Specific repairs are proven to matter (the text-call parsing above, for example). That the stack as a whole makes a local model better at real tasks is not established, and this README doesn't claim it. Mechanisms that measure net-negative are removed. The main gates can be switched off (sidecar.completionGate.enabled, sidecar.syntaxGate.enabled, sidecar.redCheckGate.enabled).

Tested models

On real repository bugs: SWE-bench Lite

Each model ran all 300 tasks of SWE-bench Lite once, in November 2026. Each task is a real GitHub issue from one of 12 Python projects. A task is resolved when the model's patch makes the official SWE-bench harness's tests pass. Settings: SideCar's default scaffolding, up to 150 agent turns per task, Ollama on one RTX 5090. 290 tasks can be scored for every model; in the other 10, the reference fix itself fails or the task environment is broken.

Model Download Resolved (of 290) Median time per task
gemma4:31b 20.4 GB 147 (50.7%) 6.2 min
qwen3.8:27b 17.7 GB 137 (47.2%) 2.9 min
qwen3-coder:30b 18.6 GB 97 (33.4%) 2.0 min
nemotron-3.5-lightning:30b 25.4 GB 97 (33.4%) 3.5 min
qwen3.5:9b 6.6 GB 96 (33.1%) 3.8 min
gemma4:26b-a4b 18.7 GB 92 (31.7%) 3.1 min
ministral-3:latest 6.0 GB 54 (18.6%) 1.7 min
nemotron-3.5-bolt:e4b 7.9 GB 46 (15.9%) 1.7 min
gemma4:e4b (default) 9.6 GB 41 (14.1%) 1.5 min
bonsai-2:4b 1.6 GB 25 (8.6%) 4.0 min

What this supports:

  • With the memory for a ~20 GB model: gemma4:31b resolves the most. qwen3.8:27b is close behind at under half the time per task. It submits no patch on a quarter of tasks, but 63% of the patches it does submit resolve.
  • On a smaller GPU: qwen3.5:9b resolves 2.3× as many tasks as the default gemma4:e4b with a smaller download, and ties the 30b models in the middle of the table.
  • The middle four are a tie. Each model ran once, so a gap of a point or two is not a ranking.

This is not a leaderboard submission. Full results: Model Eval Results.

Agent smoke suite

Each model below runs SideCar's agent smoke suite (read, edit, write, run, plan and error-recovery tasks) with zero infrastructure errors: no crashes, dropped tool calls or retry loops. How well each completes the tasks varies, and the notes reflect both.

Model Size Notes
gemma4:e4b (default) 9.6 GB Strongest prompt-following of the local models; the shipped default
gemma4:31b 20 GB The most capable local model tested; needs a 32 GB GPU
ornith:9b 5.6 GB Best small-footprint agent — near-default capability at a third the size
ministral-3:latest 6.0 GB Strong, low-footprint, reliable
qwen2.5-coder:7b 4.7 GB Solid coding baseline; emits text-form tool calls (SideCar's parser recovers them)
north-mini-code:1.0 19 GB Agentic-tuned coder; strong autonomous, but rarely asks clarifying questions
laguna-xs-2.1 20 GB Fast MoE coder; some run-to-run variance
granite4.1:3b 2.1 GB Low-RAM option; punches above its weight
llama3.2:latest 2.0 GB Low-RAM general model; below the agent floor for complex tasks

Not recommended: lfm2.5, which in testing reliably followed instructions planted in a code block (a prompt injection).

Memory and GPU guidance, and per-model detail: Model Compatibility. In the cloud, Anthropic Claude and Google Gemini are the strongest tested options.

Keyboard shortcuts

Shortcut Action
Cmd+Shift+I / Ctrl+Shift+I Toggle SideCar chat panel
Cmd+I / Ctrl+I Inline chat (edit code in place)
Cmd+L / Ctrl+L Clear chat
Cmd+Shift+U / Ctrl+Shift+U Undo all AI changes
Cmd+Shift+E / Ctrl+Shift+E Export chat as Markdown

Settings

The ones most people change. Every setting: configuration reference.

Setting Default Description
sidecar.model gemma4:e4b Model for chat and agent runs
sidecar.baseUrl http://localhost:11434 API base URL
sidecar.agentMode cautious cautious / autonomous / manual / plan / review / audit, or a custom mode
sidecar.completionGate.enabled true Hold back "done" until lint and tests pass
sidecar.enableInlineCompletions false Copilot-style autocomplete (opt-in)
sidecar.dailyBudget 0 (off) Daily spend cap in USD on paid backends (sidecar.weeklyBudget for weekly)

API keys live in VS Code SecretStorage (the OS keychain), set with SideCar: Set / Refresh API Key, never in settings.json.

Agents Window (preview): to use SideCar in VS Code's Agents Window, install it in your default profile and add to settings.json:

"extensions.supportAgentsWindow": {
    "nedonatelli.sidecar-ai": true
}

Documentation

Full documentation: nedonatelli.github.io/sidecar

  • docs/backends.md — setup, tuning, and limits for every backend
  • docs/model-compatibility.md — which local models work for agent mode, hardware guidance, and which to avoid
  • SECURITY.md — threat model, secret-pattern catalog, vulnerability disclosure
  • docs/extending-sidecar.md — skills, custom tools, MCP servers, policy hooks
  • CHANGELOG.md — per-release notes
  • CONTRIBUTING.md — building, testing, and contributing
  • Architecture diagrams: agent loop · tool dispatch · context pipeline · MCP lifecycle

Support

  • Bugs and feature requests: GitHub Issues
  • Security issues: private disclosure via SECURITY.md; please don't open public issues for vulnerabilities
  • Email: sidecarai.vscode@gmail.com

SideCar is free and always will be. If it saves you time, a tip is appreciated but never required:

Buy Me A Coffee

Disclaimer

SideCar is an independent project by Nicholas Donatelli and is not affiliated with, endorsed by, or sponsored by Ollama, Anthropic, Meta, Mistral AI, Google, GitHub, or any other company. All product names are trademarks of their respective holders.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft