Skip to main content
The Traycer CLI binary is traycer. It is used for host control, authentication, workspace/worktree operations, and agent automation.

Global Flags

FlagPurpose
--jsonPrint machine-readable output where supported.
--quietReduce normal output.
--no-progressDisable progress output.
--no-bootstrapSkip automatic bootstrap behavior.

Auth Commands

CommandPurpose
traycer loginAuthenticate the CLI.
traycer login --token <token>Authenticate with a token.
traycer login --token -Read the token from stdin.
traycer logoutRemove stored CLI credentials.
traycer whoamiShow the authenticated user.
CLI credentials are stored under ~/.traycer/cli/credentials.

Host Commands

CommandPurpose
traycer host startStart the host.
traycer host statusShow host status.
traycer host doctorDiagnose host setup.
traycer host restartRestart the host.
traycer host stopStop the host.
traycer host installInstall the host.
traycer host ensureEnsure the host is available.
traycer host updateUpdate the host.
traycer host uninstallUninstall the host.
traycer host uninstall --allRemove all host installs.
traycer host availableList available host versions.
traycer host logsShow host logs.
traycer host logs --tail <n>Show the last n log lines.
traycer host logs --followFollow host logs.
Useful options:
CommandPurpose
traycer host start --cwd <path>Start the host with a specific working directory.
traycer host install --release <version>Install a specific registry release.
traycer host install --from <path>Install from a local host archive.
traycer host ensure --forceRestart the host even if it reports active work.
traycer host ensure --no-service-registerInstall the host without registering the OS service.
The CLI discovers host connection metadata under ~/.traycer/host/. host install and host ensure accept either --release or --from, not both.

Service Commands

CommandPurpose
traycer service installInstall the OS service integration.
traycer service install --no-lingerLinux only: skip loginctl enable-linger.
traycer service install --allow-self-invocationDevelopment only: register the current CLI as the service command.
traycer service statusShow service status.
traycer service uninstallRemove the service integration.

CLI Commands

CommandPurpose
traycer cli upgradeUpgrade the CLI.
traycer cli upgrade --dry-runShow what would upgrade.
traycer cli upgrade --target <version>Upgrade to a target version.
traycer cli re-anchorRe-anchor the CLI install.
traycer cli re-anchor --binary-path <path> --installed-version <version>Point upgrade tracking at a manually installed CLI binary.

Config Commands

CommandPurpose
traycer config shell getShow shell config.
traycer config shell listList shell config.
traycer config shell setSet shell path or args.
traycer config shell set --path <path>Set shell executable path.
traycer config shell set --path <path> -- <args...>Store shell startup args. Pass args after -- when they start with dashes.
traycer config shell set --clear-argsClear shell startup args.
traycer config shell resetReset shell config.
traycer config env listList configured environment overrides.
traycer config env get --key <name>Show one env override.
traycer config env set --key <name> --value <value>Set an env override.
traycer config env unset --key <name>Explicitly unset an inherited environment variable.
traycer config env delete --key <name>Delete a configured override entry.
CLI config is stored under ~/.traycer/cli/config.json. Provider credentials are not CLI env vars. Configure provider credentials in Settings → Providers.

Workspace and Worktree Commands

CommandPurpose
traycer workspace listList known workspaces.
traycer workspace list --epic-id <id>List workspaces for a specific Task id.
traycer worktree createCreate a worktree for agent work.
traycer worktree create --workspace <path>Create from a workspace path.
traycer worktree create --source-branch <branch>Choose the source branch.
traycer worktree create --branch <branch>Choose the new worktree branch.
traycer worktree create --existing <branch>Check out an existing branch into a fresh worktree.
traycer worktree create --carry-uncommittedCarry uncommitted changes into the worktree.

Agent Commands

CommandPurpose
traycer agent listList reachable agents.
traycer agent createCreate a child agent.
traycer agent sendSend a message to another agent.
traycer agent transcriptRead an agent transcript.
traycer agent inboxInspect pending agent messages.
traycer agent selection-guideRead the agent selection guide.
traycer agent list-harness-modelsList models for a harness.
traycer monitorStream this agent’s inter-agent inbox messages.
Supported harness ids include claude, codex, opencode, traycer, and cursor. Supported surfaces are gui and tui. Supported agent modes are regular and epic. Common agent options:
OptionApplies ToPurpose
--epic-id <id>Most agent commands, monitor, workspace listTask context. Defaults to TRAYCER_EPIC_ID when the command runs inside an agent.
--sender-agent-id <id>agent list, agent create, agent selection-guide, agent list-harness-models, agent sendCalling agent. Defaults to TRAYCER_AGENT_ID.
--allagent listList all agents in the Task, not just agents belonging to the current user.
--surface <surface>agent createChild surface: gui or tui.
--harness <id>agent createCoding agent: claude, codex, opencode, traycer, or cursor.
--model <id>agent createModel id for the child agent.
--agent-mode <mode>agent createregular or epic.
--reasoning-effort <effort>agent createReasoning effort for supported models.
--fastagent createRequest fast mode for supported GUI models.
--cwd <path>agent createPrimary working directory for the child agent.
--workspace-path <path>agent createAdditional existing workspace path. Repeatable.
--workspace-entry <workspace=path>agent createExact workspace binding. Repeatable.
--to <agentId> / --message <text>agent sendRequired receiver and message.
--expect-reply / --response-id <id>agent sendOpen a reply thread, or close one with the final reply.
--agent-id <id>agent transcript, agent inbox, monitorTarget agent. inbox and monitor default to TRAYCER_AGENT_ID.
Provider hook commands such as agent title-from-hook, agent activity-from-hook, and agent turn-ended-from-hook are used by Traycer-launched Terminal Agents. They are not normal user workflows.

Environment Variables

The CLI uses runtime environment variables for noninteractive behavior and agent context.
VariablePurpose
CISignals CI/noninteractive environments.
TRAYCER_NONINTERACTIVEForces noninteractive behavior.
TRAYCER_CLI_VERSIONBuild-provided CLI version.
TRAYCER_AGENT_IDCurrent agent id in agent-run contexts.
TRAYCER_EPIC_IDCurrent Task id in agent-run contexts.
HOME / USERPROFILEUsed to resolve local Traycer paths.
Provider API keys and model credentials belong in provider setup, not in this CLI reference.