0sec-cli

中文文档
0.25.0发布于 2026/10/28MIT OR Apache-2.0ES Module

Your self-improving, open-source cybersecurity team.

原始使用文档
文档目录9 节
  1. Get started
  2. Findings
  3. Security workflows
  4. Hosts and plugins
  5. Skills and memory
  6. 0cloud
  7. Connect another agent
  8. Development
  9. Status and safety

0security

The open-source AI security harness

Investigate vulnerabilities, review findings, and work on fixes in your browser.
Use your own model provider. Connect coding agents through CLI or MCP.

Get started · Demo · Docs · Research · Releases · 0cloud

0 web UI: submit a demo API source review, follow the investigation, and inspect findings with suggested fixes

Backed by Y Combinator · The Swiss Applied AI & Cybersecurity Research Lab

Get started

Install on Apple Silicon macOS or x64/ARM64 Linux, then run 0:

curl -fsSL https://raw.githubusercontent.com/0sec-labs/0/main/install.sh | bash
export PATH="$HOME/.0/bin:$PATH"
0

0 opens the local browser console without an account. 0 web remains a compatibility alias. The interactive terminal UI is retired; headless CLI commands and MCP remain available.

Configure a model provider to run AI workflows. See installation and troubleshooting.

Findings

Review source evidence and organize findings in a queue or on the board.

0 findings: review the queue, organize the board, and inspect source evidence

Security workflows

Chat with 0 in the web UI, investigate findings, and use built-in templates for assessment, verification, fixes, and research. Runs retain results; Learning keeps local activity and source-grounded notes.

0 workflows: choose a template, inspect the workflow graph, and edit a review step

For automation and coding agents, the CLI exposes the same workflow runner:

0 workflow list --templates
0 workflow run --template security-research \
  --target /absolute/path/to/repo --workspace /absolute/path/to/repo
0 runs list
0 chat --prompt "your request"

Workflow guide · Learning · GitHub Actions

Hosts and plugins

Choose a host for your work. Connect service integrations and manage extensions. Use ⌘K / Ctrl+K to jump between tools.

0 hosts and plugins: jump with keyboard search, choose a host, and browse integrations and extensions

Skills and memory

Reuse security instructions and retain lessons linked to the source.

0 skills and memory: browse built-in skills and inspect saved lessons with source references

0cloud

The hosted version of 0, for managed security workflows on your team's repositories. Access is currently through the 0cloud waitlist. Local use does not require a cloud account.

Orange and violet cloudscape from the 0.security website

Connect another agent

Use CLI commands or expose workflows through MCP:

0 mcp-server --workflows --workspace /absolute/path/to/repo

Local MCP requires an explicitly selected host-local execution profile. Browser chat's Connect an external agent provides a setup prompt. CLI and MCP workflow clients can share a running local engine's sessions and runs.

Plugins and MCP setup · Local and remote engines · Plugin development

For AI agents: product index · command reference.

Development

Install dependencies with pnpm install, run npm run dev, and open the printed browser address. The dashboard updates with hot reload. See CONTRIBUTING.md.

For local binary analysis, run npm run setup:0verse once. It discovers a local Ghidra and Java installation, installs the Python analysis/MCP dependencies without removing existing engines, and verifies the decompiler. In this source checkout, web and terminal chats automatically connect the local 0verse MCP server. Nine tools cover scanning, triage, preflight, bug classes, findings, PoVs, reports, memory recall, and capability discovery. The capability catalog also lists research CLI commands with their MCP-supported or CLI-only status. Each chat has its own scan state. 0 binary ./target --mode scan --format ndjson uses the same runtime.

This does not install every platform executor or fuzzing environment. Inspect 0verse's capability report before requesting confirmation; unavailable analysis is not a clean scan. An explicit ZERO_MCP configuration takes precedence, and ZERO_0VERSE_MCP=0 disables automatic connection.

Status and safety

Research preview. Assess only authorized systems and review findings and fixes. Use --mode standard with headless chat for explicit scope checks. The optional scope plugin enforces target boundaries.

Report vulnerabilities through SECURITY.md. Licensed under MIT OR Apache-2.0.

Public disclosures and upstream fixes.

版本与发布记录

0sec-cli 共发布 11 个版本,首次发布于 2026/08/30;过去 12 个月发布了 11 个版本。

版本发布日期距今
0.25.0latest2026/10/286 天前
0.24.12026/10/1420 天前
0.24.02026/10/1420 天前
0.23.02026/10/011 个月前
0.22.42026/10/011 个月前
0.22.12026/09/301 个月前

关于 0sec-cli 的常见问题

0sec-cli 是什么?

你的自我完善的开源网络安全团队。

如何安装 0sec-cli?

在项目目录运行 npm install 0sec-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 0、0sec,可以用 npx 0 直接运行。

0sec-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/0sec-cli 是否存在。

0sec-cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

0sec-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

0sec-cli 可以商用吗?

0sec-cli 使用 MIT OR Apache-2.0 许可。可在 MIT、Apache-2.0 中任选其一遵守。选择 MIT 时,宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

0sec-cli 还在维护吗?

最新版本 0.25.0 发布于 2026/10/28(6 天前);至今共发布 11 个版本,其中过去 12 个月发布了 11 个;首次发布于 2026/08/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。