0sec CLI
MCP server by 0sec-labs Verified · npm:0sec-cli
Runs an open-source AI security harness for investigating vulnerabilities, reviewing findings and working on fixes. It suits security researchers and coding agents working on authorized systems.
Install 0sec CLI
Built from the published package, never by AI.
claude mcp add 0sec-cli -- npx -y 0sec-cliRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"0sec-cli": {
"args": [
"-y",
"0sec-cli"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"0sec-cli": {
"args": [
"-y",
"0sec-cli"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"0sec-cli": {
"args": [
"-y",
"0sec-cli"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add 0sec-cli -- npx -y 0sec-cli{
"mcpServers": {
"0sec-cli": {
"args": [
"-y",
"0sec-cli"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add 0sec-cli npx -y 0sec-cliGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the 0sec-cli block.
About
0sec CLI, published as 0 by 0sec-labs, is an open-source AI security harness. Running the command 0 opens a local browser console, with no account required, where you can investigate vulnerabilities, review findings and work on fixes. It uses your own model provider and includes built-in workflow templates for assessment, verification, fixes and research. Runs keep their results, and Learning keeps local activity and source-grounded notes.
Coding agents can connect through the CLI or MCP. Running 0 mcp-server --workflows exposes workflows to an external agent, and CLI and MCP clients can share a running local engine's sessions and runs. The source also describes optional local binary analysis through a 0verse setup in a source checkout. The project is a research preview for security teams and researchers who assess only authorized systems.
Written from the project's README and checked against it.
Tools it gives your assistant
Browser consoleOpens a local browser console for chat, findings and runs without an account.Workflow runnerRuns built-in templates for assessment, verification, fixes and research on a target repository.Findings reviewReviews source evidence and organizes findings in a queue or on a board.LearningKeeps local activity and source-grounded notes.Skills and memoryReuses security instructions and keeps lessons linked to the source.Headless CLIExposes the same workflow runner for automation and coding agents.MCP workflowsExposes workflows to external agents through 0 mcp-server --workflows.Local binary analysisAdds 0verse tools for scanning, triage, findings, PoVs, reports and memory recall.GitHub ActionsProvides a GitHub Actions integration for running security workflows in CI.
What you need
- Apple Silicon macOS or x64/ARM64 Linux
- A configured model provider and its API key
- Ghidra and Java for local binary analysis
- Python dependencies installed by npm run setup:0verse for binary analysis
Try asking
- Run the security-research workflow on this repository and list the findings.
- Review the open findings in this project and suggest fixes for each one.
- Scan this binary for vulnerabilities and summarize the triage results.
Good to know
- Research preview. Assess only authorized systems.
- The interactive terminal UI is retired. Headless CLI commands and MCP remain.
- Local MCP requires an explicitly selected host-local execution profile.
- The 0verse setup does not install every platform executor or fuzzing environment.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://raw.githubusercontent.com/0sec-labs/0/main/install.sh | bash
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to 0sec CLI
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
0sec CLI: common questions
Does 0sec CLI need a cloud account?
No. The source says local use does not require a cloud account. 0cloud, the hosted version, is currently available through a waitlist.
Can coding agents use 0sec CLI?
Yes. The source says coding agents can connect through the CLI or by exposing workflows through MCP with 0 mcp-server --workflows.
Which platforms are supported?
The source says installation supports Apple Silicon macOS and x64/ARM64 Linux.
How do I install 0sec CLI?
In Claude Code run claude mcp add 0sec-cli -- npx -y 0sec-cli. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is 0sec CLI the official server?
0sec CLI is published by npm:0sec-cli from its verified domain in the official MCP Registry.
Is 0sec CLI free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is 0sec CLI safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to 0sec CLI?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does 0sec CLI work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
