gauge CLI is a typed client for the Gauge API. Use it for interactive work, repeatable scripts, and CI jobs. Agent execution stays in Gauge; the CLI only configures and launches work.
Install the CLI
The CLI requires Node.js 22.12 or later.gauge-agents skill for coding agents it detects, such as Claude Code and Codex. Set GAUGE_SKIP_SKILL_INSTALL=1 to skip this; CI skips it automatically. If you install with --ignore-scripts, add the skill yourself:
Give your coding agent instructions
gauge instructions prints guidance written for a coding agent that uses the CLI. Run it, or have your agent run it, before the first gauge command. The text ships inside the CLI, so it always matches the commands in your installed version.
Installed instructions do not update themselves. Run
--install again after gauge update.
Sign in
For a local terminal, use the browser flow:~/.config/gauge/credentials with permissions limited to your user. The GAUGE_API_TOKEN environment variable takes precedence over stored credentials.
Select an organization
One token can access every organization where you are a member.gauge orgs use writes the default organization to ~/.config/gauge/config.json. Override it for one command with --org:
Common workflows
Measure Agent Experience
Each eval saves a task, pass criteria, and run settings. Check those settings before you run it.--yes only in automation where you have reviewed the configuration and intended spend.
Measure Agent Preference
Agent Preference prompts measure which brands agents recommend or adopt.--scenario to run all scenarios and restart the cadence from now. Running selected scenarios leaves the schedule unchanged. A preference prompt with zero scenarios does not run on a schedule. Use gauge preference --help for prompt creation, markets, and run history.
Configure runs
Set an eval’s environment directly on create or edit. To compare another repository or tool setup, duplicate the eval in the app and edit the copy.
Use
--cadence none for manual runs or daily|weekly|monthly for recurrence. Settings you leave out of an edit stay the same. Use --clear-* flags to remove them. Credential creation and rotation happen in the web app; see Credentials.
Improve results
Diagnose a measurement and estimate the cost before you start an optimization:gauge instructions optimization.
Watch a run
watch follows the live event stream. logs prints the events available so far and exits. diff writes the run’s working-tree diff to standard output.
Apply a declarative configuration
Usegauge apply to launch work from a JSON specification.
Query analytics
Discover the available datasets and fields before you build a report.--explain to print the compiled query to standard error.
Script with JSON output
Read commands support--output json or -o json.
Environment and config
Manage local values with
gauge config get, gauge config set, and gauge config unset.
Exit codes
For failed or incomplete runs, see Run troubleshooting. For credit usage and recovery, see Billing and credits.
Discover commands
The CLI includes authentication, organizations, members, Agent Preference, evals, models, personas, skills, MCP servers, connections, repositories, runs, optimizations, batches, brands, tags, actions, dashboards, provider keys, billing, usage, statistics, queries, and local configuration. Shared presets/scenarios and shared cycles/schedules are retired. If an older script uses them or--one-off, update it to configure the eval or preference prompt directly. Upgrade with gauge update; use gauge --help to check the commands available in your installed version.