CLI
Documentation

Version Latest

Command reference

Every neuralinverse command and subcommand, every global option, and the exit codes of each command family.

neuralinverse [options] [prompt]       Start an interactive session, optionally with a first prompt
neuralinverse -p "prompt" [options]    Run once non-interactively and print the result
neuralinverse <command> [args]

ni is the same program. neuralinverse --help prints the built-in help.

Commands

CommandWhat it doesPage
doctorCheck installation, configuration and connectivityInstall and update
setup [provider]Connect a model provider (key checked live, stored in your keychain) and pick defaultsProviders and models
models [provider]List models available from configured providersProviders and models
config [show|path|validate]Inspect the effective configurationSettings reference
settings export <file>, settings import <file> [--replace], settings sync [--repo <git-url>]Move settings, key bindings, commands, agents, skills and styles between machinesSettings reference
sessionsList saved sessions for this folderSessions and context
sessions export <id> --html [--out file]Write a session as a self-contained HTML pageSessions and context
login [--base-url URL] [--device | --browser] [--no-browser]Sign in to GovernSign in to Govern
logoutSign out (revokes the session, deletes local tokens)Sign in to Govern
whoami [--json]The signed-in account, device and policy stateSign in to Govern
account [show] [--json]Your account as the Editor and the Agents app show itSign in to Govern
policy [show|refresh]Show or refresh your organisation's signed policySign in to Govern
context <status|retrieve|attributions|memory|work|overlap|agent-files|watch>Govern's Context Platform for this folderOrganisation context
gov <gate|release|approvals|policy|hooks|trace|hook|trailer>Organisation governance: gates, approvals, policy, git hooksPermissions and modes
checks run [paths] [--staged | --all] [--format text|json|sarif] [--gate agent|commit] [--out file]Check changes against your organisation's rulesChecks
checks statusEngine and packs, policy, waivers, last runChecks
checks hook install [--force], checks hook uninstallThe pre-commit gateChecks
activity [status|log [n]|flush|purge]What activity capture records and sendsActivity record
mcp list, mcp add <name> [--user] [KEY=VALUE...] -- <command> [args...], mcp add <name> --url <url> [--sse], mcp remove <name> [--user], mcp login <name>, mcp logout <name>Manage MCP serversMCP servers
plugin [list|install|uninstall|update|enable|disable|info|validate]Manage pluginsPlugins
env, env set <none|embedded|hdl>Show or set the project's developer environmentFirmware and hardware environments
team "<goal>" [--allow-dirty] [--apply] [--max-tasks n] [--concurrency n]Split a large task across parallel agents in git worktreesGoals, team runs and schedules
schedule [add|list|remove|run|tick|daemon|install]Run goals on a cron scheduleGoals, team runs and schedules
serve [--port n] [--host h] [--root dir] ...Run the HTTP and SSE APISDK, server and embedding
web [serve options] [--no-open]Run the API with the browser interface and open it, signed inWeb interface
acpRun as an Agent Client Protocol agent on standard input and outputEditors
host [--stdio | --socket <path> --token-file <file>]Serve an embedding hostSDK, server and embedding
eval [run|report|list|validate]Measure the agent on the eval tasksEvals

neuralinverse context help, checks help, serve help and eval help print the options of those commands; neuralinverse gov without arguments prints its help.

Global options

OptionMeaning
-p, --printNon-interactive mode; prompt from the arguments and/or standard input
--output-format <f>text, json or stream-json (with --print; default text)
-m, --model <ref>Model as provider/model
--mode <mode>ask, auto-edit, read-only, full-auto
--allow <rule>Allow rule for this run (repeatable)
--deny <rule>Deny rule for this run (repeatable)
-c, --continueContinue the most recent session in this folder
-r, --resume [id]Resume a session by id or a short prefix of it; a picker if omitted
--max-turns <n>Maximum model turns per prompt
--max-cost <usd>Stop once this session's estimated cost reaches the amount (exit code 3 with --print)
--max-time <minutes>Stop once this session has run this long (exit code 3 with --print)
--reasoning <level>off, low, medium, high
-C, --cwd <dir>Run as if started in that folder
--add-dir <dir>Let tools use an extra folder (repeatable)
--config <file>Load an extra settings file (repeatable)
--mcp-config <file>Load MCP servers from a JSON file {"mcpServers": {...}} (repeatable)
--no-mcpDo not start MCP servers
--fullscreenUse the full-screen interface
--inlineUse the inline interface (the default)
--append-system-prompt <text>Extra instructions appended to the system prompt
--intent <ref>The work item or change request this session serves (PROJ-123, #12, AB#7, an https link), for policies that require one
--no-session-persistenceDo not save this session
--goal <objective>Work unattended toward an objective (default mode auto-edit)
--goal-resume <id>Continue a goal run
--checkpoint-every <k>With --goal: commit a snapshot to ni/goal/<id> every k iterations (0 = off)
--verboseProgress on standard error in --print mode
--debugDiagnostic details on errors
-v, --versionPrint the version
-h, --helpShow help

Options take their value as the next argument or after = (--model=openai/gpt-5). -- ends the options.

The built-in help lists login [--issuer URL]; that flag is retired and refused. Use --base-url.

Exit codes

Command familyCodes
Sessions and -p0 success; 1 error, turn limit or refusal; 2 invalid usage; 3 cost or time limit reached (with --print); 130 interrupted
account show0 signed in; 1 signed out or the session has ended; 2 usage error
context0 done; 1 Govern unreachable or error; 2 usage error; 3 overlaps with --strict-exit; 4 needs a person; 5 not signed in; 6 refused by your organisation. See Organisation context
checks run0 passes; 1 blocked; 2 blocked only because an analyser failed under checks.failClosed
gov0 pass; 1 refused or failed; 2 error or tampering found

Last reviewed 17 October 2026View as Markdown

Command reference · Docs · Neural Inverse