Pytxo

CLI reference

pytxo subcommands, flags, and environment variables.

Binary: pytxo. This page describes 1.3.6.

Since 1.3 the CLI covers the whole loop: pytxo review and pytxo apply use the same reviewed-Apply path as Desktop, and pytxo land checks branches from any agent tool. pytxo hitl is the Galaxy approval queue, not Apply.

Default behavior

pytxo          # interactive Hypervisor Shell (TUI)
pytxo --help   # subcommand list

Set PYTXO_NO_TUI=1 to print help instead of launching the shell.

Commands

CommandDescription
pytxo land <branch>...Check agent branches as one combined change; land it with --apply (guide)
pytxo review <run>Show a finished run's prepared change, checks and digest; --refresh, --discard
pytxo apply <run>Write exactly the reviewed files; refused if anything moved
pytxo receiptsList, show and share landing and Apply receipts (receipts)
pytxo benchPybench: offline benchmarks of the landing gate (method)
pytxo login / logout / whoamiOptional account for perks (account)
pytxo initCreate .pytxo/ dirs and gitignore hint
pytxo doctorVerify git, PTY, approvals persistence, billing/cloud when enabled
pytxo runSchedule and execute agents in isolated copies
pytxo missionNatural-language mission: plan → approve → isolated run → review package
pytxo agentsList registered agent CLIs and PATH detection
pytxo accountsSeveral sign-ins per agent CLI (Claude Code, Codex) and which one new work uses
pytxo shellOne-shot shell without the TUI (--eval)
pytxo statusList runs and agents from SQLite
pytxo logs --agent <id>Tail stored stdout/stderr events
pytxo stopStop active run or all tracked processes
pytxo domainsList registered execution domains
pytxo projectMulti-root modular project manifest
pytxo fleetCross-repo fleet DAG
pytxo hitlGalaxy human-in-the-loop approval queue (risky commands; not Apply)
pytxo trust [tier]Trust repo folder (orbit, galaxy, ...)
pytxo providersProvider registry + key configured (boolean)
pytxo modelsList, search, or refresh model catalog

Shared flags

FlagCommandsDescription
--repomostGit repository root (default: cwd)
--configrun, status, logs, stop, shellPath to pytxo.toml
--jsondoctor, status, domains, mission, agentsMachine-readable output

pytxo review and pytxo apply

pytxo review <run-id>                 # files, checks on the combined change, digest
pytxo apply <run-id> --digest <sha>   # apply exactly that package
pytxo apply <run-id>                  # shows the package and asks before applying
pytxo review <run-id> --refresh       # re-prepare a stale review
pytxo review <run-id> --discard       # drop it; nothing is written

Apply authorizes the digest you were shown, never "whatever is latest". If the project changed after review, Apply refuses; refresh and review again. Every committed Apply writes a receipt.

pytxo land

FlagDescription
-c, --check <cmd>Command to run on the combined change (repeatable)
--per-inputAlso run the checks on each input alone
--applyLand a ready result (fast-forward or compare-and-swap)
--into <branch>Target branch (default: checked-out branch)
--base <rev>Check against another commit (shadow mode only)
--strictBlock when two inputs changed the same function or type
--timeout <s>Per-check timeout (default 900)
--json, --markdownFull receipt, or a pull-request summary

Exit codes: 0 ready or landed, 2 blocked, 3 stale.

pytxo bench

FlagDescription
--suite <name>land, overhead, signal or all (default)
--out <file>Write the JSON report
--jsonPrint the JSON report
--submitPublish the summary to the Pybench board (account perk)
--privateWith --submit: save the result to your account only, off the board (Pytxo Pro)

pytxo receipts

CommandDescription
pytxo receiptsList this repository's receipts, newest first (--json for machine output)
pytxo receipts show <id>Print one receipt (full id or unique prefix) and check its digest
pytxo receipts share <id>Publish counts and outcomes as a page (account perk)
pytxo receipts share <id> --include-pathsAlso publish the changed file paths
pytxo receipts share <id> --privateOnly you can open the page, signed in (Pytxo Pro)

