Continue Cheat Sheet: config.yaml, Model Roles, Rules, MCP and cn CLI
Checked against Continue Continue 2.0.0 (VS Code extension, 19 Jun 2026) on 28 November 2026. Each section links to the official docs it was checked against.
This sheet is for developers who still run Continue, the open-source assistant for VS Code, JetBrains and the terminal. It covers the 2.0.0 release from June 2026 and the docs at docs.continue.dev. Read the status note below first, because the project is no longer actively developed.
When to use what
Status first. The GitHub README now says the continuedev/continue repository is no longer actively maintained and is read-only, and describes 2.0.0 as a final release of the VS Code extension, CLI and JetBrains plugin. The extension keeps working, but don't expect fixes for new model APIs. If you're choosing a tool today, compare it with Cline or Zed first; if you already have a tuned config, it's reasonable to keep using it.
Inside Continue, pick the mode by risk. Chat has no tools. Plan gives read-only tools for exploring. Agent can change files and asks before each tool call by default. Cmd/Ctrl + . cycles between them.
Keep everything in config.yaml; the old config.json is deprecated. Give each model the roles it's good at: a large model for chat and edit, a small fast one for autocomplete. Rules belong in .continue/rules/ as Markdown with frontmatter, so they travel with the repo. Converting older JSON snippets is easy with the YAML/JSON converter, and the YAML validator catches indentation slips before Continue silently ignores a block.
Other top-level keys are context, prompts, docs, mcpServers and data. YAML anchors need a %YAML 1.1 header.
name: my-config
version: 1.0.0
schema: v1The three required top-level keys
models:
- name: GPT-4
provider: openai
model: gpt-4
roles: [chat, edit]Declare a model with provider, model id and the jobs it does
roles: [chat, edit, apply, autocomplete, embed, rerank, summarize]Every role value; the default is chat, edit, apply and summarize
apiKey: ${{ secrets.OPENAI_API_KEY }}Pull a key from secrets rather than writing it into the file
capabilities: [tool_use, image_input]Tell Continue the model can call tools or read images
apiBase: http://localhost:11434Point a model at a self-hosted or proxy endpoint
rules:
- Always use TypeScript strict modeInline rules in config, next to the .continue/rules files
context:
- provider: fileLet you @-mention any file
- provider: diffAdd your current Git diff to the conversation
- provider: terminalAdd the last terminal output, useful for errors
- provider: problemsAdd the editor's diagnostics for the open file
- provider: repo-map
params:
includeSignatures: trueGive the model an outline of the repo with function signatures
- provider: http
params:
url: https://example.com/ctxFetch context from your own HTTP endpoint
Rules aren't sent with autocomplete or apply requests.
.continue/rules/Workspace folder for Markdown rule files
name: TypeScript rulesFrontmatter name shown in the UI
globs: ["**/*.ts", "**/*.tsx"]Apply the rule only when matching files are in play
alwaysApply: trueInclude the rule in every request; false leaves it to globs or the description
description: Use when touching database codeLets agent mode pull the rule in when the task matches
01-general.md, 02-api.mdFiles load in alphabetical order, so prefix numbers to control it
Shortcuts come from https://docs.continue.dev/customize/overview and https://docs.continue.dev/ide-extensions/agent/quick-start.
mcpServers:
- name: SQLite
command: uvx
args: [mcp-server-sqlite, --db-path, ./test.db]Run a stdio MCP server; env and cwd are optional
connectionTimeout: 30000Wait longer for a slow server to connect
Cmd/Ctrl + LOpen the chat sidebar in VS Code (Cmd/Ctrl + J in JetBrains)
Cmd/Ctrl + .Cycle between Chat, Plan and Agent modes
Plan modeRead-only tools for exploring code without changing it
Agent modeAll tools enabled; asks permission per tool call by default
curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bashInstall cn on macOS or Linux
cnStart the interactive terminal agent in the current project
cn -p "write tests for utils.ts"Run headless with one prompt, for scripts
cn --readonlyPlan mode: read-only tools only
cn --config ./config.yamlUse a specific config file
cn --allow Bash --exclude WriteAllow or block named tools; both flags repeat
cn --resumeContinue the previous session
cn --rule ./rules/style.mdAdd a rule for this run; repeatable
Worked example: A minimal config.yaml with a chat model, autocomplete and one rule
Write the config:
name: team
version: 1.0.0
schema: v1
models:
- name: Main
provider: openai
model: gpt-4
apiKey: ${{ secrets.OPENAI_API_KEY }}
roles: [chat, edit, apply]
- name: Local autocomplete
provider: ollama
model: qwen2.5-coder:1.5b
roles: [autocomplete]
context:
- provider: diff
- provider: terminal
Then add .continue/rules/01-tests.md:
---
name: Test style
globs: ["**/*.test.ts"]
---
Use Vitest and describe blocks; no snapshot tests.
Reload the window. The model picker should list Main for chat and edit, while tab completions come from the local model, so your typing never waits on a paid API. The test rule only appears when a .test.ts file is part of the request, which keeps the prompt short for everything else. The Ollama model id here is just an example; use one you have pulled.
Common mistakes
Assuming Continue will keep up with next year's models
The repo is read-only after 2.0.0; plan a move to a maintained agent if you need new providers.
Editing config.json and wondering why nothing changes
config.json is deprecated; move settings into config.yaml with name, version and schema at the top.
Giving one big model every role including autocomplete
Set
rolesper model and give autocomplete to a small, fast model.Using the
codebaseorfolderprovider from older tutorialsBoth are deprecated; use
repo-map,fileand agent tools instead.Writing a rule with no globs and
alwaysApply: falseAdd globs or a clear description, otherwise the rule is only used if the agent decides it matters.
Related cheat sheets
Sources
- https://github.com/continuedev/continue
- https://docs.continue.dev/reference
- https://docs.continue.dev/customize/deep-dives/custom-providers
- https://docs.continue.dev/customize/deep-dives/rules
- https://docs.continue.dev/customize/overview
- https://docs.continue.dev/ide-extensions/agent/quick-start
- https://docs.continue.dev/cli/quickstart
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.