Skip to content

CLI reference

Every command and option, generated from the CLI by scripts/gen/docs_reference.py. If it is on this page, it runs. Commands marked Enterprise need AgentFox Enterprise (Cloud or the self-hosted Enterprise stack); the open-source package lists them and says so when you run one.

The commands are grouped by the job they do: discover your agents, govern what they may do, protect them at runtime, test them, prove it. agentfox --help prints the same panels, and every command takes --help. For walkthroughs that put these commands together, start with the Quickstart.

bash
agentfox --help
agentfox scan --help
StageCommandWhat it is for
StartupGuided setup: scan, choose what to cover, and it does the rest.
initConnect this repo to your account (--key), or set up locally.
demoA walkthrough on made-up agents, offline, in its own database.
DiscoverscanFind what to govern: a repo, this machine, MCP servers, runtime.
agentsFind every agent that is running, and who owns it.
GovernpermitGrant and withdraw what an agent may do; decide held calls.
declareDeclare the facts containment uses: tools, scope, sources.
policyWrite rules, try them on recorded traffic, then turn them on.
ProtectserveRun the gateway and API, the MCP server, or the model server.
findingsWhat was found, worst first: the list `agentfox.auto()` points to.
TesttestProve the controls hold before you ship: score, gate, attack.
ProvereportWhat you can show an auditor: posture, evidence, risk, sign-off.
OperatedoctorIs the runtime configured the way you think it is?
adminRun the deployment: operators, keys, schema, jobs, hooks.

agentfox up

Guided setup: scan, choose what to cover, and it does the rest. Asks where AgentFox runs (this machine, your own server, or AgentFox Cloud), what to cover (coding agents, your Python agent, the gateway, tools, MCP servers, monitoring, compliance, the dashboard) and how strict to start, then does all of it. Every question has a recommended answer; `--yes` takes them all. Run it again any time: it remembers the answers and only changes what is new.

agentfox up [PATH] [OPTIONS]
Argument / optionMeaning
PATHThe project to set up. Default: here. Default: ..
--yes, -yTake the recommended (or last saved) answer to every question.
--target textlocal, self-hosted or cloud. Asked when omitted.
--with textComponents to include, comma-separated: coding-agents, python-app, gateway, tools, mcp, models, scan-report, ci, monitoring, compliance, ai-client, view.
--without textComponents to leave out.
--mode textobserve (block nothing yet), defaults, or enforce.
--agent textThe agent to set up: one the scan found (its file gets auto()), or a new name. Default: the agent the entry file runs.
--api-url textGateway address, for self-hosted or cloud.
--api-token textAPI key, for self-hosted or cloud.
--email textFirst operator's email, when `up` starts a self-hosted stack.
--dry-runAsk, show the plan, change nothing.
--start, --no-startStart the hook daemon and local API in the background. Default: true.
--skip-machineSkip the user-level MCP configs and skills of the AI tools on this machine.

agentfox init

Connect this repo to your account (--key), or set up locally. Without --key: prepares the local database and policies. Idempotent and safe to run twice. Without --key it is offline and edits no code; `agentfox up` is the guided setup that also adds `agentfox.auto()`. Creates the database, applies migrations, loads the control catalog and the shipped policy packs, every one watching (observe) until you switch it to blocking with `agentfox policy enforce <key>`; coding-agent only for agents this repo's coding-harness hooks govern. Destructive commands and tampering with AgentFox are refused from the start; a tool an agent was not granted is refused once tool-containment blocks. It writes an agentfox.toml carrying the real runtime defaults so they are visible rather than implicit. AGENTFOX_* environment variables override that file.

agentfox init [OPTIONS]
Argument / optionMeaning
--path, -p pathWhere to write agentfox.toml. Default: here. Default: ..
--env, -e textName this deployment: development, staging or production. It decides how strictly `agentfox doctor` grades authentication. Default: development.
--demoAlso load the demo fixtures: three agents and an eval suite. No traffic is recorded; run `agentfox demo` afterwards for sample traces and findings.
--key textYour workspace key (dashboard: Get started → Create a key); with --server and no --key, AGENTFOX_API_KEY is used, which keeps the key out of `ps` and your shell history. Maps the agent in this repo (reading the code, never running it), reports its names and shapes, and stays connected to run the attack tests on this machine: those do run your agent, with every tool faked.
--server textThe AgentFox API to report to. Default: http://127.0.0.1:8080.

agentfox demo

A walkthrough on made-up agents, offline, in its own database. Three made-up agents, sample traffic and the findings it opens go to `demo.db` beside your workspace database, so `agentfox findings` in a real project never opens with the demo's. The closing panel says how to look around it.

agentfox demo [OPTIONS]
Argument / optionMeaning
--in-workspaceWrite the demo's agents, traffic and findings into your workspace database instead of its own. They stay there.

agentfox scan

Find what to govern: a repo, this machine, MCP servers, runtime. `agentfox scan [PATH] [--fail] [--json]` scans a repository (the default). `agentfox scan --sessions [PATH]` also reads local AI-tool sessions and runs the live detector check. `machine` checks the MCP servers and skills your AI tools load on this machine. `mcp`, `skills` and `runtime` scan the rest; `monitors` re-checks connected sources on a schedule.

agentfox scan [COMMAND]

Run with no subcommand, it does scan repo.

agentfox scan skills

Scan agent skills for planted instructions and declared danger. A skill is the same object as an MCP tool one layer up: a description the model reads to decide whether to invoke it, and instructions it then obeys. OWASP published an Agentic Skills Top 10 in 2026 and we scanned servers but not skills.

agentfox scan skills [PATH] [OPTIONS]
Argument / optionMeaning
PATHDirectory to search for SKILL.md files. Default: ..
--persist, --no-persistRaise findings, or just print. Default: true.

agentfox scan machine

Check the MCP servers and skills your AI tools load on this machine. Reads the user-level configs of Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Cline, Gemini CLI and Codex, and the skills under ~/.claude, ~/.codex and ~/.agents. Nothing is started, nothing is written and nothing leaves this machine; no `agentfox init` is needed. Exits 1 on a lethal trifecta or a critical issue.

agentfox scan machine [OPTIONS]
Argument / optionMeaning
--skills, --no-skillsAlso scan user-level skill directories. Default: true.
--jsonMachine-readable output for scripts.

agentfox scan mcp

