Every osevel command, grouped by product. Install the CLI with npm i -g @osevel/cli
(Node.js 22.22 or newer); the command is osevel. osevel --help lists the commands and
osevel <command> --help shows every option of one.
- Typed code. Some commands need a person: they run only in an interactive terminal and ask
you to type a random code shown at the prompt. No flag or environment variable skips it. The
tables say which commands always ask. A few ask only in one direction (for example raising an
agent’s access); their description says so.
- The Osevel service (daemon mode).
sudo osevel daemon install runs Osevel as its own
system user on macOS and Linux and writes a root-owned launcher, /opt/osevel/bin/osevel.
With the service installed, the commands that change what is asked or decide a held move are
run as sudo /opt/osevel/bin/osevel …, so an agent running as you cannot run them. Without
sudo they act only on runs in your own process, and say so.
- Exit codes:
0 ok, 1 error, 2 usage error, 3 not confirmed (no terminal, wrong code,
cancelled), 4 verification failed.
--json gives machine-readable output where offered. --no-color (or NO_COLOR=1) disables
colour.
Secrets your agents can use but not read. Guide: OsVault.
| Command |
What it does |
Always asks for a code |
vault connect |
Link this computer to your account: both screens show the same 8 digits, and you confirm on both |
no (the 8 digits) |
vault list |
The vaults that gave this computer environments (names only) |
no |
vault run -- <command> [args…] |
Run a command with the secrets of an environment; what it prints is masked |
no |
vault mcp |
The agent tools (vault_list, vault_run) as an MCP server on stdio |
no |
vault agent <cursor|codex|claude-code|opencode|other> |
Print the MCP entry that gives an agent tool the Vault tools (osevel never edits another program’s file) |
no |
vault forget |
Forget this computer’s link here (unlink it in the panel too) |
no |
vault connect: --server <url> (the dashboard origin), --name <name> (this computer’s
name), --software-keys (keys in a file instead of the platform key store; refused when the
Osevel service is installed). The keys stay in the Secure Enclave on macOS, sealed for your
Windows user on Windows, or in the desktop keyring on Linux. With the Osevel service installed,
the service holds them.
vault run: --vault <name> (default: the only one), --env <env> (default: development,
never production by default). The values go into the command’s environment only, never to
disk. A value, or its base64, hex, URL or JSON form, shows as [vault:NAME] in the output.
Names programs rely on (PATH, NODE_OPTIONS, …) and names already set are not given.
vault agent: --local starts this installed CLI instead of npx; --command <path> starts
another install; --json.
vault forget --service: an administrator forgets the Osevel service’s link and keys for every
user (sudo /opt/osevel/bin/osevel vault forget --service). It is the only way while the
service holds them.
One MCP setup for every AI tool. Guide: OsBox.
| Command |
What it does |
Always asks for a code |
box / box status |
The servers, whether each is accepted here, and what waits for a look |
no |
box add <name@version | /path/to/server | https://…> |
Add a server: an npm package, an absolute path, or a remote https address. Installed pinned |
no (nothing runs until accepted) |
box accept <name> |
Accept a server here. Linked to an account: in the panel. Not linked: a code in a window (weaker) |
yes (panel signature or the window code) |
box login <name> |
Sign in once to a remote server (OAuth in your browser) |
no |
box install <name> |
Install a server again. It gets a new pin, so accept it again |
no |
box remove <name> |
Remove a server from the box |
no |
box connect [tool…] |
Put the one osbox entry into your AI tools. Asks per tool and keeps a backup |
no (a yes per tool) |
box disconnect [tool…] |
Take the osbox entry out of your AI tools |
no (a yes per tool) |
box import [tool…] |
List the servers already in your AI tools and their plain-text keys (names only) |
no |
box repo |
This repository’s servers (osevel.yaml), and whether each is accepted here |
no |
box repo map <label> <SECRET[@vault/env]> |
Map a key label of this repository to one of your OsVault secrets |
no |
box repo install <name> |
Install one of this repository’s servers (pinned, install scripts off) |
no |
box repo accept <name> |
Accept one of this repository’s servers on this computer |
yes (as box accept) |
box mcp |
The gateway your AI tools start (MCP on stdio). box connect writes this entry; you do not run it |
no |
- Tools for
connect, disconnect and import: claude-code, claude-desktop, cursor,
vscode, windsurf, gemini, codex, opencode. --yes writes without asking per tool.
box add options:
--name <name>: its name in the box.
--key <NAME[=SECRET[@vault/env]]>: a key from OsVault (repeatable).
--env <NAME=value>: a plain setting, never a secret (repeatable).
--arg <arg>, --bin <name>: an argument for the server; the program, when the package has
several.
--declare <sampling|elicitation|roots|dynamic>: what the server may ask the AI tool for.
Off unless declared.
--allow-read <path>, --allow-write <path>, --allow-host <host>: what the server may
touch inside the sandbox. Nothing else of yours.
--no-sandbox: run it without the system’s sandbox. It can then do whatever you can.
box accept --lists and box repo accept --lists accept changed tool lists after you looked at
them.
box import --remove replaces the entries of servers that are already in the box with the one
osbox entry.
One memory for all your AI tools. Guide: OsMemory.
| Command |
What it does |
Always asks for a code |
memory |
Status: the notes your AI tools keep about you and your projects |
no |
memory list |
The notes. --held: only those waiting for you |
no |
memory import <claude-code|files|chatgpt> [file] |
Import notes other tools kept. Each one waits for you in the panel |
no (asks before sending) |
memory project link <scope> |
Use an existing project’s memory from this folder too |
yes (a code in a window) |
memory import claude-code: Claude Code’s memory folder for this project.
memory import files: CLAUDE.md, AGENTS.md and .cursor/rules in this project (to this
project only). memory import chatgpt <file>: your ChatGPT saved memories, copied into a text
file, one per line. Secrets are refused and duplicates merged. --yes sends without asking.
- Agents do not use these commands. They read and add notes through OsBox, with the tools
memory__recall, memory__remember and memory__forget.
Dangerous calls to cloud APIs wait for a person. Guide: OsApi.
| Command |
What it does |
Always asks for a code |
api holds |
The calls that wait for a person. --all: also decided, used and expired ones |
no |
api approve <hold-id> |
Let one held call run once, after reviewing it. The agent then has 15 minutes to send exactly it |
yes |
api deny <hold-id> |
Refuse one held call |
yes |
api scan |
Find Railway, Neon, Supabase, Render, Vercel and GitHub keys outside a vault. Changes nothing |
no |
api policy |
The rules that change what is asked, with any problems |
no |
api policy ask <operation | service.* | *> |
Always ask a person before an operation, or every operation of a service |
no |
api policy allow <operation> |
Let one dangerous operation through without asking. Refused for losses that cannot be undone |
yes |
api policy remove <number> |
Remove one rule (its number from osevel api policy) |
yes |
api policy preset <name> |
Add a ready set of rules. production-deploys: ask before deploys in production |
no |
api verify |
Check that the call records were not changed (the hash chain). Exits 4 when broken |
no |
api policy ask and allow: --resource <name>, --environment <env> (only in runs of this
vault environment), --note <text>. api policy preset: --environment <env> (default
production).
api scan: --dir <path> (the project folder, default: here), --json. It never prints a key:
a few characters and its length.
- OsApi holds by default.
OSEVEL_API=watch lets every call through and records what would have
been held.
One list of held moves and one sealed record across the products. Guide:
OsBrain.
| Command |
What it does |
Always asks for a code |
brain status |
Your rules, and what the ledger holds (held and refused moves) |
no |
brain holds |
Every move waiting for a person: OsBase requests and OsApi held calls. Each line names the command that decides it |
no |
brain rules |
Your rules across products. They only hold or refuse, never let through |
no |
brain rules add |
Hold (or refuse) the moves of any product that match |
no |
brain rules preset <name> |
Add a ready set: production-asks or read-only-agent |
no |
brain rules remove <id> |
Remove one rule (its id from osevel brain rules) |
yes |
brain coverage |
What agents here can reach without Osevel seeing it, and how to cover each |
no |
brain verify |
Check that the decision ledger was not changed (the hash chain). Exits 4 when broken |
no |
brain rules add needs at least one condition: --product <osbase|osapi|osbox|osvault>,
--agent <name>, --environment <env>, --class <read|change|danger|unknown>,
--operation <op | prefix.* | *>. --then <hold|refuse> (default hold), --note <text>.
Example: osevel brain rules add --environment production --class danger.
brain rules preset production-asks [--environment <env>];
brain rules preset read-only-agent --agent <name>.
brain coverage: --dir <path>, --json. It never prints a key.
- There is no
brain approve. A held move is decided with its own product’s command
(osevel approve <id>, osevel api approve <id>) or in the panel.
The day-to-day guide with examples is OsBase: day-to-day use. The table also names
the database credential each command uses.
| Command |
What it does |
Credential |
Typed code |
init |
Install and create a project |
admin (asked, never stored) |
yes |
mcp |
Run the MCP server on stdio (started by your MCP client) |
agent, migrator, journal |
no |
status |
Project, verification, journal counts, approvals waiting |
journal |
no |
verify |
Check the security state; exit code 4 on violations |
journal |
no |
doctor |
Verification, tables needing attention, crash recovery |
journal (--admin: admin) |
no |
sync |
Re-manage tables, repair triggers, lift a cut-off when clean |
admin |
no |
log |
List journaled changes |
journal |
no |
show <change-id> |
One change with a before/after diff |
journal |
no |
approvals |
List approval requests |
journal |
no |
approve <id> / deny <id> |
Decide a request |
approver |
yes |
undo <id>... | --session <id> |
Revert changes (dry-run plan first) |
undo (+ approver, migrator for schema steps) |
yes, except --dry-run |
risks list |
Capability risks of the agent, accepted or not |
journal |
no |
risks accept |
Accept unaccepted risks by name, lift the cut-off |
admin |
yes |
policy list |
Rules in effect |
approver |
no |
policy add / remove / reset |
Change rules |
approver |
yes |
prune --older-than <d> |
Delete old journal data |
admin |
yes, except --dry-run |
projects list / projects remove <name> |
Local projects |
none |
remove: yes |
projects create / projects move <db> <project> / projects rename / projects delete |
Group databases into projects (layout only) |
none |
no |
projects folder <db> <folder> / projects folder <db> --none |
File a database under a folder of its project (dashboard display only) |
none |
no |
database show / database set --env prod ... |
Environment label, restricted flag, approval policy |
approver (set) |
set: yes |
projects pooler <name> on|off |
Agent connection through a transaction pooler (Neon) |
none |
no |
uninstall |
Remove everything from the database and forget the project |
admin |
yes |
Commands marked “typed code” require an interactive terminal (stdin and stdout both a TTY) and
typing a random 6-character code shown at the prompt. There is no flag or environment variable to
skip it; a wrong code cancels. This is meant to stop an agent from approving its own requests by
running the CLI through a pipe. It is not a hard boundary; see
security.
Exit codes: 0 ok, 1 error, 2 usage error, 3 not confirmed (no terminal, wrong code,
cancelled), 4 verification failed.
Commands marked yes always ask for a typed code.
| Command |
What it does |
Always asks for a code |
database strong-mode locked|wait|witness |
How strong actions from the panel are protected: locked | wait | witness (terminal) |
yes |
database import |
Copy schema and data from Supabase, Neon or any Postgres (needs confirmation) |
yes |
health |
Connections, long transactions, lock waits, wraparound, dead rows, sequences, backups |
|
upgrade |
Apply a newer osevel to an installed project (keeps passwords) |
yes |
| Command |
What it does |
Always asks for a code |
agent add <name> |
Register an agent (an MCP client) and print its IDE configuration |
yes |
agent list |
Show the registered agents |
|
agent revoke <name> |
Revoke an agent: its token stops working and its writes are refused |
|
agent access <name> <read|write|schema> |
Change an agent’s access level (raising it needs confirmation) |
yes |
agent profile <name> <standard|sealed> |
Change an agent’s profile (unsealing needs confirmation) |
yes |
agent run <name> |
Run a sealed local agent in the sandbox until its open tasks are done |
|
agent templates |
Templates for local agents (auditor, security-scanner, rule-keeper) |
|
agent create |
Create a local agent from a template in one step (agent, grants, rules, schedule) |
|
rule set <agent> <file> |
Give a sealed agent a rule set (YAML or JSON): it then decides without a model |
|
rule show <agent> |
An agent’s rule set |
|
rule remove <agent> |
Remove an agent’s rule set |
|
watch add <agent> |
Let a sealed local agent run by itself when it has tasks (optionally on a schedule) |
|
watch remove <agent> |
Stop running an agent by itself (its open tasks stay) |
|
watch list |
Agents that run by themselves and their schedules |
|
watch run |
Run the watcher in the foreground (your user: it needs Docker and your LLM key) |
|
watch install |
Start the watcher at login (a LaunchAgent / systemd user unit of your own user) |
|
watch uninstall |
Stop starting the watcher at login |
|
agent raw-write <name> <on|off> |
Give an agent raw SQL writes (execute) or take them away (on needs confirmation) |
yes |
agent stats [<name>] |
What each agent did: sessions, calls, changes, refusals, approvals, undos, reveals, handoffs, notes |
|
agent handoff <name> <on|off> |
Let an agent hand work to other agents and take theirs, or not |
|
agent sight <name> <structure|shape|masked|clear> |
Change what an agent may see (letting it see more needs confirmation) |
yes |
agent auditor <name> <on|off> |
Make a sealed agent a local auditor, or stop it being one (on needs confirmation) |
yes |
capability add <file.sql> |
Install a capability (one SQL function) the agents may be granted |
yes |
capability list |
List the capabilities and the agents they are granted to |
|
capability remove <name> |
Remove a capability and every grant of it |
yes |
capability grant <agent> <capability> |
Let an agent call a capability |
yes |
capability proposals |
List capabilities proposed by agents (pending ones unless –all) |
|
capability approve <proposal-id> |
Review and install a proposed capability |
yes |
capability deny <proposal-id> |
Deny a proposed capability |
|
capability revoke <agent> <capability> |
Take a capability away from an agent |
|
llm key set <provider> |
Store your LLM provider’s API key for local agents (hidden prompt) |
|
llm key status |
Show which LLM provider keys are set (never the keys) |
|
llm key remove <provider> |
Remove an LLM provider’s API key |
|
task add <agent> <text> |
Leave a task for an agent (it takes it with next_task) |
|
task list |
List tasks (open and taken unless –all) |
|
report list |
List the reports of auditor agents (newest first) |
|
report show <report-id> |
Show one report of an auditor agent |
|
task cancel <task-id> |
Cancel an open or taken task |
|
| Command |
What it does |
Always asks for a code |
note list |
Notes about the database: accepted and proposed (–all: every one) |
|
note add <schema[.table[.column]]|-> <text> |
Write a note agents will read (on the database, a schema, a table or a column) |
|
note accept <note-id> |
Accept an agent’s proposed note (it then reaches every agent; confirmation code) |
yes |
note reject <note-id> |
Reject an agent’s proposed note |
|
note retire <note-id> |
Retire an accepted note (agents no longer read it) |
|
| Command |
What it does |
Always asks for a code |
classify |
Column classes for agents (open, coarse, masked, hidden) and proposals |
|
classify set <schema.table.column> <open|coarse|masked|hidden> |
Decide the class of one column (confirmation code) |
yes |
classify accept |
Accept the proposals for every undecided column (confirmation code) |
yes |
exposure [status|on|off|rotate-key] |
Enforce column classes for agents in the database: status, on, off, rotate-key |
yes |
reveal list |
Reveals agents asked for: waiting and open ones (–all: every one) |
|
reveal show <reveal-id> |
One reveal: columns, reason, decision, and what was read (never values) |
|
reveal grant <reveal-id> |
Let an agent read the named columns for a while (confirmation code) |
yes |
reveal deny <reveal-id> |
Deny a reveal an agent asked for |
|
reveal end <reveal-id> |
End an open reveal now |
|
| Command |
What it does |
Always asks for a code |
schema lock [on|off|status] |
Lock the schema so only osevel changes it, or unlock it (off needs confirmation) |
|
schema history |
Every schema change through osevel, by people and agents, with who approved it |
|
schema diff --with <project> |
Differences between the schemas of this database and another one (staging vs prod) |
|
schema export <dir> |
Write the schema history as numbered SQL migration files |
|
schema apply <file> | --proposal <id> |
Run a migration file or a panel proposal through osevel: each change shown, approved |
yes |
perf top |
The costliest statements of the database (pg_stat_statements), without values |
|
perf plan <select> |
The generic plan of one SELECT (literals replaced first; nothing runs) |
|
perf advise <select> |
Index suggestions for one SELECT, as CREATE INDEX CONCURRENTLY statements |
|
perf indexes |
Unused and duplicate indexes in the managed schemas |
|
perf regressions |
Statements that got slower since an earlier snapshot (a week by default) |
|
schema proposals |
Schema changes proposed and signed in the panel, waiting to be applied |
|
schema reject <id> |
Close a panel schema proposal without running it (needs confirmation) |
yes |
branch diff |
What an agent changed on a branch, and whether it still fits this database |
|
branch apply |
Bring a branch’s changes to this database after approval (needs confirmation) |
yes |
| Command |
What it does |
Always asks for a code |
connections status |
The foreign connection watch: settings, sessions now, recent cuts |
|
connections on |
Declare the clients connected now, then cut every foreign session (terminal) |
yes |
connections off |
Stop the foreign connection watch (terminal) |
yes |
connections detail on|off |
Use source addresses and program names: on (default) | off (limits the watch) |
yes |
connections mode cut|report |
What happens to a foreign session: cut (default) | report |
yes |
connections trust <role> |
Declare a known client (a role, optionally from one network and program) |
yes |
connections forget <number> |
Forget a known client; its next session is cut |
yes |
connections clients |
List the known clients |
|
connections events |
What the watch cut or reported |
|
connections pin |
Let osevel’s own roles connect only from this host (or –from); journal v19 |
yes |
connections lockdown |
Switch unused login roles off and show the address rule to set (admin login) |
yes |
connections open |
Open a door that closes by itself (default: the admin role, e.g. –app mgmt-api) |
yes |
connections suspect <number> cut|warn |
A known client behaving unlike itself: cut its session, or only warn (default) |
yes |
connections learn <days> |
How many days a new known client’s habits are learned (default 7) |
yes |
connections profiles |
What the watch learned about each known client (tables, hours, statement kinds) |
|
connections rotate <role> |
Give a role of your app a new password, shown once (admin login) |
yes |
connections unpin [<number>] |
Remove a pinned connector host; –all with the admin login |
yes |
connections watch |
Run the watch in the foreground (the daemon runs it by itself) |
|
| Command |
What it does |
Always asks for a code |
client setup |
Set this machine up as an IDE client of the organization’s team bridge |
yes |
client status |
This machine’s IDE client: enrolment, bridges and the agents bound to you |
|
org pin |
Pin the organization’s first signed record on this bridge (root of trust) |
yes |
org sync |
Fetch and verify the organization’s signed records (no rollback) |
|
org show |
Members, devices and role assignments from the verified records |
|
panel verify <origin> |
Check that a served panel is exactly the published build (file by file) |
|
watcher export |
Write the watcher’s configuration and remove its credential from this host |
yes |
watcher run |
Run the watcher / witness (on another machine than the team bridge) |
|
watcher cancel <decision-id> |
Cancel a pending strong decision (watch credential) |
|
connect |
Run the dashboard bridge (outbound connection to the paired dashboard server) |
|
connect pair <code> |
Pair a browser with this machine (type the code shown in the browser) |
yes |
connect enable <project> |
Show a project (or, with –d1, a D1 project) to paired dashboard devices |
yes |
connect disable <project> |
Hide a project from the dashboard |
|
connect set <project> <setting>... |
Dashboard settings of a project: approvals=on|deny-only|off rows=full|none undo=on|off (a D1 project, –d1: undo=on|off) |
yes |
connect status |
Pairing, enabled projects and paired devices |
|
connect offline timed|continue|stop |
Team bridge: what agents on this host do while the cloud is unreachable (strong action) |
yes |
connect notify <url>|off |
Team bridge: the team’s own channel for strong actions (an https webhook, or off) |
yes |
connect pin-origin <origin>|off |
Team bridge: pin the team’s self-hosted panel origin (or off) |
yes |
connect strong-wait <minutes> |
Team bridge: waiting period of strong actions on prod, in minutes (default 30) |
yes |
connect agents-on bridge|member |
Team bridge: where the team’s local agents run (bridge host or members’ machines) |
yes |
connect logout |
Forget the connector token, the pinned server and every paired device |
yes |
devices list |
List paired dashboard devices |
|
devices revoke <device-id> |
Revoke a paired dashboard device (id or unique prefix) |
|
audit activity |
The panel session log of this database (unlocks, ends, failed unlocks), chain checked |
|
audit proofs |
Check that every decision made through the panel had valid signers |
|
| Command |
What it does |
Always asks for a code |
daemon run |
Run the daemon in the foreground (as a dedicated OS user) |
|
daemon status |
Show whether the daemon runs and which projects it serves |
|
daemon install |
Root: create the daemon user and its launchd / systemd service, and start it |
|
daemon uninstall |
Root: stop and remove the daemon, its user and its state |
|
daemon adopt [<project>] |
Move a project to the daemon and rotate its passwords |
|
daemon release <project> |
Move a project back from the daemon to your store (rotating its passwords) |
|
daemon doctor |
Check that daemon mode really isolates the credentials from your user |
|
| Command |
What it does |
Always asks for a code |
d1 add <name> |
Add a Cloudflare D1 database (hidden prompt for an API token with D1:Edit) |
|
d1 install <name> |
Install the osevel journal (tables, capture triggers) in a D1 database |
|
d1 verify <name> |
Check the D1 journal: tables, version and one exact trigger set per table |
|
d1 template add <project> <name> |
Add a template: one named, parameterized statement agents may be granted |
|
d1 template grant <project> <agent> <template> |
Let a D1 agent call a template (needs confirmation) |
|
d1 template revoke <project> <agent> <template> |
Take a template away from a D1 agent |
|
d1 agent add <project> <name> |
Register an agent of a D1 project and print its IDE configuration |
|
d1 agent list <project> |
Show the agents of a D1 project and their templates |
|
d1 agent revoke <project> <name> |
Revoke a D1 agent: its token stops working |
|
d1 template classify <project> <template> [column=open|coarse|masked|hidden ...] |
What agents see of a template’s result columns (undeclared: masked) |
yes |
d1 template list <project> |
List a D1 project’s templates (and any changed outside osevel) |
|
d1 template remove <project> <name> |
Remove a template |
|
d1 template run <project> <name> |
Run a template yourself (a test run; writes are journaled like an agent’s) |
|
d1 changes <project> |
List the changes made in a D1 database (newest first) |
|
d1 undo <project> <change-id> |
Undo a D1 change row by row (shows the plan, asks for the code) |
|
d1 list |
Show the D1 projects (ids only, never the token) |
|
d1 check <name> |
Check that a D1 project is reachable with its token |
|
d1 remove <name> |
Forget a D1 project and its token on this machine (the database is untouched) |
|
osevel database import moves a database in from Supabase, Neon or any Postgres; see
Move in from Supabase, Neon or any Postgres.
osevel db url and osevel db api arrive with the beta (see Hosted Postgres).