Skip to Content
Cybrave OS

Cybrave CLI

Manage firewalls running Cybrave OS from a terminal, a script, or an AI agent.

Cybrave CLI is a firewall command-line tool built for AI agents. It runs on your computer as a single binary, cybrave-cli, and manages one or more firewalls running Cybrave OS from a terminal, a script, or an AI agent.

Example: add a deny rule

An agent adds a deny rule for one address. It previews the change and saves it only after you approve.

Agent session
  1. youBlock traffic from 203.0.113.7 on the edge firewall.
  2. $cybrave-cli capability get policy security-rule create
  3. $cybrave-cli policy security-rule create --data @rule.json --insert first --dry-run
  4. agentOn https://10.0.0.1, I will add an IP address object for 203.0.113.7 and a deny rule at the top with it as the source. Saving publishes the change. Proceed?
  5. youYes.
  6. $cybrave-cli object ip-address create --data @address.json --yes
  7. $cybrave-cli policy security-rule create --data @rule.json --insert first --yes
  8. $cybrave-cli config change-states --resource container=security-policy
  9. agentDone. The deny rule is published and applied.

You specify the change and approve it. The agent runs the commands.

Highlights

  • Many firewalls, one installation. One profile per device.
  • Approval before change. The agent shows each change and saves it only after you approve.
  • Versioned and reversible. Every published change records its author and can be reverted.
  • Built-in safeguards. Changes require explicit confirmation, and the CLI never acts on a device you did not name.
  • Built for AI agents. An agent skill ships with the CLI for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.
  • Ready for automation. Every command describes itself and returns structured output for scripts.

Install

See the CLI Quickstart.

Use with AI agents

After you connect the CLI to a device, give your agent this prompt:

Run `cybrave-cli doctor --format json` and tell me what it reports.
Do not change any configuration until I ask you to.

Key concepts

ConceptDescription
ProfileThe saved connection to one device. Each device has its own profile.
Access tokenThe credential that lets the CLI sign in to a device. Create it in the device Web UI. See My Account.
Config Publishing modeControls when a saved change takes effect. Publish on save, the default, applies each change when it is saved. Manual holds changes until an administrator commits them. See Publishing mode.
ConfirmationA command that changes a device runs only when it is explicitly confirmed. Committing changes and actions such as a reboot also require you to name the device.

Compatibility

The CLI and device versions do not need to match. A command works when the device offers its operation. After an upgrade, run cybrave-cli doctor to list missing operations.

Next