Check an MCP server: what it can reach, how it is pinned, and its tools. Reads your MCP client config and registers every server it declares, so there is nothing to set up first. Nothing is started: without --file the check covers what the config shows (version pinning, remote auth, credentials in the file) and what the server can reach. With --file (the server's tools/list output) it also snapshots the tools and flags poisoned descriptions and changes since last time.

agentfox scan mcp [SERVER] [OPTIONS]
Argument / optionMeaning
SERVERServer name as your MCP config declares it. Omit to scan every one.
--file pathTool list JSON (what the server's tools/list returned).
--config pathMCP client config to read servers from. Default: every one of .mcp.json, mcp.json, .cursor/mcp.json, .claude/settings.json, .claude/settings.local.json, .claude.json, claude_desktop_config.json and mcp_settings.json found in this directory. For the configs in your home directory, use `agentfox scan machine`.
--seed-fixtureScan the built-in demo tool list instead of --file. For demos only.
--jsonMachine-readable output for scripts.

agentfox scan repo

Scan a repository and highlight everything worth governing. Static only: reads the source, never imports or runs it. Importing the target would execute arbitrary code from a repo the operator may not trust, and would fail on anything with an import-time side effect — which is most real applications. Stays entirely local unless `--submit` (or an interactive "yes") opts into sending a redacted summary — see `cli/submit.py`.

agentfox scan repo [PATH] [OPTIONS]
Argument / optionMeaning
PATHDirectory to scan. Default: here. Default: ..
--jsonFull records for scripts: every site, whole paths, no table.
--limit, -n integerHow many sites to show, worst first. Default: 15.
--failExit non-zero if any model call is ungoverned (for CI). Only that: a critical finding such as a lethal trifecta is reported, not failed on.
--submit, --no-submitSend a redacted summary (counts and structure only, never file contents) to a running control plane for a fuller dashboard report. Optional — omit both flags to be asked interactively.
--include-testsAlso report what tests, docs and benchmarks define. Left out by default: they build stand-in agents and tools nobody deploys (secrets are reported everywhere either way).

agentfox scan runtime

Sweep for shadow agents, unowned agents, registry drift, identity posture and delegation cycles/depth.

agentfox scan runtime

agentfox scan monitorsEnterprise

Watch connected sources on a schedule: list, add, pause, resume, remove, run.

agentfox scan monitors COMMAND

agentfox scan monitors listEnterprise

Every monitor, its last outcome, and when it runs next.

agentfox scan monitors list [OPTIONS]
Argument / optionMeaning
--jsonPrint JSON.

agentfox scan monitors addEnterprise

Start watching a source. Its first run stores a baseline; later runs report changes.

agentfox scan monitors add KIND TARGET [OPTIONS]
Argument / optionMeaning
KIND requiredgithub_repo, hosted_api, mcp_server or deployed_agent.
TARGET requiredowner/repo, the spec URL, the MCP server name, or a probe target id.
--every textInterval, e.g. 30m, 6h, 1d. Default per kind.
--name textA label for lists and alerts.

agentfox scan monitors pauseEnterprise

Stop scheduled runs. Open findings stay open.

agentfox scan monitors pause IDENT
Argument / optionMeaning
IDENT requiredMonitor id or target.

agentfox scan monitors resumeEnterprise

Resume scheduled runs.

agentfox scan monitors resume IDENT
Argument / optionMeaning
IDENT requiredMonitor id or target.

agentfox scan monitors removeEnterprise

Stop watching a source. Its findings are kept.

agentfox scan monitors remove IDENT
Argument / optionMeaning
IDENT requiredMonitor id or target.

agentfox scan monitors runEnterprise

Run one monitor now, or every monitor that is due.

agentfox scan monitors run [IDENT] [OPTIONS]
Argument / optionMeaning
IDENTMonitor id or target. Omit to run every due monitor.
--jsonPrint JSON.

agentfox agents

Find every agent that is running, and who owns it.

agentfox agents COMMAND

agentfox agents list

List every agent: registered, proposed by a scan (draft), or shadow (seen in traffic, never registered).

agentfox agents list [OPTIONS]
Argument / optionMeaning
--json—
--stoppedOnly agents that are quarantined or killed, and why.
--allAlso list dismissed drafts and disconnected agents.

agentfox agents register

Register an agent (or update one), so it is owned rather than shadow. Agents also appear on their first call; registering one up front gives it an owner and an environment before it has run, and turns a shadow agent into a registered one. Options left out keep the agent's current values.

agentfox agents register SLUG [OPTIONS]
Argument / optionMeaning
SLUG requiredAgent slug, e.g. support-triage.
--name textDisplay name. Default: the slug.
--owner textOwner's email. An agent with no owner is a finding.
--team textOwning team.
--env textEnvironment it runs in. Default: production, or its current one.
--risk-tier textminimal | limited | high | prohibited. Default: limited, or its current one.

agentfox agents budget

Show or set an agent's budget: the caps `budget.exceeded` blocks on. With no option it prints the current caps and usage. Each option sets one cap and leaves the others as they are; 0 removes that cap. Over a cap, the agent's calls are blocked (`budget.exhausted`) until the window rolls over.

agentfox agents budget SLUG [OPTIONS]
Argument / optionMeaning
SLUG requiredAgent slug.
--max-calls integerCalls per window.
--max-tokens integerTokens per window.
--max-cost-usd floatSpend per window, in USD.
--max-depth integerLongest tool-call chain in one run.
--window textminute | hour | day.
--clearRemove the agent's budget.

agentfox agents lineage

Show what an agent reaches — the blast radius.

agentfox agents lineage SLUG [OPTIONS]
Argument / optionMeaning
SLUG required—
--depth integer— Default: 2.

agentfox agents quarantine

Stop an agent while you investigate. Reversible and audited.

agentfox agents quarantine SLUG [OPTIONS]
Argument / optionMeaning
SLUG required—
--reason, -r text—

agentfox agents kill

Stop an agent now.

agentfox agents kill SLUG [OPTIONS]
Argument / optionMeaning
SLUG required—
--reason, -r text—

agentfox agents resume

Restart a stopped agent.

agentfox agents resume SLUG [OPTIONS]
Argument / optionMeaning
SLUG required—
--reason, -r text—

agentfox permit

Grant and withdraw what an agent may do; decide held calls. Grant, list and withdraw what an agent — or an end user — may do, and decide the calls held for a person (`permit approvals`).

agentfox permit COMMAND

agentfox permit grant

Allow an agent to call a tool, and say under what limits. Least privilege is default deny: an agent with no grant for a tool cannot call it, whether or not a detector fires. This command is the only thing that widens that, so it asks before it writes and records the result in the audit chain.

agentfox permit grant AGENT TOOL [OPTIONS]
Argument / optionMeaning
AGENT requiredAgent slug, e.g. payments-ops.
TOOL requiredTool key this grant covers. A glob is allowed: tickets.* or *.
--action, -a textAction on the tool this grant covers, repeatable. Default: every action. Repeatable.
--limit, -l textArgument limit, repeatable. path=value, or path:op=value — for example --limit amount:lt=1000 --limit currency:in=USD,EUR. Repeatable.
--max-taint textWorst provenance an argument may carry and still go through without an approval. One of: none, user, retrieved, tool_result, subagent, memory. Default, as the dashboard's Add: 'memory' (anything) for a tool that only reads, 'user' for any other.
--requires-approval, --no-requires-approvalSend every matching call to a human before it runs.
--expires-in-days integerWithdraw the grant automatically after this many days. Default: no expiry.
--granted-by textWho is accountable for this grant. Recorded in the audit. Default: cli.
--yes, -ySkip the confirmation prompt (for scripts and CI).

agentfox permit list

What each agent is allowed to do. Anything not listed here is refused.

agentfox permit list [AGENT] [OPTIONS]
Argument / optionMeaning
AGENTAgent slug. Omit to list every agent's grants.
--jsonMachine-readable output for scripts.

agentfox permit revoke

Withdraw a grant. The agent's calls to that tool are refused from now on.

agentfox permit revoke CAPABILITY_ID [OPTIONS]
Argument / optionMeaning
CAPABILITY_ID requiredGrant id from `agentfox permit list`, e.g. cap_01h....
--yes, -ySkip the confirmation prompt (for scripts and CI).

agentfox permit user

Grant access to a resource pattern.

agentfox permit user RESOURCE PRINCIPAL [OPTIONS]
Argument / optionMeaning
RESOURCE requiredResource pattern, e.g. 'hr/*'.
PRINCIPAL requiredGroup or subject the grant is for.
--kind textgroup | subject Default: group.
--classes textmnpi, legal_hold, pii_sensitive…
--purposes textGDPR Art. 5(1)(b) purposes.

agentfox permit approvals

See the calls waiting for a person, and approve or deny them.

agentfox permit approvals COMMAND

agentfox permit approvals list

The calls held for a person. Unanswered ones expire, and expiry denies.

agentfox permit approvals list [OPTIONS]
Argument / optionMeaning
--status textpending (the default), approved, denied, expired, used, or all. Default: pending.
--agent textOnly this agent's approvals.
--jsonMachine-readable output for scripts.

agentfox permit approvals show

One approval in full: the call, its arguments, why it was held, and the decision.

agentfox permit approvals show APPROVAL_ID [OPTIONS]
Argument / optionMeaning
APPROVAL_ID requiredApproval id, or a unique end of one.
--jsonMachine-readable output for scripts.

agentfox permit approvals approve

Let the held call run once: the same agent, tool and arguments, when retried.

agentfox permit approvals approve APPROVAL_ID [OPTIONS]
Argument / optionMeaning
APPROVAL_ID requiredApproval id, or a unique end of one.
--rationale, -r textWhy, for the audit record.
--as textWho is deciding (an email), for the audit record. Default: your git email.

agentfox permit approvals deny

Refuse the held call. The same call retried within 30 minutes is blocked, with why.

agentfox permit approvals deny APPROVAL_ID [OPTIONS]
Argument / optionMeaning
APPROVAL_ID requiredApproval id, or a unique end of one.
--rationale, -r textWhy, for the audit record.
--as textWho is deciding (an email), for the audit record. Default: your git email.

agentfox declare

Declare the facts containment uses: tools, scope, sources. What a tool can do, which column says whose row it is, what an agent has no data for, which sources are authoritative, and when to hand off to a person.

agentfox declare COMMAND

agentfox declare tool

Declare a tool and what it can do. Containment is declared, not detected: an irreversible tool recorded as `read` is one a tainted argument can reach. This is the command that makes least privilege real, and it is deliberately the first thing `agentfox init` points at.

agentfox declare tool KEY [OPTIONS]
Argument / optionMeaning
KEY required—
--impact text requiredread | write | high_impact | irreversible — the axis every containment rule reasons over.
--name text—
--description text—
--triggers textComma-separated downstream effects.
--output-trust textuntrusted | trusted — whether values copied out of this tool's output taint the arguments they land in. Default for a new tool: untrusted. Declare trusted only for a system of record you control, such as a CRM read.
--effect textcommunication — this tool's irreversible effect is a message leaving (an email, a chat message, a notification), not data destroyed, money moved or state changed. A cascade whose only irreversible tail is such a tool is escalated for approval rather than blocked. Pass '' to clear.

agentfox declare triggers

Declare what a tool call sets off downstream (a DB trigger, a webhook, a fan-out), so `cascade_risk()` can actually see it. An undeclared trigger stays invisible by design (see `effects.cascade_risk`'s own docstring) — this is how an operator closes that gap for one tool.

agentfox declare triggers KEY [OPTIONS]
Argument / optionMeaning
KEY requiredTool key, e.g. demo.delete_user
--triggers textComma-separated tool keys this call sets off downstream

agentfox declare scope

Declare which column on a table decides whose row it is, so `analyse_access()` can prove a query is scoped instead of assuming it. An undeclared table is reported, never assumed safe (see `data_access`'s own docstring).

agentfox declare scope TABLE [OPTIONS]
Argument / optionMeaning
TABLE requiredTable name
--column text requiredColumn that decides whose row it is
--principal-key textAttribute of the calling principal the column must equal Default: id.
--restricted-columns textComma-separated columns nobody should receive even for their own row

agentfox declare reference

Declare a table that belongs to nobody, so `analyse_access()` does not flag it as an undeclared/unscoped table.

agentfox declare reference TABLE
Argument / optionMeaning
TABLE requiredTable name — belongs to nobody (currencies, statuses, postcodes)

agentfox declare boundary

Declare what an agent is allowed to answer from. Until this exists nothing stops the agent inventing an answer to a question it has no data for, which is the single failure most likely to reach a customer. Re-running it changes only the options you pass, so `--mode enforce` on its own switches enforcement on and keeps the systems, coverage and topics already declared.

agentfox declare boundary AGENT [OPTIONS]
Argument / optionMeaning
AGENT requiredAgent slug.
--systems textComma-separated systems of record.
--coverage-months integerRolling window.
--answerable textQuestion types this agent may answer (default fact,aggregate,procedure).
--out-of-scope textComma-separated topics.
--mode textobserve | enforce (a new boundary starts in observe)

agentfox declare source

Register a source and its authority tier.

agentfox declare source KEY [OPTIONS]
Argument / optionMeaning
KEY requiredIdentifier the retriever emits.
--tier, -t text— Default: unverified.
--owner text—
--domain text—
--sla-hours integerFreshness SLA.
--updated textWhen the source last changed (ISO, or 'now').
--title text—

agentfox declare import-sources

Bulk-register from a JSON file. Tiering a corpus is inherently a bulk act. Nobody classifies four hundred sources one command at a time, and making them try is how the tiering never happens.

agentfox declare import-sources FILE
Argument / optionMeaning
FILE requiredJSON list of sources.

agentfox declare escalation

Declare when this agent must hand off to a human.

agentfox declare escalation [OPTIONS]
Argument / optionMeaning
--agent textAgent slug; omit for the default.
--turn-depth integer—
--repeated-failure integer—
--sla-minutes integer— Default: 60.
--owner text— Default: support.
--mode textobserve: record missed escalations as findings. enforce: hand the conversation off on the turn it qualifies. Default: observe.

agentfox declare principal

Register the human an agent acts for. Everything else in this pillar depends on this. The Copilot failure is its absence: the agent runs under its own identity, inherits everything that identity can reach, and every permission check passes.

agentfox declare principal SUBJECT [OPTIONS]
Argument / optionMeaning
SUBJECT requiredIdP subject — an OIDC `sub` or employee id.
--groups, -g textComma-separated groups.
--clearances textRestricted classes they may see.
--residency text—
--display text—

agentfox declare list

Everything declared so far: tools and their impact, sources and their tier.

agentfox declare list [KIND] [OPTIONS]
Argument / optionMeaning
KINDtools, sources, or all (the default; not with --json). Default: all.
--json—

agentfox policy

Write rules, try them on recorded traffic, then turn them on.

agentfox policy COMMAND

agentfox policy list

List policies and their enforcement mode.

agentfox policy list [OPTIONS]
Argument / optionMeaning
--json—

agentfox policy lint

Lint the policy hierarchy, or policy files. Exits 1 on critical or high findings. This is the half of hierarchical policy that produces the 87% misconfiguration reduction — composition without a linter just moves the confusion somewhere harder to see. Pass files to check them before they are loaded, e.g. in CI.

agentfox policy lint [FILES]
Argument / optionMeaning
FILESPolicy files to lint, as org-level layers in the order given. Without files, lints every bound policy layer.

agentfox policy effective

Show the policy actually in force for a subject, and where each rule came from. Opacity is what makes layered policy dangerous, so the resolver explains itself. Business rules (approval limits) are listed too, from `business`.

agentfox policy effective [OPTIONS]
Argument / optionMeaning
--agent text—
--team text—
--user text—
--environment textEnvironment to resolve for. Defaults to the one the gateway resolves the agent in: its registered environment, or production without --agent.

agentfox policy simulate

Replay recorded traffic against a candidate policy, or a loaded one by key. Exits non-zero when the change would newly block production traffic, so it can gate a policy PR the same way `agentfox test gate` gates a code PR.

agentfox policy simulate [KEY] [OPTIONS]
Argument / optionMeaning
KEYA policy already loaded (`agentfox policy list`): replay its live version, the simulation `policy enforce` needs before it blocks. Or give --file.
--file, -f pathCandidate policy YAML.
--agent textReplay one agent's traffic only.
--since-days integerHow far back to replay. Default: 30.
--limit integerThe most recorded calls to replay. Default: 1000.

agentfox policy enforce

Promote a policy from observe to enforce. KEY is a policy key (`agentfox policy list`) or a library applied per agent (`basic`, `tool-containment`): every agent's copy of it is switched.

agentfox policy enforce KEY
Argument / optionMeaning
KEY required—

agentfox policy observe

Demote a policy from enforce to observe.

agentfox policy observe KEY
Argument / optionMeaning
KEY required—

agentfox policy validate

Check, lint and compile a policy file without saving it. Runs the full lint (`policy lint FILE`), so a rule that can never fire or a condition naming an unknown value (`surface: [toolargs]`) fails validation. Exits 1 on a parse error or a critical/high finding.

agentfox policy validate FILE
Argument / optionMeaning
FILE required—

agentfox policy export

Write every policy, custom rule and detector switch as one YAML file.

agentfox policy export [OPTIONS]
Argument / optionMeaning
--out, -o pathWrite to this file instead of stdout.

agentfox policy apply

Make the workspace match a file from `policy export`. Shows the plan first. Anything the file leaves out is left alone. A policy the file moves to enforce is simulated against the last week first.

agentfox policy apply FILE [OPTIONS]
Argument / optionMeaning
FILE required—
--yes, -yApply without asking.

agentfox policy import

Translate a policy written for another engine; show the plan, or apply it in observe. Policies written for the Agent Governance Toolkit (rule YAML with `default_action`, or a policy manifest with its Rego bundle) can be imported. Every source rule is listed as translated, translated with a note, or not translatable with the reason. Nothing is enforced: imported policies are saved in observe, and turning one on still needs a simulation (`policy simulate`, then `policy enforce`). Exits 1 when the file cannot be read.

agentfox policy import FILE [OPTIONS]
Argument / optionMeaning
FILE requiredAgent-governance rule YAML or a policy manifest.
--from textThe format FILE is written in. Only `agent-governance` is read today. Default: agent-governance.
--bundle pathDirectory of the manifest's Rego bundle. Default: the bundle path the manifest names, next to it.
--applySave the translated policies, in observe. Without it: plan only.
--yes, -yApply without asking.
--jsonPrint the plan (or result) as JSON.

agentfox policy catalogue

Every kind of guardrail this product can enforce. The answer to "can we express our policy?" — asked before anyone writes YAML.

agentfox policy catalogue [OPTIONS]
Argument / optionMeaning
--intent text—
--json—

agentfox policy compile

Turn a written policy into executable guardrails.

agentfox policy compile FILE [OPTIONS]
Argument / optionMeaning
FILE requiredPolicy document (.txt or .md).
--applySave the compiled rules.
--json—

agentfox policy packs

Capability packs: the policies, controls, ladders, probes and cases a use case ships as one directory. Bare `agentfox policy packs` lists the policy files on disk and where each came from (`files`). `list`, `show`, `test` and `validate` work on the packs themselves.

agentfox policy packs [COMMAND]

Run with no subcommand, it does policy packs files.

agentfox policy packs files

Policy files on disk, and where each came from. `policy list` reads the database: what is installed and what mode it is in. This reads the filesystem and answers the question an operator has about a policy they did not write — which file is this, and did something override it. A project pack replacing a shipped one is invisible in `policy list`, because by then they are the same row.

agentfox policy packs files

agentfox policy packs list

Capability packs: built in, installed, and the project's, and whether each loads.

agentfox policy packs list [OPTIONS]
Argument / optionMeaning
--allAlso packs that do not load (maturity, version).
--json—

agentfox policy packs show

One pack: its manifest, where it is, and what it ships.

agentfox policy packs show PACK_ID [OPTIONS]
Argument / optionMeaning
PACK_ID requiredA pack id (payments/refunds) or a pack directory.
--json—

agentfox policy packs test

Run each pack's golden cases (`cases/*.yaml`). Exits 1 if any fails.

agentfox policy packs test [PACKS] [OPTIONS]
Argument / optionMeaning
PACKSPack ids or directories; default all loaded.
--json—

agentfox policy packs validate

Check a pack: its pack.yaml, that its policies load and lint clean, that its ladders, probes, controls and checks are well formed, and that its cases pass. Exits 1 on any problem.

agentfox policy packs validate [PACKS] [OPTIONS]
Argument / optionMeaning
PACKSPack ids or directories; default all.
--json—
--schemaPrint pack.yaml's JSON Schema.

agentfox policy packs new

Scaffold a pack from the template: pack.yaml, a policy, golden cases, a check.

agentfox policy packs new PACK_ID [OPTIONS]
Argument / optionMeaning
PACK_ID requiredThe new pack's id, e.g. payments/chargebacks.
--into pathWhere to create it. The default is this project's packs directory. Default: .agentfox/packs.
--builtinCreate it among the built-in packs (contributors).

agentfox policy rules

Business rules in plain terms: apply, show, check, explain, suggest, graph.

agentfox policy rules COMMAND

agentfox policy rules apply

Author or update a business rule from a YAML file.

agentfox policy rules apply FILE [OPTIONS]
Argument / optionMeaning
FILE requiredYAML ladder definition.
--agent text—
--mode textobserve | enforce

agentfox policy rules show

Show the resolved bands, so an author sees exactly what they wrote.

agentfox policy rules show [KEY]
Argument / optionMeaning
KEYRule key; omit for all.

agentfox policy rules check

Find where two teams' rules disagree. Two authors setting different thresholds on the same field is not a merge to be resolved by precedence — it is a disagreement between two people, and resolving it silently means one of them is wrong and does not know.

agentfox policy rules check [OPTIONS]
Argument / optionMeaning
--json—

agentfox policy rules test

Try values against a rule without running anything.

agentfox policy rules test KEY VALUES
Argument / optionMeaning
KEY requiredRule key.
VALUES requiredComma-separated values to try.

agentfox policy rules catalogue

Every kind of guardrail this product can enforce. The answer to "can we express our policy?" — asked before anyone writes YAML.

agentfox policy rules catalogue [OPTIONS]
Argument / optionMeaning
--intent text—
--json—

agentfox policy rules explain

Parameters, inputs and a worked example for one guardrail kind.

agentfox policy rules explain KIND_ID
Argument / optionMeaning
KIND_ID requiredGuardrail kind id.

agentfox policy rules suggest

Which guardrail kinds a written instruction probably needs. Deterministic signal matching, not a model — a starting point an operator confirms, so a wrong suggestion costs a glance rather than a silent misconfiguration.

agentfox policy rules suggest INSTRUCTION
Argument / optionMeaning
INSTRUCTION requiredA sentence from a policy document.

agentfox policy rules graph

The decision path as it will actually run, stage by stage.

agentfox policy rules graph

agentfox policy rules compile

Turn a written policy into executable guardrails.

agentfox policy rules compile FILE [OPTIONS]
Argument / optionMeaning
FILE requiredPolicy document (.txt or .md).
--applySave the compiled rules.
--json—

agentfox policy proposals

Proposed changes to governance configuration: review, decide, apply, undo.

agentfox policy proposals COMMAND

agentfox policy proposals list

List proposals, newest first.

agentfox policy proposals list [OPTIONS]
Argument / optionMeaning
--status textFilter by lifecycle status
--kind textFilter by change kind
--scope textorg | team | agent | user
--json—

agentfox policy proposals show

Show one proposal: its diff, evidence, proof and decisions.

agentfox policy proposals show PROPOSAL_ID [OPTIONS]
Argument / optionMeaning
PROPOSAL_ID required—
--json—

agentfox policy proposals approve

Approve a proven proposal. An org-level loosening needs two different people.

agentfox policy proposals approve PROPOSAL_ID [OPTIONS]
Argument / optionMeaning
PROPOSAL_ID required—
--actor text requiredYour name or email — decisions are named
--note text requiredWhy

agentfox policy proposals reject

Reject a proposal.

agentfox policy proposals reject PROPOSAL_ID [OPTIONS]
Argument / optionMeaning
PROPOSAL_ID required—
--actor text requiredYour name or email — decisions are named
--note text requiredWhy

agentfox policy proposals apply

Apply an approved proposal (or settle one whose canary has finished).

agentfox policy proposals apply PROPOSAL_ID [OPTIONS]
Argument / optionMeaning
PROPOSAL_ID required—
--actor textYour name or email
--automatedApply as the improvement loop, subject to autonomy, freeze and daily cap

agentfox policy proposals rollback

Undo an applied or canaried proposal.

agentfox policy proposals rollback PROPOSAL_ID [OPTIONS]
Argument / optionMeaning
PROPOSAL_ID required—
--actor text requiredYour name or email
--reason text requiredWhy it is being undone

agentfox policy proposals verify

Close the loop on an applied change: did it do what it promised? `--failed` rolls the change back. If undoing it would loosen a control, it stays applied with the failure recorded, because that rollback is a person's decision.

agentfox policy proposals verify PROPOSAL_ID [OPTIONS]
Argument / optionMeaning
PROPOSAL_ID required—
--actor text requiredYour name or email
--note text requiredWhat the evidence showed
--failedThe change did not do what it promised: record it and roll back.

agentfox policy proposals from-labels

File rule cut-off proposals from labelled false positives. Nothing is applied.

agentfox policy proposals from-labels [OPTIONS]
Argument / optionMeaning
--days integerLabel window in days Default: 30.
--json—

agentfox policy proposals from-traffic

Propose tool declarations and grants from what your agents have called. Learned permissions: observe, propose, approve. Reads every recorded tool call — refused ones included — and files a `tool.declare` for each undeclared tool and a `capability.grant` per agent and tool, with argument limits read off the calls and a provenance ceiling from benign calls only. A call a detector matched, or that was stopped for where its arguments came from and nobody approved, is never learned from. Nothing is applied: approve and apply each proposal.

agentfox policy proposals from-traffic [OPTIONS]
Argument / optionMeaning
--agent textOnly this agent's calls (slug).
--since textWindow: 7d, 24h, 30m or an ISO date. Default: the last 30 days.
--json—

agentfox serve

Run the gateway and API, the MCP server, or the model server. `agentfox serve` starts the API (the default) on 127.0.0.1:8080. `--host 0.0.0.0` and `--port 9000` change where it listens; `--reload` restarts it when the code changes; `agentfox serve api --help` lists every option. `agentfox serve mcp` speaks MCP over stdio; `agentfox serve models` runs the model-backed detectors for gateways that should not hold weights.

agentfox serve [COMMAND]

Run with no subcommand, it does serve api.

agentfox serve api

Start the gateway and control-plane API. It serves JSON: the API under /api, the gateway under /v1, and interactive API docs at /docs. The web dashboard is AgentFox Cloud (`agentfox up --target cloud`) or the self-hosted stack (`agentfox up --target self-hosted`).

agentfox serve api [OPTIONS]
Argument / optionMeaning
--host text— Default: 127.0.0.1.
--port integer— Default: 8080.
--reload, --no-reload—

agentfox serve mcp

Serve MCP over stdio (for Claude Code, Claude Desktop and other MCP clients). Read-only by design: nothing that changes enforcement or stops an agent is exposed.

agentfox serve mcp

agentfox serve models

Run the model server: model-backed detectors for gateways that should not hold weights. Point a gateway at it with AGENTFOX_MODEL_SERVER_URL.

agentfox serve models [OPTIONS]
Argument / optionMeaning
--host text— Default: 127.0.0.1.
--port integer— Default: 8090.
--workers integerProcesses; each loads every model once. Default: 1.

agentfox findings

What was found, worst first: the list `agentfox.auto()` points to. `agentfox findings [--severity high] [--limit 50] [--json]` lists the open ones, worst first (the default); `agentfox findings show <id>` shows one in full; `agentfox findings --types` lists the kinds there are.

agentfox findings [COMMAND]

Run with no subcommand, it does findings list.

agentfox findings list

What the platform found. The list `agentfox.auto()` tells you to read. Ordered worst first, then most recently seen. A finding that keeps happening is one row with a count, not one row per occurrence, so the length of this list is the number of distinct problems. `--types` lists the kinds of finding there are.

agentfox findings list [OPTIONS]
Argument / optionMeaning
--severity, -s textShow only this severity: critical, high, medium, low or info.
--limit, -n integerHow many findings to show, worst first. Default: 20.
--jsonFull records for scripts: whole ids, fingerprints, subjects and timestamps.
--typesList every finding type instead: what each means, its usual severity, who raises it.

agentfox findings show

One finding in full: its whole id, what it is about, when, and the evidence.

agentfox findings show FINDING_ID [OPTIONS]
Argument / optionMeaning
FINDING_ID requiredThe finding's id: whole, or the tail `agentfox findings` prints.
--jsonThe whole record, for scripts.

agentfox test

Prove the controls hold before you ship: score, gate, attack.

agentfox test COMMAND

agentfox test run

Run an evaluation suite.

agentfox test run SUITE [OPTIONS]
Argument / optionMeaning
SUITE required—
--provider text— Default: echo.
--model text— Default: echo-1.
--agent text—
--scorers textComma-separated scorer keys.

agentfox test gate

Run the suite and fail the build on regression or on any errored case. Exits 1 on failure.

agentfox test gate SUITE [OPTIONS]
Argument / optionMeaning
SUITE required—
--provider text— Default: echo.
--model text— Default: echo-1.
--baseline textBaseline run id.
--min-pass-rate float—
--agent textAgent to fit the envelope for. Default: the baseline run's agent.
--scorers textComma-separated scorer keys. Default: the baseline run's scorers.
--junit pathWrite JUnit XML here.
--sarif pathWrite SARIF here.

agentfox test baseline

Mark a run as the regression baseline.

agentfox test baseline RUN_ID [OPTIONS]
Argument / optionMeaning
RUN_ID required—
--label text— Default: main.

agentfox test suites

List the evaluation suites in this deployment.

agentfox test suites

agentfox test online

Sample production traffic and score it with the offline scorers.

agentfox test online AGENT [OPTIONS]
Argument / optionMeaning
AGENT required—
--since-days integer— Default: 7.
--rate float—

agentfox test redteam

Run adversarial probes, written from the agent's own tools, against the deployed configuration. This measures whether *this configuration* got weaker, against known attack classes. It is not a robustness certificate, and `--adaptive` does not make it one: every published result says an attacker who adapts eventually gets through. An attack got through when live traffic would not stop it today: one only a watching (observe-mode) rule catches gets through until that rule blocks. The recall line, the verdict and the exit code all count it this way. Exits 1 when any attack got through (unless --allow-escapes, for a CI step that reports without failing). Probes are simulated: their tool calls are evaluated without writing decisions, so they never show up in findings or in what `policy simulate` replays. The campaign itself, and a finding naming the attacks that got through, are recorded.

agentfox test redteam AGENT [OPTIONS]
Argument / optionMeaning
AGENT requiredThe agent to attack: its name, as `agents list` shows.
--probes textRun only these built-in probes, comma-separated keys from `agentfox test probes` (they run alongside the attacks written from the agent's tools).
--adaptiveMutate a blocked probe and try again, steering from the failure. Reports a posture delta against the last comparable campaign, not a pass rate.
--budget integerAttempts per probe in adaptive mode. Default: 3.
--seed integerFixes the mutation program. Default: 1337.
--deployment-probes, --no-deployment-probesAdaptive mode only: also generate probes from this deployment's own grants, impacts and bound policies (on by default with --adaptive). The static suite always runs the built-in probes alone.
--sets textAttack sets to write from the agent's tools, comma-separated (default: the attack test's defaults). See `agentfox test probes`.
--builtinAlso run the built-in generic probes (they run alone when AgentFox knows none of the agent's tools).
--allList every probe, not only the ones that weren't blocked.
--allow-escapesExit 0 even when an attack got through. By default an attack that got through exits 1, so the command can gate CI; one only a watching rule catches counts, since live traffic isn't stopped by it.

agentfox test probes

List the probe suite (built in, and from capability packs) and the wrapped runners.

agentfox test probes

agentfox test action

Read an artefact and say what running it would actually do. Deterministic, offline and immediate: no database, no model, no network. The point is that an engineer can check a generated statement before it is ever executed.

agentfox test action STATEMENT [OPTIONS]
Argument / optionMeaning
STATEMENT requiredSQL, shell command or URL to analyse
--kind textsql | shell | http Default: sql.
--method textHTTP method, when kind=http Default: GET.
--dialect textSQL dialect Default: postgres.
--environment textenvironment the action binds to Default: production.

agentfox test boundary

Would this question be refused, and what would we say instead? Changes nothing, so it is safe to replay real traffic through before enforcing — which matters more here than anywhere else, because the false positives of this control are refusals shown to customers.

agentfox test boundary AGENT QUESTION
Argument / optionMeaning
AGENT requiredAgent slug.
QUESTION requiredA question to test.

agentfox test rule

Try values against a rule without running anything.

agentfox test rule KEY VALUES
Argument / optionMeaning
KEY requiredRule key.
VALUES requiredComma-separated values to try.

agentfox report

What you can show an auditor: posture, evidence, risk, sign-off. Bare `agentfox report` prints the summary; the subcommands go deeper.

agentfox report [COMMAND]

Run with no subcommand, it does report summary.

agentfox report summary

A one-page summary of what your agents did and what was contained.

agentfox report summary [OPTIONS]
Argument / optionMeaning
--agent, -a textOnly this agent. Repeat for several. Default: all. Repeatable.
--since textHow far back: 24h, 7d, 2w, 30d. Default: 7d.
--format, -f textmd or html. Default: md.
--out, -o pathWrite to this file instead of printing.

agentfox report statusEnterprise

Show control posture, optionally for one framework.

agentfox report status [OPTIONS]
Argument / optionMeaning
--framework text—
--verbose, --no-verbose—

agentfox report evidenceEnterprise

Build an auditor-ready evidence package.

agentfox report evidence [OPTIONS]
Argument / optionMeaning
--agent textRepeatable; default all. Repeatable.
--from textStart of the period, YYYY-MM-DD or ISO-8601. Default: --since-days.
--to textEnd of the period, inclusive of a whole day given as YYYY-MM-DD.
--since-days integer— Default: 30.
--control textRepeatable; default all. Repeatable.
--requested-by text— Default: cli.
--out pathWhere to write the zip: a file path, or a directory to put it in. Default: the evidence directory under the state dir.

agentfox report verify

Verify the tamper-evident audit chain. Exits 1 if broken.

agentfox report verify [OPTIONS]
Argument / optionMeaning
--start integer—
--end integer—

agentfox report riskEnterprise

Show the agent risk register.

agentfox report risk

agentfox report obligationsEnterprise

Regulatory obligation calendar against the agent inventory.

agentfox report obligations

agentfox report frameworksEnterprise

List frameworks, coverage and review status.

agentfox report frameworks

agentfox report boardEnterprise

Executive risk view.

agentfox report board

agentfox report review-packetEnterprise

Everything a qualified reviewer needs to sign off one framework, in one file. Every mapping ships `DRAFT — UNVERIFIED / NOT LEGAL ADVICE` until a named human reviews it, and that is the loudest "not ready" signal in an audit conversation. The blocker has never been the workflow, it has been that nobody could hand a reviewer a reviewable artefact. This is that artefact: the control, what implements it, what evidence it produces, and the exact clause claimed — one row per decision the reviewer has to make.

agentfox report review-packet [OPTIONS]
Argument / optionMeaning
--framework text requiredFramework key, e.g. eu-ai-act.
--out pathWrite markdown here instead of stdout.

agentfox report signoffEnterprise

Record a qualified reviewer's sign-off on a control's framework mapping(s). This is an attestation by a named person, recorded and auditable. It is the step that moves a mapping from `DRAFT — UNVERIFIED / NOT LEGAL ADVICE` to reviewed, and it should be run by whoever is actually accountable for the claim — not by whoever runs the CLI.

agentfox report signoff CONTROL [OPTIONS]
Argument / optionMeaning
CONTROL required—
--framework text required—
--reviewer text requiredThe human accountable for this sign-off.
--reference textSign off one clause only; default is every clause for the control.

agentfox report entitlement

How much more the agent can reach than its callers are entitled to. Worth running before any entitlement model exists — a ratio of 1.0 with no grants configured is exactly the point.

agentfox report entitlement [OPTIONS]
Argument / optionMeaning
--days integer— Default: 7.

agentfox report escalations

Which conversations qualified for a human and never got one. The largest single failure family at 31%, and invisible from inside the system: a conversation where the agent kept going instead of handing off looks entirely ordinary in the telemetry.

agentfox report escalations [OPTIONS]
Argument / optionMeaning
--hours integer— Default: 24.
--applyRaise findings and retroactive hand-offs.

agentfox report drift

Compare recent production scores against the baseline window.

agentfox report drift AGENT [OPTIONS]
Argument / optionMeaning
AGENT required—
--scorer text— Default: groundedness.

agentfox doctor

Is the runtime configured the way you think it is? Reports only — it changes nothing. Every line is a fact about this deployment, and each one names the consequence rather than the setting, because "fail_mode=open" means nothing to someone who has not read the PRD.

agentfox doctor [OPTIONS]
Argument / optionMeaning
--jsonOne record per check, for CI. Exits non-zero on a failed check either way.

agentfox admin

Run the deployment: operators, keys, schema, jobs, hooks. Operators and tokens, the database schema, scheduled jobs, key rotation, catalog upkeep, coding-agent hooks and seed data.

agentfox admin COMMAND

agentfox admin checkpoint

Write a signed checkpoint over the current chain head.

agentfox admin checkpoint

agentfox admin seed

Load a demonstrable environment: three agents, policies, controls and an eval suite. It records no traffic; `agentfox demo` sends sample requests through the seeded agents, which is what fills traces, decisions and findings.

agentfox admin seed [OPTIONS]
Argument / optionMeaning
--show-keysPrint newly issued agent API keys in full. Keys are shown only once, when first issued; this flag is the only way to see them.

agentfox admin version

Show the version of everything that takes part in a decision.

agentfox admin version

agentfox admin auth

Operator tokens and authentication mode.

agentfox admin auth COMMAND

agentfox admin auth issue

Mint an API token. The value is shown once and cannot be retrieved again.

agentfox admin auth issue EMAIL [OPTIONS]
Argument / optionMeaning
EMAIL requiredOperator the token acts as.
--name, -n textWhat this token is for.
--days integerLifetime; 0 for no expiry. Default: 365.

agentfox admin auth tokens

List tokens. Never shows a secret — there is nothing stored that could.

agentfox admin auth tokens [OPTIONS]
Argument / optionMeaning
--json—

agentfox admin auth revoke

Revoke a token immediately.

agentfox admin auth revoke TOKEN_ID
Argument / optionMeaning
TOKEN_ID requiredToken id from `agentfox admin auth tokens`.

agentfox admin auth status

How this deployment authenticates, and whether that is what you intended.

agentfox admin auth status

agentfox admin users

Operators: create the first one on a fresh install, list them.

agentfox admin users COMMAND

agentfox admin users create

Create an operator — the first one on a fresh self-hosted install, with no demo data. Then `agentfox admin auth issue EMAIL` mints their API token (or pass --token).

agentfox admin users create EMAIL [OPTIONS]
Argument / optionMeaning
EMAIL requiredThe operator's email; what `auth issue` takes.
--role, -r textowner | admin | security | compliance | developer | auditor. Default: owner.
--name, -n textDisplay name.
--org textTenant to create them in. Default: this deployment's AGENTFOX_ORG_ID.
--tokenAlso issue an API token for them now, shown once.

agentfox admin users list

List operators in every tenant on this database.

agentfox admin users list [OPTIONS]
Argument / optionMeaning
--json—

agentfox admin db

Apply, roll back and inspect the database schema.

agentfox admin db COMMAND

agentfox admin db upgrade

Apply migrations. This is how a deployed instance is upgraded.

agentfox admin db upgrade [OPTIONS]
Argument / optionMeaning
--revision text— Default: head.

agentfox admin db downgrade

Roll back migrations. Every migration ships with a tested downgrade.

agentfox admin db downgrade REVISION
Argument / optionMeaning
REVISION requiredTarget revision, or 'base'.

agentfox admin db current

Show the applied schema revision.

agentfox admin db current

agentfox admin detectors

See which detectors can run here, and download the models some of them need.

agentfox admin detectors COMMAND

agentfox admin detectors list

Every detector, whether it can run here, and what it needs if not.

agentfox admin detectors list

agentfox admin detectors pull

Download the model weights a detector loads, so it can run without a network.

agentfox admin detectors pull KEY
Argument / optionMeaning
KEY required—

agentfox admin catalogEnterprise

Keep the control catalog and its computed status current.

agentfox admin catalog COMMAND

agentfox admin catalog syncEnterprise

Load the control catalog and obligation calendar from YAML.

agentfox admin catalog sync

agentfox admin catalog computeEnterprise

Recompute control status from telemetry.

agentfox admin catalog compute [OPTIONS]
Argument / optionMeaning
--window-days integer— Default: 30.

agentfox admin catalog validateEnterprise

Check the control catalog and obligation calendar are internally consistent. Read-only and offline: parses the compliance packs' controls.yaml and obligations.yaml (or those under `compliance_dir`, when it is set) and never touches the database. Exits 1 on any problem, so it can gate a catalog change the way `policy lint` gates a policy.

agentfox admin catalog validate

agentfox admin hooks

Run AgentFox where the agent already is: a warm daemon and a thin per-call hook.

agentfox admin hooks COMMAND

agentfox admin hooks daemon

Run the warm process a hook talks to. A harness spawns its hook as a fresh process per tool call, and importing AgentFox costs seconds — measured here at 3.9s on the first call against a cold daemon, then 6ms once warm. That gap is the whole reason this exists: a hook that costs two seconds a call is a hook the operator removes.

agentfox admin hooks daemon [OPTIONS]
Argument / optionMeaning
--socket pathOverride the socket path.

agentfox admin hooks run

The per-call hook. Reads the harness payload on stdin, writes its reply. Everything in this path runs in a process the harness creates and destroys per tool call, so it does the least possible: parse, ask the daemon, print. Measured against a warm daemon, the round trip is about 6ms; the same work without one is 3.9 seconds, because `import agentfox` is.

agentfox admin hooks run [OPTIONS]
Argument / optionMeaning
--harness text requiredWhich harness is calling.
--agent textAgent slug to govern this session as.

agentfox admin hooks install

Show, or write, the hook configuration for a harness. Dry by default. This edits a file that decides whether the operator's agent runs at all, so it prints what it would do and waits to be told twice. With --write it also sets up a working baseline: the agent is registered (development unless --env says otherwise), the harness's built-in tools are declared with their real impact and granted to it, and the coding-agent pack is bound to it in observe. Destructive commands are still refused.

agentfox admin hooks install [OPTIONS]
Argument / optionMeaning
--harness textWhich harness to install for: claude (Claude Code) or codex (Codex CLI). Default: claude.
--agent text requiredAgent slug these calls are governed as.
--path pathProject to install into. Default: ..
--scope textWhere the hook configuration goes: project (this repository), local (Claude Code's settings.local.json; the project file for Codex) or user (your home directory, every project). Default: project.
--writeActually write the settings file.
--env textEnvironment the agent runs in. Default: development for a new agent; an agent already registered keeps its own.
--grant, --no-grantGrant the harness's built-in tools to the agent (the default), so ordinary work is not refused by default-deny. Default: true.

agentfox admin hooks status

Is the daemon up, and does a deny on this harness actually stop anything?

agentfox admin hooks status

agentfox admin jobs

Run scheduled work: monitors, drift, compliance, canaries.

agentfox admin jobs COMMAND

agentfox admin jobs run-due

One pass of the job runner: enqueue due schedules, recover stuck jobs, run them. Put this on a scheduler (cron, a systemd timer, a Kubernetes CronJob) every 10-30 minutes on a self-hosted deployment. Safe to run as often as you like.

agentfox admin jobs run-due [OPTIONS]
Argument / optionMeaning
--limit integerMost jobs to run in this pass. Default: 50.
--jsonPrint JSON.

agentfox admin keys

Rotate the token encryption and audit signing keys.

agentfox admin keys COMMAND

agentfox admin keys status

Fingerprints in use, and whether any data or checkpoint still needs a previous key.

agentfox admin keys status [OPTIONS]
Argument / optionMeaning
--jsonPrint JSON.

agentfox admin keys rotate

Re-encrypt stored secrets and re-sign audit checkpoints under the current keys. Values no configured key decrypts are reported and left untouched. A chain that fails verification is reported and not re-signed. Safe to run repeatedly.

agentfox admin keys rotate [OPTIONS]
Argument / optionMeaning
--dry-runReport only; change nothing.
--jsonPrint JSON.

agentfox admin mcp

Inspect the MCP server. To run it: `agentfox serve mcp`.

agentfox admin mcp COMMAND

agentfox admin mcp tools

List the tools an MCP client gets, with a one-line description of each.

agentfox admin mcp tools