CLI Reference

Usage

navra <COMMAND> [OPTIONS]

MCP gateway server commands.

Start the MCP gateway server over Streamable HTTP.

navra mcp serve [OPTIONS]
OptionDescription
-c, --config <path>Path to config file (default: ~/.config/navra/config.toml)
--no-trayDisable system tray icon
--dev-modeEnable anonymous access (dev only -- do not use in production)

Run as a stdio MCP server for direct client integration (Claude Desktop, Cursor, etc.).

navra mcp stdio [OPTIONS]
OptionDescription
-c, --config <path>Path to config file

Interactive first-time setup. Generates a config file tuned to your hardware, project type, and safety preferences.

navra init [OPTIONS]
OptionDescription
--quietSkip interactive prompts, use defaults and flags
--agent-name <name>Agent name (default: auto-detect)
--safety <level>Safety level: standard, strict, minimal (default: standard)
--project <type>Project type: dev, data, ops, custom (default: dev)
--model <backend>Model backend: ollama, mistral, anthropic, openai-compat, none (default: none)
--model-url <url>Base URL for openai-compat backend
--api-key <key>API key for model backend
--allow <globs>Allowed directories (comma-separated globs)
--install-serviceInstall systemd user service
--dry-runOutput config to stdout instead of writing to file
-o, --output <path>Config output path
--profile <type>Hardware profile: auto, desktop, laptop, headless. Generates a config optimized for the detected (or specified) hardware. Overrides --model/--safety/--project flags with profile-tuned defaults

Generate and manage agent capability tokens.

navra token generate --name <name> --permissions <set>
OptionDescription
-n, --name <name>Agent name
-p, --permissions <set>Permission set name

List registered agents.

navra token list

Handle pending approval requests.

navra approve <id>
navra deny <id>
ArgumentDescription
<id>Request ID to approve or deny

Show gateway server status.

navra status

Print JSON Schema for config.toml.

navra schema > config-schema.json

Manage the systemd user service.

navra install    # Install and enable systemd user units
navra uninstall  # Remove systemd user units

Manage agent bundles and instances.

Install an agent bundle from an OCI registry or local directory.

