Introduction
Continue Agents are defined using theconfig.yaml
specification.
Agents are composed of models, rules, and tools (MCP servers).
Configuring Models, Rules, and Tools
Learn how to work with Continue’s configuration system, including using hub models, rules, and tools, creating local configurations, and organizing your setup.
Understanding Agents
Learn how to build and configure agents, understand their capabilities, and customize them for your development workflow.
Properties
Below are details for each property that can be set inconfig.yaml
.
All properties at all levels are optional unless explicitly marked as required.
The top-level properties in the config.yaml
configuration file are:
name
(required)version
(required)schema
(required)models
context
rules
prompts
docs
mcpServers
data
name
The name
property specifies the name of your project or configuration.
config.yaml
version
The version
property specifies the version of your project or configuration.
schema
The schema
property specifies the schema version used for the config.yaml
, e.g. v1
models
The models
section defines the language models used in your configuration. Models are used for functionalities such as chat, editing, and summarizing.
Properties:
-
name
(required): A unique name to identify the model within your configuration. -
provider
(required): The provider of the model (e.g.,openai
,ollama
). -
model
(required): The specific model name (e.g.,gpt-4
,starcoder
). -
apiBase
: Can be used to override the default API base that is specified per model -
roles
: An array specifying the roles this model can fulfill, such aschat
,autocomplete
,embed
,rerank
,edit
,apply
,summarize
. The default value is[chat, edit, apply, summarize]
. Note that thesummarize
role is not currently used. -
capabilities
: Array of strings denoting model capabilities, which will overwrite Continue’s autodetection based on provider and model. See the Model Capabilities guide for detailed information. Supported capabilities include:tool_use
: Enables function/tool calling support (required for Agent mode)image_input
: Enables image upload and processing support
-
maxStopWords
: Maximum number of stop words allowed, to avoid API errors with extensive lists. -
promptTemplates
: Can be used to override the default prompt templates for different model roles. Valid values arechat
,edit
,apply
andautocomplete
. Thechat
property must be a valid template name, such asllama3
oranthropic
. -
chatOptions
: If the model includes rolechat
, these settings apply for Agent and Chat mode:baseSystemMessage
: Can be used to override the default system prompt for Chat mode.baseAgentSystemMessage
: Can be used to override the default system prompt for Agent mode.basePlanSystemMessage
: Can be used to override the default system prompt for Plan mode.
-
embedOptions
: If the model includes roleembed
, these settings apply for embeddings:maxChunkSize
: Maximum tokens per document chunk. Minimum is 128 tokens.maxBatchSize
: Maximum number of chunks per request. Minimum is 1 chunk.
-
defaultCompletionOptions
: Default completion options for model settings.contextLength
: Maximum context length of the model, typically in tokens.maxTokens
: Maximum number of tokens to generate in a completion.temperature
: Controls the randomness of the completion. Values range from0.0
(deterministic) to1.0
(random).topP
: The cumulative probability for nucleus sampling.topK
: Maximum number of tokens considered at each step.stop
: An array of stop tokens that will terminate the completion.reasoning
: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ and some Ollama models.reasoningBudgetTokens
: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models.
-
requestOptions
: HTTP request options specific to the model.-
timeout
: Timeout for each request to the language model. -
verifySsl
: Whether to verify SSL certificates for requests. -
caBundlePath
: Path to a custom CA bundle for HTTP requests. -
proxy
: Proxy URL for HTTP requests. -
headers
: Custom headers for HTTP requests. -
extraBodyProperties
: Additional properties to merge with the HTTP request body. -
noProxy
: List of hostnames that should bypass the specified proxy. -
clientCertificate
: Client certificate for HTTP requests.cert
: Path to the client certificate file.key
: Path to the client certificate key file.passphrase
: Optional passphrase for the client certificate key file.
-
-
autocompleteOptions
: If the model includes roleautocomplete
, these settings apply for tab autocompletion:disable
: Iftrue
, disables autocomplete for this model.maxPromptTokens
: Maximum number of tokens for the autocomplete prompt.debounceDelay
: Delay before triggering autocomplete in milliseconds.modelTimeout
: Model timeout for autocomplete requests in milliseconds.maxSuffixPercentage
: Maximum percentage of prompt allocated for suffix.prefixPercentage
: Percentage of input allocated for prefix.transform
: Iffalse
, disables trimming of multiline completions. Defaults totrue
. Useful for models that generate better multiline completions without transformations.template
: Custom template for autocomplete using Mustache syntax. You can use the{{{ prefix }}}
,{{{ suffix }}}
,{{{ filename }}}
,{{{ reponame }}}
, and{{{ language }}}
variables.onlyMyCode
: Only includes code within the repository for context.useCache
: Iftrue
, enables caching for completions.useImports
: Iftrue
, includes imports in context.useRecentlyEdited
: Iftrue
, includes recently edited files in context.useRecentlyOpened
: Iftrue
, includes recently opened files in context.
config.yaml
context
The context
section defines context providers, which supply additional information or context to the language models. Each context provider can be configured with specific parameters.
More information about usage/params for each context provider can be found here
Properties:
provider
(required): The identifier or name of the context provider (e.g.,code
,docs
,web
)name
: Optional name for the providerparams
: Optional parameters to configure the context provider’s behavior.
config.yaml
rules
Rules are concatenated into the system message for all Agent, Chat, and Edit requests.
Confiugration example:
config.yaml
rules.md
prompts
Prompts can be invoked with a / command.
Configuration example:
config.yaml
prompts.md
docs
List of documentation sites to index.
Properties:
name
(required): Name of the documentation site, displayed in dropdowns, etc.startUrl
(required): Start page for crawling - usually root or intro page for docsfavicon
: URL for site favicon (default is/favicon.ico
fromstartUrl
).useLocalCrawling
: Skip the default crawler and only crawl using a local crawler.
config.yaml
mcpServers
The Model Context Protocol is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider.
Properties:
name
(required): The name of the MCP server.command
(required): The command used to start the server.args
: An optional array of arguments for the command.env
: An optional map of environment variables for the server process.cwd
: An optional working directory to run the command in. Can be absolute or relative path.connectionTimeout
: An optional connection timeout number to the server in milliseconds.requestOptions
: Optional request options forsse
andstreamable-http
servers. Same format as model requestOptions.
config.yaml
data
Destinations to which development data will be sent.
Properties:
name
(required): The display name of the data destinationdestination
(required): The destination/endpoint that will receive the data. Can be:- an HTTP endpoint that will receive a POST request with a JSON blob
- a file URL to a directory in which events will be dumpted to
.jsonl
files
schema
(required): the schema version of the JSON blobs to be sent. Options include0.1.0
and0.2.0
events
: an array of event names to include. Defaults to all events if not specified.level
: a pre-defined filter for event fields. Options includeall
andnoCode
; the latter excludes data like file contents, prompts, and completions. Defaults toall
apiKey
: api key to be sent with request (Bearer header)requestOptions
: Options for event POST requests. Same format as model requestOptions.
config.yaml
Complete YAML Config Example
Putting it all together, here’s a complete example of aconfig.yaml
configuration file:
config.yaml
Using YAML anchors to avoid config duplication
You can also use node anchors to avoid duplication of properties. To do so, adding the YAML version header%YAML 1.1
is needed, here’s an example of a config.yaml
configuration file using anchors:
config.yaml
config.json
Deprecation
config.yaml
replaces config.json
, which is deprecated. View the Migration Guide for help transitioning from the old format.