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
- youBlock traffic from 203.0.113.7 on the edge firewall.
- $cybrave-cli capability get policy security-rule create
- $cybrave-cli policy security-rule create --data @rule.json --insert first --dry-run
- 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?
- youYes.
- $cybrave-cli object ip-address create --data @address.json --yes
- $cybrave-cli policy security-rule create --data @rule.json --insert first --yes
- $cybrave-cli config change-states --resource container=security-policy
- agentDone. The deny rule is published and applied.
You specify the change and approve it. The agent runs the commands.
you Block traffic from 203.0.113.7 on the edge firewall.
$ cybrave-cli capability get policy security-rule create
$ cybrave-cli policy security-rule create --data @rule.json --insert first --dry-run
agent On 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?
you Yes.
$ cybrave-cli object ip-address create --data @address.json --yes
$ cybrave-cli policy security-rule create --data @rule.json --insert first --yes
$ cybrave-cli config change-states --resource container=security-policy
agent Done. The deny rule is published and applied.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
| Concept | Description |
|---|---|
| Profile | The saved connection to one device. Each device has its own profile. |
| Access token | The credential that lets the CLI sign in to a device. Create it in the device Web UI. See My Account. |
| Config Publishing mode | Controls 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. |
| Confirmation | A 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.