navra agent install <oci-ref> [OPTIONS]
OptionDescription
<oci-ref>OCI reference (e.g., oci://quay.io/navra/agent:v1) or local directory path
--allow-unsignedSkip signature verification for this install
--max-permissions <set>Permission set to check against (uses its rules as max allowed)

Inspect an agent bundle without installing.

navra agent inspect <oci-ref>

Initialize an agent instance from an installed bundle.

navra agent init <bundle> [OPTIONS]
OptionDescription
--name <instance>Instance name (defaults to bundle name)

Upgrade an installed agent bundle to a new version.

navra agent upgrade <bundle> [OPTIONS]
OptionDescription
--allow-unsignedSkip signature verification

List installed agent bundles and instances.

navra agent list

Remove an installed agent bundle.

navra agent remove <name>

Run an agent task against a running navra instance.

navra agent run <prompt> [OPTIONS]
OptionDescription
-m, --model <model>Model to use (default: auto-detect from Ollama)
-p, --persona <name>Persona to use (default: leader)
-e, --endpoint <url>navra endpoint URL (default: http://127.0.0.1:9315/mcp)
-t, --token <token>Auth token (reads MCPD_TOKEN env if not set)
-n, --max-iterations <N>Max iterations (default: 200)
--upstream-prompt <ref>Inject an upstream MCP prompt (repeatable, format: upstream:prompt_name)
--workflow <name>Run a named workflow from an agent instance
--config <path>Path to agent instance config (overrides default resolution)
--no-embeddedForce Ollama API even when a local GGUF blob exists
--dry-runPreview the constructed prompt without executing

Manage ONNX models.

Start a standalone model inference server.

navra model serve [OPTIONS]
OptionDescription
-c, --config <path>Path to config file
-b, --bind <addr>Bind address (default: 127.0.0.1:9316)
--autoAuto-detect hardware and propose resource allocation
--budget <size>Maximum VRAM budget (e.g., 24GB, 16GB)

Download a model from HuggingFace.

navra model pull <name>
ArgumentDescription
<name>Model name (e.g., guardian-hap, granite-embed)

List installed models.

navra model list

Show available models for download.

navra model available

Manage the PII NER model for semantic PII detection.

Download a NER model for PII detection.

navra pii download [OPTIONS]
OptionDescription
--multilingualDownload the multilingual model (xlm-roberta-base-ner-hrl) instead of the default English-only protectai/bert-base-NER model. Covers French, German, Spanish, Italian, Portuguese, Dutch, and more

Check if the PII NER model is installed.

navra pii status

Manage flows, triggers, and flow execution.

Execute a flow YAML file.

navra flow run <file> [OPTIONS]
OptionDescription
<file>Path to the flow YAML file
-p, --prompt <text>Prompt / input for the flow (default: empty)
-e, --endpoint <url>navra endpoint URL (default: http://127.0.0.1:9315/mcp)
-t, --token <token>Auth token (reads MCPD_TOKEN env if not set)
-m, --model <model>Model to use

List available flows from configured directories and agent instances.

navra flow list [OPTIONS]
OptionDescription
-c, --config <path>Path to config file

Start the trigger engine (loads triggers from config and agent instances).

navra flow trigger start [OPTIONS]
OptionDescription
-c, --config <path>Path to config file

List configured triggers from config and agent instances.

navra flow trigger list [OPTIONS]
OptionDescription
-c, --config <path>Path to config file

Run adversarial security evaluations.

Run the AgentDojo IFC defense benchmark (requires the agentdojo Python package).

navra eval agent-dojo [OPTIONS]
OptionDescription
--tasks <N>Max user tasks to evaluate (default: 5)
--suite <name>AgentDojo task suite (default: workspace)
-m, --model <model>LLM model to use (default: claude-sonnet-4-6@default)
--defense <type>Defense to test: none, ifc, or both (default: both)
--attack <type>Attack type (default: important_instructions)
-o, --output <path>Output JSON file path
--python <cmd>Python interpreter to use (default: python3)

Run the MCPTox tool poisoning detection benchmark.

navra eval mcp-tox [OPTIONS]
OptionDescription
--dataset <path>Path to MCPTox dataset directory (default: /tmp/mcptox)
-o, --output <path>Output JSON file path

Generate a markdown comparison report from eval result files.

navra eval report <files>... [OPTIONS]
OptionDescription
<files>Result JSON files to compare (required, one or more)
-o, --output <path>Output markdown file (prints to stdout if omitted)

Query the gateway audit blackbox.

navra audit [OPTIONS]
OptionDescription
-l, --limit <N>Number of entries to show (default: 20)
-d, --detailShow full args and results
--agent <name>Filter by agent name
--tool <name>Filter by tool name
--verifyVerify hash chain integrity instead of listing

Analyze flow execution traces for weaknesses and propose improvements.

navra self-harness [OPTIONS]
OptionDescription
--flow <id>Flow IDs to analyze (repeatable; default: auto-discover recent flows)
--jsonOutput report as JSON
--retry-threshold <N>Back-edge iteration count considered excessive (default: 3)
--slow-tool-ms <ms>Tool call duration in ms considered slow (default: 10000)

Generate policy suggestions from audit data.

Generate policy suggestions from audit denials (audit2allow pattern).

navra policy suggest [OPTIONS]
OptionDescription
--hours <N>Only include denials from the last N hours (default: 24)
--format <fmt>Output format: cedar, toml, or both (default: cedar)
--db <path>Path to blackbox database (default: ~/.local/share/navra/blackbox.db)
--agent <name>Filter by agent name
--min-count <N>Minimum denial count to suggest a rule (default: 3)

Configuration utilities.

Import MCP server configs from Claude Desktop, VS Code, or Codex.

navra config import-mcp [<path>] [OPTIONS]
OptionDescription
<path>Path to config file (auto-detects format)
--discoverAuto-discover config files in standard locations
--no-redactShow secret values instead of redacting them

List installed operator libraries and what they provide.

navra config list-libraries [OPTIONS]
OptionDescription
-c, --config <path>Path to config file

Export config as JSON (for TOML-to-JSON migration).

navra config export [OPTIONS]
OptionDescription
-i, --input <path>Source config file (default: auto-detect)
-o, --output <path>Output JSON file (default: ~/.config/navra/config.json)

Run autonomous self-improvement cycles (audit, fix, test, verify).

navra improve [OPTIONS]
OptionDescription
-t, --target <path>Path to the project to improve (default: .)
-c, --cycles <N>Number of improvement cycles to run (default: 3)
-b, --branch <name>Git branch name for the worktree (default: self-improve)
--config <path>Path to config file

Wrap an MCP server with a secure-by-default gateway in one command.

navra wrap [OPTIONS] -- <command> [args...]
OptionDescription
-b, --bind <addr>Bind address for the gateway (default: 127.0.0.1:9315)
-s, --safety <profile>Safety profile: standard, block, secrets-only, none (default: standard)
-n, --name <name>Name for the upstream server (default: derived from command)
--no-trayDisable system tray icon
--discoverConnect, list tools/resources/prompts, suggest policy, then exit
--allow-allSkip safety filters entirely (fast iteration, no content scanning)
--sandbox <type>Run upstream in a container sandbox (openshell or podman)
--allow-domain <domain>Allow egress to specific domains (repeatable, merged with auto-discovered)
<command> [args...]Command and args to start the upstream MCP server (required, trailing)

Example:

navra wrap -- npx @anthropic/mcp-server-filesystem /home/user/docs

Validate cognitive core cross-references.

navra validate-cognitive [OPTIONS]
OptionDescription
--cognitive-core <path>Path to cognitive core directory (default: ~/.config/navra/cognitive_core)

Interactive terminal UI dashboard.

navra tui [OPTIONS]
OptionDescription
-e, --endpoint <url>navra endpoint URL (default: http://127.0.0.1:9315)
-t, --token <token>Auth token (reads NAVRA_TOKEN env if not set)

Run the end-to-end security audit demo.

navra demo [OPTIONS]
OptionDescription
-p, --project <path>Path to the demo project (default: examples/payments-app)
--liveRun with a real LLM (requires Ollama or llama-server)
--model <model>Model to use in live mode (default: granite3.3:2b)
--max-rounds <N>Max analysis rounds (default: 3)
--files-per-round <N>Files per round (default: 5)
--min-delta <N>Min new findings to continue (default: 2)
--prompt <text>Custom prompt (overrides the default audit prompt)
--writableAllow write operations in the project directory
--allow-read <path>Additional directories to allow reading (repeatable)
--allow-write <path>Additional directories to allow writing (repeatable)

Deprecated aliases

The following commands still work but are deprecated. Use the replacements shown:

DeprecatedReplacement
navra servenavra mcp serve
navra stdionavra mcp stdio
navra runnavra agent run or navra flow run

These aliases are hidden from navra --help output and may be removed in a future release.