Command reference

Complete reference for all a13n-harness-ui CLI subcommands, global flags, and interactive TUI slash commands (/agent, /model, /steer, /goal, /resume).

Shell commands start and manage Harness UI. Slash commands control a conversation inside the TUI. Start with the task below, then use the reference for exact arguments.

I want to…CommandWalkthrough
Configure my first Agenta13n-harness-ui setupFirst setup
Chat in the terminala13n-harness-uiTUI use
Chat in a browsera13n-harness-ui webuiWebUI
Connect an ACP editor/clienta13n-harness-ui acpAgent Client Protocol
Run one prompt from a scripta13n-harness-ui run "PROMPT" --format jsonAutomation
Find or validate my filesa13n-harness-ui config path / config validateConfiguration
Inspect local executiona13n-harness-ui environment statusEnvironments
Inspect authenticationa13n-harness-ui auth statusModels and accounts

Shell invocation

Terminal
a13n-harness-ui [GLOBAL OPTIONS] [COMMAND] [COMMAND OPTIONS]

Put global options before the command. For example, this validates an alternate configuration tree:

Terminal
a13n-harness-ui --config ./a13n-harness-ui.yaml config validate

Omit COMMAND to open the TUI. Use -h or --help at any level, such as a13n-harness-ui run --help. Help and --version exit before initializing the App, database, Model, or Environment.

Arguments in capitals are values you supply. Square brackets mark optional arguments in syntax descriptions. Tables distinguish parser defaults from settings loaded from configuration.

Global options

OptionValueEffect when supplied
--configYAML pathSelect a configuration tree; the default root is ~/.a13n-harness-ui/a13n-harness-ui.yaml.
--data-rootDirectory pathOverride the local data root.
--resumeThread IDOpen a saved conversation.
--agentAgent IDSelect the Agent for a new conversation.
--environment-modefull-control, sandboxSelect a built-in mode for a new conversation.
--environment-profileProfile IDSelect a custom profile for a new conversation.
--displayconcise, detailedOverride display.mode; the configured default is concise.
--no-update-checkFlagSkip startup update detection for this invocation.
--versionFlagPrint the installed version and exit.

These options are unset by default; flags default to false. --environment-mode and --environment-profile are mutually exclusive. --resume cannot be combined with new-conversation Agent, Environment, or title overrides. Resume first, then change the selection in the TUI.

Commands

Each heading below names a subcommand after a13n-harness-ui. Where --format text|json is listed, it defaults to text. Authentication and plugin commands can change local stores; config queries also open application state.

webui

Start the foreground browser server. Complete the WebUI access setup before exposing it to other machines.

OptionDefaultPurpose
--host ADDRESS127.0.0.1IPv4 or IPv6 listener address.
--port PORT8765TCP port, from 1 through 65535.
--apikey KEY, --api-key KEYUnsetOverride A13N_HARNESS_UI_API_KEY; the value is visible in shell arguments.
--dangerous-skip-permissions, --dangerously-bypass-permissionOffDisable Web authentication, leaving Agent permissions unchanged.
--share-computer / --no-share-computerEnabledShare Host Files, Git Changes, and Terminal as the server OS account.
--browser-no-sandbox / --browser-sandboxSandbox enabledOverride A13N_HARNESS_UI_BROWSER_NO_SANDBOX.

--no-share-computer also disables the Host Browser drawer, discovery, and browser automation. Host sharing is independent of Agent permissions.

Run the browser Host as a non-root user with Chromium's sandbox enabled. Disabling the sandbox is an explicit choice for a separately isolated Host; root is rejected without that choice. --browser-sandbox restores protection even when the environment variable disables it. Configure Browser executable overrides separately.

envd update

Update the native Envd installation without opening the App. Stop daemons using that installation first. With no executable override, the command prepares the managed version selected by the Python client.

OptionDefaultPurpose
--executable PATHUnsetUpdate the standalone executable at PATH.
--version VERSIONUnsetChoose an exact native version; managed installations stay pinned to the client version.
--checkOffInspect the update without installing.
--forceOffReinstall the selected version; cannot be combined with --check.

See Envd maintenance for the update workflow.

update

Upgrade the current uv-tool installation immediately. This command takes no additional arguments and does not ask for a second confirmation. It starts neither the TUI nor setup.

setup

Run the interactive first-setup flow for a Model, context budget, and execution permissions. Add --advanced to choose context, reasoning, tool review, subagents, and instructions explicitly.

add agent

Create another Agent while preserving existing Agents and defaults. Add --advanced to customize reasoning, tool review, and instructions.

add model

Create a reusable Model without creating or changing an Agent. Add --advanced to customize subscription context and reasoning settings.

run

Submit one prompt and exit after its operation. Use --format json when a script needs the Thread ID, status, or structured outcome.

