CLI reference

The smior command line: where it is, how to run it, and every command and flag, grouped by task.

On this page

Smior’s engine has a command-line interface. The extension uses it for everything it does, and you can use it for scripting, CI checks or a quick lookup from a terminal.

Running the CLI

The CLI ships inside the extension, at engine/dist/cli.js in the extension’s folder, for example:

~/.vscode/extensions/smior.smior-<version>/engine/dist/cli.js

Run it with Node.js:

Terminal
node ~/.vscode/extensions/smior.smior-<version>/engine/dist/cli.js <command> [options]

On this page, smior stands for that command. Smior records the current path in ~/.smior/runtime/current.json, under cli.

Which folder it works on

The CLI works on the current folder. Set SMIOR_ROOT to work on another folder.

Exit codes and errors

  • 0: success.
  • 1: an error. The error is also written to .smior/errors.log, with any argument you wrote shown only as its length.
  • 2: for smior verify, the result is BLOCKED; for smior consent, nothing was changed.

Index and context

Command What it does
smior init Detect the stack, index, and set up agent settings.
smior index [--progress] Index incrementally. --progress prints progress as JSON lines.
smior watch [--poll] Reindex live as files are saved. --poll uses polling.
smior context "<query>" [--budget N] Print a capsule. Budget defaults to 4,000.
smior symbols <pattern> Find symbols by name.
smior endpoints API routes and the client files that call them.
smior gist [--limit N] [--json] Write one-line file summaries (gists) with Smiormind, up to N files (default 30). Needs Smiormind running.
smior batch --stdin [--max N] [--json] Run several lookups from standard input in one bounded result (default 1,400 tokens).
smior languages [--json] List the 47 supported language families and formats.
smior repos [add <path>] Show or add repositories in a multi-repository workspace.
smior session [new] Show what the agent already holds, or start a new session.
smior checkpoint create|show [--json] Save or show the conversation’s working state, as before compaction.
smior compare "<query>" A before-and-after token demo for one capsule.
smior mcp Run as an MCP server over stdio. Your agent’s settings start this.

Memory and verification

Command What it does
smior memory session [--limit N] This session’s notes, as JSON.
smior memory search <words> [--limit N] Search saved notes, as JSON.
smior memory remember "<note>" [--file path] [--symbol name] Save a note.
smior verify "<task>" [--base <ref>] [--json] The completion check. Exits with 2 when BLOCKED.

Example, as a CI step:

Terminal
smior verify "Add rate limiting to the login route" --base origin/main

Logs

Command What it does
smior compress <file|-> [--max N] [--llm] Summarise a test or build log. - reads standard input. --llm allows Smiormind.
smior mind Smiormind’s backend and hardware check.

Savings, Insights and usage

Command What it does
smior savings [--period today|7d|30d|all] Savings for this folder.
smior savings evidence [--period session|today|7d|30d] [--json] The evidence behind confirmed savings.
smior activity [--json] [--limit N] [--enrich] | --detail <id> Recent activity, newest first (at most 200).
smior insights [--period session|today|week] [--json] Patterns in how your agents spend tokens.
smior insights dismiss <type> Never show that kind of insight again.
smior usage [--period P] [--json] Usage and savings per agent and model, in each billing unit.
smior usage billing <agent> <per-token|subscription|per-request> Answer how you pay for an agent.
smior prices [--json] The dated price table. Correct it in ~/.smior/prices.json.
smior stats A JSON snapshot used by the extension.
smior status [--period ...] The full JSON snapshot for the sidebar.

Agents and setup

Command What it does
smior agents [--only <id>] [--personal] [--all] [--json] Detect and set up agents. --all configures every integration; --personal writes to your user folder.
smior connect [--personal] [--detect] Connect detected agents.
smior nudge [--guard] [--remove] Tell agents to prefer Smior, and install hooks. --guard adds index-first search; --remove takes them out.
smior prereq [--json] Check what Smior needs on this computer.
smior doctor Diagnose setup.
smior fix [--check] [--guard] [--json] Find and repair setup problems. --check only reports.
smior advise [--json] Review editor and agent settings for token savings.
smior advise-plan --rule <rule> Show the exact change for one finding, without writing it.
smior advise-apply --rule <rule> Apply that change, with a backup.
smior advise-history Changes Smior applied.
smior advise-undo --id <id> Undo one applied change.
smior support Print a scrubbed support file.

smior advise rules include index-heavy-trees, gitignore-heavy-trees, cursor-indexing-ignore, claude-deny-secrets, smior-methods-off and polling-large-tree.

Account and plan

Command What it does
smior license Licence and account status for this computer.
smior license login password --stdin [--json] Sign in with email, reading the password from standard input so it never appears in your shell history.
smior license login google --start --json Begin browser-based Google sign-in.
smior license logout Sign out and free this device.
smior license refresh Check your plan now.
smior license repos List your active repositories and this folder’s state.
smior license repos id Print this folder’s repository id, without asking the server.
smior license repos release <id> Free a place; this folder claims it at once.

PXPipe

Command What it does
smior pxpipe Should you also run the image proxy?
smior pxpipe toggle on|off Turn compression on, or leave the proxy passing requests through.
smior pxpipe verify Prove the engine works and report real traffic.
smior pxpipe update Safely update Smior’s managed PXPipe copy.
smior estimate <file|-> Would imaging this text pay off?
smior hints "<query>" Which capsule parts are safe to image.

Codex and Kilo Code routes

The extension manages these routes for you, with internal subcommands it uses. The one for you to run by hand:

Terminal
smior pxpipe kilo stop --force

smior pxpipe kilo stop --force is the only way, other than a restart, to stop Kilo Code’s proxy.

Companions and coaching

Command What it does
smior companion <op> <id> --agents <a,b> [--trusted] Manage a companion. Operations: inspect, plan, apply, disable, remove, verify, capability, reconcile (the default). For Context7, apply also takes --disclosure-seen and --confirmed.
smior consent status|grant <id>|revoke <id>|delete-now [--yes] [--json] Consent purposes. smior consent status lists each purpose with the id that grant and revoke take. delete-now deletes only with --yes.
smior coach-home [sharing-preview] [--agents a,b] The coaching section’s data, as JSON.
smior coach-prefs [show|set|disable|enable|snooze|keep] [--workflow W-R|W-D|none] [--allow model@effort,...] [--exclude model,...] [--target model@effort] Coach preferences.
smior coach-share preview|seen|send Beta outcome sharing: preview, or send now.

Beta. smior coach-recommend [show|answer] shows the beta’s model suggestion for this workspace while you are in the beta.

Pre-release only. smior try-once … is only in the Smior 1.3 pre-release. smior coach-shadow [--limit N] is a research view that needs smior.experimental.enabled. smior rightsize … belongs to Right-size, which is not active in this release.

Compare mode (experimental)

Terminal
smior compare-mode preflight|start|end|status|disable|arm|candidates|pair|skip|report|export

See Compare mode.

Removing Smior

Command What it does
smior remove [--dry-run] [--json] Remove Smior from this workspace. --dry-run lists what would change.
smior remove --all [--dry-run] [--json] Remove Smior everywhere, including the shared Codex PXPipe route and Kilo Code’s PXPipe.
smior workspaces List the workspaces Smior has set up.
smior uninstall-all [--keep-indexes] What Smior: Uninstall… runs: stop Smior’s processes, remove its entries and ~/.smior.

See Uninstall and recovery.

Something missing, wrong or unclear on this page?

Send feedback

Checked against Smior 1.2.0 on 2026-11-25.

SMIOR