Most AI coding assistants make their choices for you: one vendor, one model, one way of working. Continue.dev takes the opposite bet. Continue is the open-source AI code assistant you configure yourself — which models answer chat, which handle autocomplete, which tools the agent may use — through a single config file that lives on your machine. It runs in VS Code and JetBrains IDEs, works with cloud APIs or fully local models, and costs nothing. This guide shows how to install Continue.dev, understand its config, and put its agent mode to work.
What Is Continue.dev?
Continue is an open-source (Apache 2.0) AI assistant that plugs into the IDE you already use. It offers four modes in one extension: Chat for questions with codebase context, Autocomplete for inline suggestions as you type, Edit for targeted rewrites of selected code, and Agent mode, which can use tools — reading files, running terminal commands, searching the codebase — to complete multi-step tasks. Because the extension is model-agnostic, the same workflow can run on OpenAI or Anthropic APIs today and on a local Ollama server tomorrow.
That flexibility is why Continue is popular with teams who self-host or work under strict data policies: point everything at local models and the assistant keeps working with the network cable unplugged. If that direction interests you, our tutorial on building a RAG chatbot over your runbooks with Ollama covers the local-model basics this setup relies on.
Install Continue.dev and Your First config.yaml
Install the Continue extension from the VS Code Marketplace or the JetBrains plugin repository, then open the Continue sidebar (Ctrl+L in VS Code). Continue stores its configuration in one YAML file:
~/.continue/config.yaml
A model entry assigns roles — the key idea in Continue’s design. One model can chat while a smaller, faster one handles autocomplete:
name: My Config
version: 1.0.0
schema: v1
models:
- name: GPT Chat
provider: openai
model: gpt-5
apiKey: YOUR_API_KEY
roles: [chat, edit, apply]
- name: Local Autocomplete
provider: ollama
model: qwen2.5-coder:1.5b
apiBase: http://localhost:11434
roles: [autocomplete]
Project-level overrides can live in a .continue/ folder in the repository, layered on top of your global config — useful when one project needs a different model or stricter rules.

Context Providers, Rules and Agent Mode
In chat, @ mentions attach context: @codebase searches your indexed project, @file and @folder pin specific sources, @terminal shares recent command output, @docs pulls in documentation, and @problems surfaces the errors your IDE already sees. Autocomplete uses a fill-in-the-middle model plus your recent edits, which is why the tiny local model in the example above works so well: completions must arrive faster than you type.
Rules — short instruction blocks in the config or in rule files — tell the assistant your conventions, and they apply across modes. In Agent mode the assistant gains tools: it can read and edit files, run commands, and search, asking for confirmation according to your tool policies. Continue can also connect MCP servers as configuration blocks, extending the agent with your own tools in the same YAML-driven style as everything else.
There is a command-line side as well: Continue’s CLI (the cn command, installed with npm install -g @continuedev/cli) brings the same configured assistant into the terminal and CI pipelines, where teams use it for automated checks and scripted agent runs.
Blocks, the Hub and Smarter Codebase Search
Continue organizes configuration into reusable blocks: models, prompts, rules, context providers, docs, and tools. Blocks can be shared through Continue’s hub, so a team can publish its standard assistant — the approved models, the company style rules, the internal documentation sources — and every developer installs the same combination in one step instead of hand-copying YAML between machines. Two behind-the-scenes roles matter on larger codebases: an embeddings model powers the @codebase index that makes chat answers repository-aware, and an optional reranking model improves which chunks of code reach the main model. Sensible defaults are chosen automatically, but knowing these roles exist explains most “why did it answer from the wrong file?” mysteries — and most of their fixes.
Tips for a Good Continue Setup
- Split models by role. A 1–3B local model for autocomplete and a strong model for chat/agent is the standard pattern: fast keystrokes, smart answers.
- Check the config into git. Sharing a project’s
.continuesetup means every teammate’s assistant behaves the same way. - Start agent tasks small. Let it prove itself on tests and boilerplate before your first big refactor.
- Keep API keys out of the repo. Reference secrets via environment variables, especially in shared configs.
- Revisit your config monthly. New models appear constantly; Continue makes swapping a one-line change, so take advantage of it.
Conclusion
Continue.dev is the configurator’s AI assistant: open source, IDE-native, happy with any model from a frontier API to a laptop-sized local one, and governed by a config file you own. If vendor lock-in is your main objection to AI coding tools, install Continue and write your first config.yaml today. The official Continue documentation covers every configuration block in detail.