pytxo mission

pytxo mission "Add input validation in src/api.ts"
pytxo mission "…" --yes          # skip interactive plan approve
pytxo mission "…" --json         # print plan JSON; no dispatch
pytxo mission "…" --ade claude   # preferred ADE id

--plan-file writes plan JSON before the approve step. After a successful Orbit or Galaxy run, review and Apply in Desktop — not with a CLI apply subcommand. See Review and Apply.

pytxo agents

Lists ADE CLIs from the registry and whether they are on PATH. --json for scripts.

pytxo accounts

Keep more than one sign-in for an agent CLI, such as a work and a personal Claude account. Each account is the CLI's own config folder under ~/.pytxo/agent-accounts/<cli>/<name>/, selected for each launch through the variable the vendor documents (CLAUDE_CONFIG_DIR, CODEX_HOME). Sign-in runs the vendor's own command; Pytxo never reads or copies the credentials it writes. default is the CLI's usual sign-in.

pytxo accounts list            # every account and its sign-in state
pytxo accounts add claude work # creates the folder, opens Claude Code sign-in
pytxo accounts use claude work # new work on Claude Code uses this account
pytxo accounts login codex     # sign the default Codex account in again
pytxo accounts remove claude work

A configured agent can pin an account in pytxo.toml with account = "work". Desktop shows the same accounts under Setup → Agent CLIs. Cursor Agent, Antigravity and Gemini CLI keep one sign-in per OS user, so they have no accounts list.

Every account must be yours. Provider terms forbid sharing an account and working around usage limits, so Pytxo never switches accounts on its own when one reports a limit; it tells you which account hit it.

pytxo shell

One-shot command without the Hypervisor Shell:

pytxo shell --eval "/dry-run"

pytxo run flags

FlagDefaultDescription
--agents3Max parallel agents per wave
--cmdecho pytxoShell command in each isolated copy
--dry-runoffPrint JSON execution plan
--keep-worktreesoffDo not remove isolated copies after run
--executionfrom configOverride pty, subprocess, or cloud
--adeunsetRegistry ADE id (e.g. cursor, claude)

pytxo project subcommands

SubcommandDescription
init <id>Create project manifest under ~/.pytxo/projects/
listList path roots for a project
paths --add <path>Add a path root
removeRemove a path root (by label or path)
statusRecent runs for the project primary domain
runCoordinated run across project roots

pytxo fleet subcommands

SubcommandDescription
init <id>Create fleet manifest under ~/.pytxo/fleets/
dry-runPrint fleet execution plan JSON
runRun fleet DAG with barrier sync
statusList fleet runs from hypervisor catalog

pytxo fleet run --continue-on-error continues later waves after a node failure.

pytxo hitl subcommands

Galaxy's approval queue for risky host actions. Approving a HITL request is not repository Apply.

SubcommandDescription
listPending approval requests
approve <id>Approve a request
deny <id>Deny a request

See Galaxy approvals and Review and Apply.

pytxo trust

pytxo trust orbit
pytxo trust galaxy --repo /path/to/repo

Tiers: deep_space, orbit, galaxy, supernova. See Permission tiers.

Environment variables

VariablePurpose
PYTXO_NO_TUISkip Hypervisor Shell; print help or run subcommands only
PYTXO_REPODefault git root (useful for MCP)
PYTXO_PLANNEREnable natural-language mission planner (1)
PYTXO_ULTRA_SESSIONBearer token for Ultra / Link reconcile when billing.mode = ultra
PYTXO_CLOUD_SESSIONBearer token for cloud execution when enabled
PYTXO_DEEPSPACE_WFPWindows DeepSpace WFP opt-in (1)

Provider API keys stay in their usual env vars (ANTHROPIC_API_KEY, OPENAI_API_KEY, ...). See Providers & BYOK.

Doctor checklist

pytxo doctor should pass before first real runs. Details: Doctor checks.

Agent IDs

Format: {run_uuid}:agent-N. Use with pytxo logs --agent.

See also: pytxo.toml · Fleet runs · Galaxy approvals · Review and Apply