Terminal
a13n-harness-ui run "Reply with one short sentence." --format json
Argument or optionDefaultPurpose
PROMPTRequiredPrompt text; quote it when it contains spaces.
--resume THREAD_IDUnsetContinue a saved Thread.
--agent AGENT_IDUnsetChoose an Agent for a new Thread.
--environment-mode MODEUnsetChoose full-control or sandbox for a new Thread.
--environment-profile PROFILE_IDUnsetChoose a custom profile for a new Thread.
--title TITLEUnsetName a new Thread.
--format text|jsontextChoose the output format.

run always runs unattended. Use an interactive surface for work that requires approval. run --resume keeps the Thread’s saved Project and roots. If a saved decision blocks admission, resolve it in an interactive surface before retrying.

acp

Serve Agent Client Protocol v1 over stdin and stdout on macOS and Linux (diagnostics go to stderr).

OptionDefaultPurpose
--unattendedOffFilter tools requiring human input instead of forwarding one-shot permission requests to the client

Global --config, --data-root, and --no-update-check flags apply before acp; --resume, --agent, --environment-mode, and --environment-profile are rejected because ACP selects Threads over the protocol and uses configured Agent and Environment defaults.

config path

Print configuration_path and data_root. Use the first value to locate the root YAML and its sibling resource directories. Accepts --format text|json.

config validate

Validate the selected source tree and report local YAML/schema errors or Capability warnings (--format text|json). Send a test prompt afterward to verify provider or MCP connectivity.

config show

Inspect the accepted configuration. Accepts --format text|json. If a file edit failed validation, the accepted generation can differ from the files currently on disk.

config subagents

List the package-owned subagents and whether each is included. Accepts --format text|json.

import subagents

Preview conversion of external subagent definitions. Review the candidates before repeating with --apply to write ready imports.

Terminal
a13n-harness-ui import subagents --product codex --scope project --project-root .
OptionDefaultPurpose
--product PRODUCTRequiredclaude-code, cursor, or codex.
--scope SCOPERequireduser or project.
--project-root PATHUnsetSource directory; required for project scope.
--user-home PATHYour homeSource home directory for user scope.
--applyOffWrite every ready candidate.
--format text|jsontextChoose the output format.

Importing writes the converted subagent files; select the ones you want in Agent configuration.

plugin install

Install a Content Plugin from Git: plugin install REPOSITORY. Use --plugin ID when the repository has several plugins, and --ref REF to select a branch, tag, or commit. Both options are unset by default. Accepts --format text|json.

plugin list

List installed Content Plugins and their editable directories. Accepts --format text|json.

plugin uninstall

Delete a plugin with plugin uninstall PLUGIN_ID. This permanently removes its installed directory, including local edits, without another confirmation. Back up edits before running it. Accepts --format text|json.

environment list

List available Environment modes and profiles. Accepts --format text|json.

environment status

Inspect the local Envd installation and runtime state. This performs no download, daemon start, or desktop permission request. Accepts --format text|json.

environment check

Prepare a built-in profile and check readiness without changing the saved default. Preparation can download the matching Envd version.

Terminal
a13n-harness-ui environment check --profile environment-envd

--profile accepts environment-native, environment-envd, environment-desktop, or environment-sandbox; the default is environment-envd. Also accepts --format text|json. Exit code 0 means ready; 1 means preparation failed.

For environment-desktop, first enable Computer Use in Runtime settings and restart Harness UI. The check may request OS permissions on the Harness Host. See local Envd setup.

environment configure

Prepare a profile, then save it as the new-conversation default. --profile is required and uses the same choices as environment check. Also accepts --format text|json.

Success exits 0; preparation failure exits 1 and preserves the old default. Existing Threads keep their selections. Desktop preparation has the same prerequisites as environment check.

doctor

Inspect App and extension diagnostics. Accepts --format text|json. Use troubleshooting to choose the next check from the reported symptom.

extensions

List installed extensions and OAuth Model Provider diagnostics. Accepts --format text|json.

auth status

Inspect Model authentication: auth status [PROVIDER]. The optional provider is chatgpt, codex, grok, copilot, or the key of an installed OAuth Model Provider. Accepts --format text|json.

auth key list

List saved API-key references without returning secret values. Accepts --format text|json.

auth key set

Store a key with auth key set REFERENCE, for example auth key set key-primary. Enter the secret at the hidden prompt; the command line contains only the reference.

auth key delete

Delete a key with auth key delete REFERENCE. The command asks for confirmation unless you add --yes. Models that refer to the deleted key will need a replacement before they can authenticate.

auth sources

List account sources with auth sources PROVIDER. The parser accepts chatgpt, codex, grok, and copilot; Copilot supports source/account selection, and ChatGPT supports native registration selection. Accepts --format text|json and does not reveal credentials.

auth select

Replace the account/source binding in this data root. First run auth sources copilot, then select a listed login:

Terminal
a13n-harness-ui auth select copilot --source native --account YOUR_GITHUB_LOGIN

PROVIDER, --source, and --account are required. --source accepts native or copilot_cli_file; the Host resolves the file path. Provider syntax is the same as auth sources. Copilot supports both sources; ChatGPT uses native with a registration key returned by auth sources chatgpt. Accepts --format text|json.

auth logout

