Continue CLI (cn) and Continue.dev: what still works in 2026
Continue was acquired by Cursor and its repository is read-only. Installing the cn CLI, config.yaml with your own keys, and running cn -p safely over SSH.
Continue (continue.dev) is an open-source coding agent for VS Code, JetBrains and the terminal, and it is no longer developed: its site now says “Continue was acquired by Cursor”, and the GitHub repository is read-only. The last releases came out in June 2026: the VS Code extension 2.0.0 (2.1.0 as a pre-release) and the CLI @continuedev/cli 1.5.47, installed with npm i -g @continuedev/cli on Node.js 20 or later and run as cn. Both still install as of November 30, 2026 under Apache 2.0, and both now run with no Continue account: you bring your own model keys in ~/.continue/config.yaml. The catch is that nothing will be fixed from here on, and in headless mode (cn -p) the CLI’s code lets the agent run shell commands without asking.
What happened to Continue
The home page at continue.dev is now a single notice headed “Continue has joined Cursor”, which adds that “our open-source codebase remains freely available as a foundation for others.” It gives no date. The repository’s README says the rest:
Note: The continuedev/continue repository is no longer actively maintained and is read-only for all users.
We polished Continue and did a final 2.0.0 release of the VS Code extension, CLI, and JetBrains plugin.
This included removing anonymous telemetry, pulling out authentication, squashing bugs, and more.CopiedSo the hub and the sign-in that older tutorials walk through are gone (as of November 30, 2026, hub.continue.dev no longer resolves), and what remains is a tool you configure locally with your own keys. The docs site at docs.continue.dev is still up, but its CLI quickstart still tells you to run cn login, a command the code no longer has.
The versions disagree with the README in one place. On the releases page the VS Code extension’s 2.0.0 is marked Latest and 2.1.0 is a pre-release, both dated June 19, 2026. The CLI on npm has no 2.x: its latest tag is 1.5.47, published June 18, 2026, the day of the last change to the CLI’s source.
Install the Continue CLI
The package is @continuedev/cli and the command is cn. The README and the docs ask for Node.js 20 or later for the npm route; the package’s own engines field says >=18, and the install script wants at least 20.20.1. A current Node 20 or later satisfies all three.
node --version # 20 or later
npm i -g @continuedev/cli
cn --version # 1.5.47 as of November 30, 2026CopiedThe README also offers piped installers:
# macOS and Linux
curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bash
# Windows PowerShell
irm https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.ps1 | iexCopiedLike any piped installer, they run whatever the URL serves. The Linux and macOS script is short to read: it checks for Node.js 20.20.1, and if it is missing or older it pipes fnm’s own installer from fnm.vercel.app to bash (a second piped installer), puts fnm in ~/.local/share/fnm, installs Node with it, runs the same npm install -g, and appends PATH and fnm lines to your shell profile. If the global npm folder is not writable it also changes your npm prefix to ~/.npm-global. If you already manage Node, the npm line alone is cleaner. A permissions error on the global install is covered in the npm install -g guide.
No sign-in: your keys, your config.yaml
With no account to sign in to, the first interactive cn asks one thing:
To get started, enter your Anthropic API key.CopiedIt then writes ~/.continue/config.yaml with two entries, claude-sonnet-4-6 and claude-opus-4-6, the key stored in the file as a plain apiKey value and the file set to mode 600 (readable by you only; Windows is left alone). The prompt does not hide what you type, so the key shows on screen and stays in the terminal’s scrollback (and tmux’s, if you are in one); the .env route below avoids both. On Amazon Bedrock, set CONTINUE_USE_BEDROCK=1 instead. For any other provider, write the file yourself. Every config needs name, version and schema, and each model needs a name, a provider and a model. Here is OpenRouter, built from Continue’s OpenRouter page, with the key kept out of the file:
# ~/.continue/config.yaml
name: Main Config
version: 1.0.0
schema: v1
models:
- name: OpenRouter
provider: openrouter
model: <model ID from openrouter.ai/models>
apiBase: https://openrouter.ai/api/v1
apiKey: ${{ secrets.OPENROUTER_API_KEY }}
capabilities:
- tool_useCopiedThe docs note that “OpenRouter models may require explicit capability configuration”, which is what the tool_use line is for: without it, agent mode may not use tools. The OpenRouter API key guide covers making the key. Other providers follow the same shape with their own provider value (anthropic, openai, gemini, ollama and more); for a local Ollama, add apiBase: http://<host>:11434 only when it runs on another machine.
The ${{ secrets.NAME }} value is looked up, per Continue’s FAQ, in this order: a .env at the root of the project you opened, then .continue/.env in that project, then ~/.continue/.env, then the process environment. The order matters: a project whose own .env defines OPENAI_API_KEY for its app will hand that key to Continue ahead of yours. Put your key in the global file without it reaching your shell history:
mkdir -p ~/.continue
read -rsp 'OpenRouter key: ' k; echo
(umask 077; printf 'OPENROUTER_API_KEY=%s\n' "$k" >> ~/.continue/.env); unset k
chmod 600 ~/.continue/.envCopiedIf you skip the Anthropic prompt this way, tell the CLI that setup is done. Its code runs the prompt whenever ~/.continue/.onboarding_complete is missing, unless you start it with --config:
touch ~/.continue/.onboarding_complete
cn # or: cn --config ~/.continue/config.yamlCopiedSet CONTINUE_GLOBAL_DIR to move the whole ~/.continue folder elsewhere. Inside a session, /config switches between local configs.
Headless runs with cn -p, and what they may do
-p (long form --print) runs one prompt, prints the answer and exits. Read the rest of this section before running one: the CLI’s code lets a headless run use the shell without asking, so the examples here pass --exclude Bash.
cn -p "Summarise what changed in the last commit" --exclude Bash
cn -p "List the TODOs in src/" --format json --exclude Bash
git diff | cn -p "Review this diff" --silent --exclude Bash # --silent strips <think> tags
cn --resume # resume the last session
cn ls # list recent sessionsCopiedTools have three policies, allow, ask and exclude, kept in ~/.continue/permissions.yaml and set per run with --allow, --ask and --exclude. Reading, listing, searching and fetching are allowed by default; editing files (Edit, MultiEdit, Write) asks. On shell commands in headless mode, the docs and the code disagree. The tool permissions page puts Bash among the tools that ask, and says “In headless mode, ask tools are excluded since there’s no one to approve them.” The CLI’s source on its main branch reads the other way:
// MCP and Bash are ask in TUI mode, auto in headlessCopiedand its headless branch sets both Bash and any other unlisted tool to allow. Plan the run as if the source is right: a cn -p job may run shell commands as your user, and use any MCP tool you have configured, while file edits are left out unless you allow them. To fence it, exclude the shell (and any MCP tool that can change things), or allow only what the job needs:
cn -p "Fix the failing test" --allow Edit --allow Write --exclude Bash
cn -p "Explain the build setup" --exclude BashCopiedTwo flags are broader than they sound. --auto is “Allow all tools without prompting”, shell included. --readonly (plan mode) blocks file writes but, in the docs’ words, “allows reads and Bash”, so it is not read-only for anything a shell command can change; the source carries a note to itself, “TODO address bash read only concerns”. And both are “absolute overrides” that ignore --allow, --exclude and permissions.yaml. Whatever the agent runs, it runs as the user who started cn, so use an ordinary user, never root. Commit messages the agent writes get a Continue signature unless CONTINUE_CLI_DISABLE_COMMIT_SIGNATURE is set.
On a remote server over SSH
The CLI used to be the awkward part here, with a browser sign-in to the hub. Now it needs no browser at all: install Node and the package on the server, put the key in ~/.continue/.env as above, and run cn. The CLI also reads keys from the process environment, which the editor extensions cannot, so a job runner that injects OPENROUTER_API_KEY works too. One wrinkle in unattended runs: when there is no terminal and ANTHROPIC_API_KEY is set, the first-run code writes that key into config.yaml on every start until the .onboarding_complete file exists, so create it once.
An interactive session dies with the SSH connection unless it runs inside tmux:
tmux new -s cn
cd ~/project && cn
# detach with Ctrl-b d; later: tmux attach -t cnCopiedFor a scheduled job, call cn -p from cron or a systemd timer with explicit --allow and --exclude flags, for the reason in the section above.
The VS Code and JetBrains extensions
In VS Code, install Continue - open-source AI code agent (ID Continue.continue) from the Marketplace or Open VSX. Ctrl+L (Cmd+L on a Mac) focuses Continue’s chat input and Ctrl+I (Cmd+I) its inline edit. It reads the same ~/.continue/config.yaml as the CLI, and its keys must come from a config value or a .env file: the FAQ is plain that “IDE extensions (VS Code, JetBrains) cannot read your shell environment variables.” Restart the editor after changing a secret.
With VS Code’s Remote-SSH, Continue declares itself an extension that prefers the local side, and VS Code runs such an extension on your own machine when it can. So the ~/.continue it reads, keys included, is your laptop’s, not the server’s. For JetBrains, the README says plainly: “We recommend using the Continue CLI instead of the JetBrains plugin.”
If you are choosing what to use next
Continue still works with your own keys, and its Apache 2.0 code is free to fork, but no maker is fixing bugs, following provider API changes or reviewing security issues. Its makers name no successor. The same thing happened to Roo Code in May 2026; the Roo Code guide records how that ended. For other open-source agents in the editor, the Cline vs Claude Code comparison and the Kilo Code guide are the places to start; for the terminal, the OpenCode alternatives and Claude Code alternatives guides set the field side by side, and the Aider guide covers another open-source one that takes your own keys.