Skip to main content

Overview

rusty-cli is a thin command-line interface for the rusty-server HTTP API. It wraps every API endpoint as a typed command and tracks the last active browser so you can omit the ID on repeated calls.

Installation

Configuration

The CLI reads config from three sources, in order of precedence:
  1. Command-line flags: --url, --api-key
  2. Environment variables: RUSTY_URL, RUSTY_API_KEY
  3. Stored config: ~/.rusty-cli.json (Windows: %USERPROFILE%\.rusty-cli.json)
Save the local server URL so you don’t have to pass it every time:
Set api-key only if your rusty-server config enforces X-API-Key:

Quickstart

Commands

Top-level

Browser Lifecycle

DOM Queries

Use find-node for a specific selector, or ui-map when you need to inspect the full accessibility tree before choosing a node ID.

AI & Logs

ID Resolution

Almost every browser subcommand takes an optional [id] positional. When omitted, the CLI uses the last execution_id returned from spawn, stored in ~/.rusty-cli.json. To target a specific browser without changing the stored default, pass the ID explicitly:

Notes

  • The CLI sends X-API-Key only when an API key is configured.
  • instruct is fire-and-forget: the server runs the AI loop in the background. Poll logs to follow progress.