Getting Started
Getting Started
Tip: the Get Started with SideCar walkthrough auto-opens in VS Code’s Welcome editor the first time you install SideCar. It walks through the five essentials in under a minute and auto-checks off each step as you run the relevant command. Reopen it any time with
SideCar: Open Walkthroughfrom the Command Palette.
Install Ollama
Download and install Ollama for your platform. After installation, verify it’s working:
ollama --version
Pull the recommended model (SideCar’s default):
ollama pull gemma4:e4b
Install SideCar
Install from the VS Code Marketplace, or search for “SideCar” in the VS Code Extensions panel (Cmd+Shift+X / Ctrl+Shift+X).
Your first chat
- Click the SideCar icon in the activity bar (left sidebar) or press
⌘⇧I(Ctrl+Shift+Ion Windows/Linux) to toggle the chat panel. - The empty-state welcome card shows you the active model, three quick-action buttons, and four starter prompts you can click to pre-fill the input.
- Type a message in the chat input or click a starter prompt.
- SideCar auto-launches Ollama if it’s not already running.
SideCar will automatically include your active file and workspace context in the conversation.
Discover every action
Press ⌘⇧P (Ctrl+Shift+P on Windows/Linux) and type SideCar: — every user-facing action is in the palette with a consistent prefix and icon. Useful ones to remember:
SideCar: Toggle Chat— open or hide the chat sidebarSideCar: Inline Chat— inline edit prompt in the editor (⌘I)SideCar: Select Model— keyboard-first model pickerSideCar: Set / Refresh API Key— paste or rotate your keySideCar: Switch Backend— flip between backends (Ollama, Anthropic, OpenAI, OpenRouter, Groq, Fireworks, Gemini, Copilot, Bedrock)SideCar: Show Session Spend—$breakdown for the current session on paid backendsSideCar: Open Walkthrough— reopen the getting-started page
Code actions on diagnostics — when VS Code shows a red or yellow squiggle on a line, press ⌘. / Ctrl+. and you’ll see Fix with SideCar and Explain this error with SideCar alongside the built-in Quick Fix suggestions. Refactor with SideCar appears in the Refactor submenu on any selection.
Choosing a model
Use the model dropdown at the top of the chat panel to browse and switch models. Models are organized into two categories:
- Full Features (Tools) — models that support function calling (e.g.,
qwen3-coder,llama3.1,command-r) - Chat-Only — models that work for conversation but can’t use tools (e.g.,
gemma2,llama2)
You can also install new models directly from the dropdown — SideCar will pull them from the Ollama registry.
The default model is gemma4:e4b (~10 GB VRAM). For lighter hardware, try ministral-3:latest (6 GB), granite4.1:3b, or qwen2.5-coder:7b. For measured agent ratings across local models — including which ones to avoid for agent mode — see Model Compatibility.
Switching backends
The fastest way to move between backends (Ollama, Anthropic, OpenAI, OpenRouter, Groq, Fireworks, Gemini, Copilot, Bedrock) is the ☰ menu button in the chat header. It opens a settings menu with a Backend submenu — pick a profile and SideCar flips baseUrl, provider, and model in one click. Each profile keeps its own API key in VS Code’s SecretStorage, so switching doesn’t clobber keys you’ve already set. The same flow is available from the Command Palette as SideCar: Switch Backend.
The sections below describe each backend in detail and also cover the manual settings path if you prefer editing settings.json.
Using the Anthropic API
Recommended: click the ☰ menu → Backend → Anthropic Claude. SideCar sets baseUrl / provider / model for you; with no key stored yet it offers Set API Key and saves the key to the Anthropic-specific SecretStorage slot. The menu entry selects claude-haiku-5-5 (lowest cost); for agent work, switch sidecar.model to a current model such as claude-sonnet-5-5.
Manual:
- Set
sidecar.baseUrltohttps://api.anthropic.com - Run
SideCar: Set / Refresh API Keyfrom the command palette and paste your Anthropic API key - Set
sidecar.modelto a Claude model (e.g.,claude-sonnet-5-5)
SideCar uses prompt caching with Anthropic, reducing input token costs by ~90% on cache hits.
Note: the Anthropic API is a separate paid service from Claude.ai subscriptions — your Max or Pro plan does not include API credits. Get a key at platform.claude.com.
Using OpenAI-compatible servers
SideCar works with any server that exposes the OpenAI /v1/chat/completions endpoint — including LM Studio, vLLM, llama.cpp, text-generation-webui, and OpenRouter.
The quickest way is Custom endpoint in the backend menu (chat settings → Backend, or SideCar: Switch Backend):
- Enter the server’s URL (e.g.
http://localhost:8000/v1— a trailing/v1is optional) - Enter its API key, or leave it empty if the server doesn’t require one
- SideCar lists the server’s models and selects one
To configure it by hand instead:
- Set
sidecar.baseUrlto your server’s URL (e.g.,http://localhost:1234) - Set
sidecar.apiKeyif required (optional for most local servers) - Set
sidecar.modelto the model name your server is running
SideCar auto-detects the provider from the URL. If auto-detection gets it wrong, set sidecar.provider explicitly:
"sidecar.provider": "openai"
Provider examples
| Server | Base URL | Notes |
|---|---|---|
| LM Studio | http://localhost:1234 |
Auto-detected as OpenAI |
| vLLM | http://localhost:8000 |
Auto-detected as OpenAI |
| llama.cpp | http://localhost:8080 |
Auto-detected as OpenAI |
| OpenRouter | https://openrouter.ai/api/v1 |
Auto-detected as OpenRouter; set API key, 400+ models |
| text-generation-webui | http://localhost:5000 |
Enable OpenAI extension in the UI |
| Ollama | http://localhost:11434 |
Auto-detected as Ollama (native API) |
| Anthropic | https://api.anthropic.com |
Auto-detected as Anthropic |
Tool support
Most OpenAI-compatible models support function calling (tool use), which enables SideCar’s full agentic capabilities — file editing, shell commands, git operations, etc. SideCar always sends tool definitions to these servers, so a model without tool support fails agent requests; the automatic chat-only fallback applies only to the Ollama backend. On vLLM, tool calling also needs --enable-auto-tool-choice and --tool-call-parser (see the launch example).
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 |