Continue
Continue is an open-source AI code assistant platform with over 26,000 GitHub stars. It provides AI-powered tab autocomplete, inline editing, and chat functionality through extensions for VS Code and JetBrains IDEs, as well as a standalone CLI tool. Continue is designed to be model-agnostic -- you can connect it to commercial APIs like Claude, GPT, and Gemini, or use locally hosted models through Ollama for a fully private, offline experience.
Prerequisites
Before installing Continue, make sure you have the following:
- VS Code, Cursor, or a JetBrains IDE -- For the editor extension.
- Node.js 18+ -- Required only if you want to use the standalone CLI.
- API key or local model -- At least one AI model provider (or Ollama for local models).
TIP
Continue works out of the box with free trial models. You can start using it immediately without configuring an API key, though you will want to set up your preferred model for regular use.
Installation
VS Code Extension (Recommended)
Install Continue directly from the VS Code Extensions panel.
- Open VS Code.
- Press
Ctrl + Shift + Xto open the Extensions panel. - Search for "Continue" in the marketplace.
- Click Install on the extension by Continue (publisher ID:
continue.continue).
Or install from the terminal:
# Install the Continue extension via CLI
code --install-extension continue.continue
# Verify the installation
code --list-extensions | grep continueJetBrains Plugin
For JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, etc.):
- Open your JetBrains IDE.
- Go to Settings > Plugins > Marketplace.
- Search for "Continue".
- Click Install and restart the IDE.
Or install from the terminal:
# For IntelliJ-based IDEs, the plugin can also be installed via the JetBrains Toolbox
# or by downloading the .zip from the JetBrains Marketplace:
# https://plugins.jetbrains.com/plugin/22707-continueStandalone CLI
Continue also offers a CLI tool for terminal-based usage:
# Install the Continue CLI globally via npm
npm install -g @continuedev/continue-cli
# Verify the installation
continue --versionIf you encounter permission errors with npm:
# Configure a user-level global directory for npm
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Retry the installation
npm install -g @continuedev/continue-cliConfiguration
Configuration File
Continue stores its configuration in a JSON file. After installing the extension and opening it for the first time, Continue creates a default configuration file.
# The configuration file is located at:
# ~/.continue/config.json
# View the current configuration
cat ~/.continue/config.jsonSetting Up Model Providers
Edit the configuration file to add your preferred AI model providers:
# Open the config file for editing
# You can also edit this from within VS Code via the Continue settings UI
cat > ~/.continue/config.json << 'JSONEOF'
{
"models": [
{
"title": "Claude Sonnet",
"provider": "anthropic",
"model": "claude-sonnet-4-20250514",
"apiKey": "your-anthropic-api-key"
},
{
"title": "GPT-4o",
"provider": "openai",
"model": "gpt-4o",
"apiKey": "your-openai-api-key"
},
{
"title": "Ollama Local",
"provider": "ollama",
"model": "llama3"
}
],
"tabAutocompleteModel": {
"title": "Ollama Autocomplete",
"provider": "ollama",
"model": "starcoder2:3b"
},
"embeddingsProvider": {
"provider": "ollama",
"model": "nomic-embed-text"
}
}
JSONEOFWARNING
If you include API keys in the config file, make sure to restrict its permissions:
chmod 600 ~/.continue/config.jsonUsing Ollama for Local Models
For a fully offline and private experience, set up Ollama:
# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh
# Pull models for chat and autocomplete
ollama pull llama3
ollama pull starcoder2:3b
ollama pull nomic-embed-text
# Verify the models are available
ollama listThen configure Continue to use Ollama as shown in the configuration example above. No API key is needed for local models.
Context Providers
Continue supports various context providers that give the AI additional information about your project:
{
"contextProviders": [
{ "name": "code", "params": {} },
{ "name": "docs", "params": {} },
{ "name": "diff", "params": {} },
{ "name": "terminal", "params": {} },
{ "name": "problems", "params": {} },
{ "name": "folder", "params": {} },
{ "name": "codebase", "params": {} }
]
}Add this section to your ~/.continue/config.json to enable these providers.
Usage
Tab Autocomplete
Continue provides intelligent tab autocomplete as you type. It predicts the next code you are likely to write and offers suggestions inline.
- Accept a suggestion: Press
Tab. - Dismiss a suggestion: Press
Escapeor keep typing. - Cycle through suggestions: Use
Alt + ]andAlt + [.
Chat Panel (Ctrl + L)
The chat panel allows you to have a conversation with the AI about your code.
- Press
Ctrl + Lto open the Continue chat panel. - Type your question or instruction.
- Continue can reference your current file, selection, or entire project.
Example prompts:
Explain what this function does
Write a unit test for the selected code
Refactor this class to use the strategy pattern
How can I optimize this database query?Inline Editing (Ctrl + I)
For quick, targeted edits directly in your code:
- Select the code you want to modify (or place your cursor where you want new code).
- Press
Ctrl + Ito open the inline editing prompt. - Describe the change in natural language.
- Review the proposed diff and accept or reject it.
Using Context References
You can reference specific files and context in your prompts:
@file-- Reference a specific file.@codebase-- Search your entire codebase for relevant context.@docs-- Reference indexed documentation.@terminal-- Include recent terminal output.@diff-- Include current Git diff.@problems-- Include VS Code diagnostics.
Keyboard Shortcuts Summary
| Shortcut | Action |
|---|---|
Tab | Accept autocomplete suggestion |
Escape | Dismiss autocomplete suggestion |
Ctrl + L | Open the AI chat panel |
Ctrl + I | Open inline editing prompt |
Ctrl + Shift + L | Add selection to chat context |
Ctrl + Shift + R | Toggle autocomplete on/off |
Update
Updating the VS Code Extension
Continue updates automatically through the VS Code marketplace. To manually update:
# Force update via CLI
code --install-extension continue.continue --forceOr update through the VS Code Extensions panel by clicking the Update button when available.
Updating the CLI
# Update the Continue CLI
npm update -g @continuedev/continue-cliUninstalling Continue
# Remove the VS Code extension
code --uninstall-extension continue.continue
# Remove the CLI tool
npm uninstall -g @continuedev/continue-cli
# Remove the configuration directory (optional)
rm -rf ~/.continueTroubleshooting
Autocomplete not working
If tab autocomplete is not providing suggestions:
- Check the model is configured -- Open
~/.continue/config.jsonand verifytabAutocompleteModelis set. - Check Ollama is running (if using local models):
# Check if Ollama is running
systemctl status ollama
# Start Ollama if it is not running
ollama serve- Check the Continue output log -- In VS Code, press
Ctrl + Shift + U, then select "Continue" from the dropdown.
Chat panel shows an error
If the chat panel displays connection or authentication errors:
# For API-based providers, verify your API key
echo $ANTHROPIC_API_KEY
# Test connectivity to the API
curl -I https://api.anthropic.com
# For Ollama, make sure the model is downloaded
ollama list
# If the model is missing, pull it
ollama pull llama3High CPU usage during autocomplete
If autocomplete causes excessive CPU usage, especially with local models:
- Switch to a smaller autocomplete model (e.g.,
starcoder2:3binstead of a 7B model). - Increase the autocomplete debounce delay in the config:
{
"tabAutocompleteOptions": {
"debounceDelay": 500
}
}- Disable autocomplete for large files by setting a file size limit.
Extension conflicts with other AI tools
If Continue conflicts with other AI extensions (such as GitHub Copilot or Cline):
- Disable the conflicting extension temporarily.
- Check if keyboard shortcuts overlap -- open Preferences > Keyboard Shortcuts and search for conflicts.
- Reassign shortcuts as needed to avoid collisions.
Configuration file syntax errors
If Continue stops working after editing the config:
# Validate the JSON syntax
python3 -m json.tool ~/.continue/config.json
# If validation fails, fix the JSON errors or reset the config
# Back up the current config first
cp ~/.continue/config.json ~/.continue/config.json.bak
# Reset to default by deleting the config (Continue will recreate it)
rm ~/.continue/config.jsonRelated Resources
- AI Tools Overview -- Overview of all AI tools on Debian
- Claude Code -- Terminal-based AI coding assistant
- Command Line Basics -- Terminal fundamentals
- Continue Official Website -- Official documentation
- Continue GitHub Repository -- Source code and issue tracker