Continue CLI: safety, permission modes and how to run it
How the Continue CLI (cn) sets tool permissions, --auto, --readonly and headless mode, its 2026 CVEs, and the repo's read-only status.
- Made by
- Continue Dev, Inc.
- Runs in
- Terminal, VS Code extension, JetBrains plugin
- Platforms
- macOS, Linux, Windows
- Licence
- Apache-2.0, open source
4 public advisories
Security advisories and reported issues since 2025, from vendor advisories, NVD and public reports. Checked December 2, 2026.
On this page
What Continue CLI is
The Continue CLI, run as cn, is the terminal agent from the Continue project, which also ships VS Code and JetBrains extensions. In the interactive terminal UI it asks before writing files or running shell commands, and in headless mode (cn -p) it excludes anything that would need approval unless you allow it. The repository README now says continuedev/continue is no longer actively maintained and is read-only, and describes a final 2.0.0 release that removed anonymous telemetry and authentication.
Install Continue CLI
macOS and Linux:
curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.ps1 | iexWith npm (Node.js 20 or later):
npm i -g @continuedev/cliContinue CLI news and advisories
Releases and announcements, with public security advisories on the same line.
NVD published CVE-2026-138384 about the tool permission loader in continue up to 1.5.47.
NVD- CVE-2026-138384
The loadPermissionsYaml function in the tool permission handler has an improper authorization flaw in continue up to 1.5.47. VulDB rated it low and called exploitation difficult. A fix pull request was awaiting acceptance.
NVD - CVE-2026-133694
OS command injection in the Mermaid diagram renderer of the VS Code extension (ContinueGUIWebviewViewProvider.ts), affecting versions 2.0.0 and 2.1.0. The report says the vendor did not respond. This concerns the extension, not the cn CLI.
NVD - CVE-2026-116109
OS command injection in MCPManagerSingleton.setConnections (MCP server transport, core/config/ConfigHandler.ts) in Continue 2.0.0. The record says the vendor did not respond.
GitHub Advisory Database NVD published CVE-2026-76072 on the Continue CLI's destructive-command denylist in headless and auto modes. A reporter opened the public issue on July 19, 2026, after saying earlier email got no reply.
Continue issue tracker- CVE-2026-76072
In headless and auto mode, the CLI grants Bash allow by default, and an incomplete denylist is the only barrier to destructive commands. rm -rf of /home, /root, /var, /opt, /srv or $HOME, and find -delete, shred, wipefs, truncate and pkexec were not blocked. An indirect prompt injection could wipe the user's data. Affects versions up to 1.5.47.
NVD The most recent commit shown on the repo's main branch removes the Sign in link from the docs, noting the login flow is retired. The README says the repo is read-only and describes a final 2.0.0 release that dropped telemetry and authentication.
Continue repo
How Continue CLI keeps itself in bounds
Out of the box, read-only tools run automatically; Edit, MultiEdit, Write and Bash ask first in the terminal UI.
| Mode | How to turn it on | Asks you | What it allows |
|---|---|---|---|
Normal (default) | cn | For some actions | Reads run automatically. Edit, MultiEdit, Write and Bash ask for approval in the terminal UI. |
Plan | cn --readonly, or Shift+Tab in the terminal UI | Never | Excludes all write tools and allows reads and Bash. It ignores --allow, --exclude and permissions.yaml, so shell commands still run unprompted. |
Auto | cn --auto, or Shift+Tab in the terminal UI | Never | Allows every tool without prompting, overriding all other permission sources. |
Per-tool flags | --allow, --ask, --exclude, for example cn --exclude Bash or --allow "Write(**/*.ts)" | For some actions | Sets each tool to allow, ask or exclude at launch, with glob patterns on the main argument. Flags beat permissions.yaml and the defaults. |
Headless | cn -p "prompt" | Never | No one can approve, so ask-level tools are excluded unless you pass --allow. --allow "*" allows everything. |
Where its settings live
| Path | What it holds |
|---|---|
~/.continue/permissions.yaml | Saved allow, ask and exclude lists. The terminal UI updates it when you choose to continue and not be asked again. |
CONTINUE_API_KEY (environment) | API key used for headless and CI runs in the quickstart |
Session history | The CLI saves chat history per terminal session for cn --resume and cn ls; the storage path was not confirmed |
- Every tool has one of three levels: allow, ask or exclude. Read tools default to allow, and writes and Bash default to ask. In headless mode, ask tools are excluded because nobody is there to approve them.
- Precedence runs from mode policies, then command-line flags, then permissions.yaml, then built-in defaults. Plan and auto modes override everything else.
- A 2026 CVE says that in headless and auto mode, Bash is allowed and the only guard is a denylist of destructive commands, which missed paths such as /home and $HOME. Because the agent reads web pages and repo files, a prompt injection could trigger deletion.
- The upstream repo is read-only, and the issue behind that CVE still lists open fix pull requests, so check for fixes before relying on unattended modes.
Security incidents and advisories
| Date | Advisory | What happened |
|---|---|---|
The loadPermissionsYaml function in the tool permission handler has an improper authorization flaw in continue up to 1.5.47. VulDB rated it low and called exploitation difficult. A fix pull request was awaiting acceptance.No fixed version published | ||
CVE-2026-133694Medium | OS command injection in the Mermaid diagram renderer of the VS Code extension (ContinueGUIWebviewViewProvider.ts), affecting versions 2.0.0 and 2.1.0. The report says the vendor did not respond. This concerns the extension, not the cn CLI.No fixed version published | |
OS command injection in MCPManagerSingleton.setConnections (MCP server transport, core/config/ConfigHandler.ts) in Continue 2.0.0. The record says the vendor did not respond.No fixed version published | ||
CVE-2026-76072High | In headless and auto mode, the CLI grants Bash allow by default, and an incomplete denylist is the only barrier to destructive commands. rm -rf of /home, /root, /var, /opt, /srv or $HOME, and find -delete, shred, wipefs, truncate and pkexec were not blocked. An indirect prompt injection could wipe the user's data. Affects versions up to 1.5.47.No fixed version published |
How to run Continue CLI safely
- Stay in the default mode in the terminal UI, which asks before writes and Bash, and avoid --auto unless the machine holds nothing you need.
- Do not use --auto or --allow "*" with cn -p on a machine with real data, since a prompt injection from a web page or repo file could run destructive shell commands.
- Use --exclude Bash, or --allow with narrow patterns such as Bash(npm test*), for scripted runs.
- Remember --readonly still allows Bash. Add --exclude Bash if you need a truly read-only run.
- Review ~/.continue/permissions.yaml, since choosing "don't ask again" writes long-lived allow rules there.
- Run headless jobs in a disposable container or VM with only the repo mounted, and use a scoped API key.
- Keep MCP servers to ones you have read, and update any Continue VS Code extension you have, since versions 2.0.0 and 2.1.0 have command injection reports.
- Check the status before you adopt it: the repo is read-only, and the CVEs above list no fixed version.
Where Excellent fits
| What Excellent does | With Continue CLI |
|---|---|
Reads its session logs (free scan) | Yes |
Its key finder reads its key files | Yes |
Live check before risky actions (Pro) | No |
Excellent's sandbox | Claude Code and Codex only |
Rule sharing | Claude Code and Codex only |
Excellent reads Continue CLI's session logs on your Mac. The free scan shows what it did: your email in request commands or form inputs, keys sitting in logs, secrets files read, history overwritten, checks skipped. Each finding says which agent and where.
Excellent's sandbox and rule sharing are for Claude Code and Codex only. The check reads what a command says, so it isn't a wall around your Mac.
Questions
Is Continue still maintained?
The repo README says continuedev/continue is no longer actively maintained and is read-only. The docs site and npm package are still online.
What are the Continue CLI permission modes?
Normal, plan (--readonly) and auto (--auto). Normal uses per-tool allow, ask and exclude settings, and plan and auto override all other settings.
What happens in headless mode?
With cn -p, tools set to ask are excluded because no one can approve them. You can allow tools with --allow, or everything with --allow "*".
Does the plan mode block shell commands?
No. The docs say plan mode excludes write tools but allows reads and Bash, so exclude Bash separately if you want that.
Does the Continue CLI support MCP?
Yes. Continue handles MCP server connections, and a CVE record names its MCP server transport code.
Sources
Checked December 2, 2026. Continue CLI changes often, so its own docs win where they differ from this page.