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

Installation

The desktop app bundles the CLI, so you only need to install it separately for standalone, automation, or CI use. Install with npm (requires Node.js 20.18+):
Or with Homebrew on macOS and Linux:
Verify the install:
The npm package is @traycerai/cli.

Global Flags

Auth Commands

CLI credentials are stored under ~/.traycer/cli/credentials.

Host Commands

Useful options: The CLI discovers host connection metadata under ~/.traycer/host/. host install and host ensure accept either --release or --from, not both.

Service Commands

CLI Commands

Config Commands

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

Agent Commands

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: 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. Provider API keys and model credentials belong in provider setup, not in this CLI reference.