Continue.dev is an open-source AI assistant for VS Code and JetBrains, and config.json is where you tell it which models to use and where to pull context from.
Chat models vs autocomplete
models lists the models available in chat:
"models": [
{ "title": "Claude Sonnet", "provider": "anthropic", "model": "claude-sonnet-4-5", "apiKey": "${{ secrets.ANTHROPIC_API_KEY }}" }
]
tabAutocompleteModel is deliberately separate — inline completion needs to be fast, so people pair a strong chat model with a small one like Codestral for typing.
Embeddings power @codebase
embeddingsProvider builds the index behind @codebase retrieval, so the assistant can answer questions about your whole repo, not just the open file.
Context providers
contextProviders are the @ sources you can pull in:
"contextProviders": [
{ "name": "code" }, { "name": "diff" }, { "name": "docs" }, { "name": "terminal" }
]
Add only the ones you use — each extra provider is more noise in the prompt.
Custom slash commands
slashCommands adds / actions in chat, like /edit or a project-specific /test.
Security notes
- Reference API keys as
${{ secrets.NAME }}, never inline. - Local providers such as Ollama keep code on your machine — prefer them for sensitive repos.
- Vet third-party context providers before enabling them.
Open the Continue.dev config template and ask the workspace to "add an Ollama model for local inference" or "add the codebase context provider", then diff the result.