Remove selected local credentials with auth logout PROVIDER, using chatgpt, codex, grok, copilot, or the key of an installed OAuth Model Provider. For a plugin, this signs out its default account. Accepts --format text|json.

For a shared Copilot CLI file source, logout also removes the selected account's supported token fields from that file, affecting Copilot CLI. Other accounts stay intact; the Host does not select a fallback source.

login

Authenticate with login PROVIDER, using chatgpt, codex, grok, copilot, or an installed OAuth Model Provider key.

OptionDefaultPurpose
--allow-account-switchOffPermit replacement of a different stored account.
--device-code / --browser--device-codeChoose device authorization or a local browser callback.
--method device|browser|manual_callbackProvider defaultChoose a declared OAuth method.
--format text|jsontextChoose the output format.

ChatGPT uses callback-URL paste for the default flow. Local browser callbacks are supported for Codex and Grok. Copilot supports device authorization only and uses the public Copilot App identity by default; subscribers need not register an OAuth App. See Copilot setup for permissions and compatibility.

Slash commands

Type these in the TUI composer. Use Tab to complete arguments, /help or /? for help, and /help COMMAND for one command. Run setup and login from your shell, and answer pending approvals or questions through the TUI's interactive prompt selectors.

The tables group commands by task. “Busy” means the parser allows the command during work; the target must still be available. Enter while busy sends draft text and attachments as steering.

Conversation and input

CommandBusyUse
/newNoStart a new conversation; retain saved history.
/resume [thread-id]NoSearch, preview, name, or reopen a saved conversation.
/historyNoBrowse retained messages; also available with Ctrl+T.
/notesNoRead saved notes within display budgets.
/goal task descriptionNoStart goal-driven work with audits and bounded continuations.
/attach pathYesAdd a file or image to the draft.
/paste-imageYesRead an image from the TUI Host's clipboard.
/recoverNoRestore an unsent prompt.
/review request-idNoInspect a pending request against the selected continuation.
/steer messageYesSend guidance to a steerable root operation.
/cancelYesStop the active Run.
/quit, /exitYesExit the TUI; retain saved conversation state.

/steer preserves its trailing message, including quotes and line breaks. Steering follows global input.steering_mode: immediate interruption or cooperative handoff by default, or queued for the next safe boundary. /cancel also suppresses automatic tool-completion wake until new input; it does not replace separate tool cancellation.

Model and Environment selection

CommandBusyUse
/agent [agent-id]NoSelect an Agent with its Model, instructions, and tools.
/model [model-id|default|defaults]NoOverride the Model, restore the default, or configure global media understanding.
/fast [on|off|ultrafast|reset]NoChoose session-local Fast/Ultrafast settings.
/pro [on|off|reset]NoChoose Pro/Standard reasoning or inherit the Model.
/thinking [level]NoChoose the Model's supported reasoning effort.
/environment [mode]NoChange local execution for subsequent turns.
/importNoPreview and optionally enable external subagents with parent inheritance.
/configNoLocate configuration files.

/model remembers the override for the Project; default clears the session override and remembered choice. defaults opens the global media-understanding editor with Save/Cancel. Fast choices remain session-local.

/thinking and completion use the selected Model's supported choices. default inherits configured settings. Depending on the adapter, explicit levels can include off, minimal, low, medium, high, xhigh, and max. Unknown models offer only default with an explanation; unsupported levels are rejected.

/environment accepts full-control, envd, desktop, or sandbox where supported. envd and desktop prepare the runtime before updating the current Thread's next-turn profile (leaving global new-conversation defaults unchanged); failure preserves the previous selection.

Status and presentation

CommandBusyUse
/help [command], /?YesShow help and shortcuts.
/mode [concise|detailed]YesSwitch TUI display verbosity (concise or detailed).
/theme [auto|dark|light]YesChange the TUI theme.
/mouse [on|off]YesToggle wheel capture; off allows native text selection/copy.
/statusYesInspect Model, context, Environment, and subscription usage.
/psYesInspect observed processes and last reported status.
/executions [offset|cancel execution-id]YesPage through retained tool executions or request cancellation.
/subagents [execution-id|next]YesInspect child executions and retained output.
/usage [all|root|subagents|details|subscription|accounts|reset]YesInspect Thread usage, subscription limits, accounts, or confirmed Codex reset credits.

/usage details adds Run attribution; all, root, and subagents select usage scope. Subscription limits are separate from Thread token and cost totals. /executions reads process-local status without consuming results; cancel execution-id requests cancellation of that retained execution. See tool execution controls.

Consequential actions and limitations

ActionBefore you use it
plugin uninstallBack up local plugin edits; deletion is immediate.
auth key delete --yesConfirm the reference; this flag skips the prompt.
update, envd updateExpect installation without a second confirmation. When an update notice appears, run a13n-harness-ui update to install the new release.
import subagents --applyInspect the preview first; this writes imported files.
runAlways unattended. Resolve pending decisions in an interactive surface.
webui --dangerous-skip-permissionsDisables WebUI HTTP authentication only; Agent tool permission checks continue to apply.

Task-oriented guides

On this page