The RunTools CLI (@runtools/cli) provides full access to the platform from your terminal. 35+ commands for managing sandboxes, agents, tools, secrets, SSH keys, and project deployment.
The CLI is not yet published to npm. Clone the repo and run via bun run src/index.ts, or build with bun run build and use the bundled dist/index.js.
# Login (opens browser for WorkOS device flow)runtools login# Create a sandboxruntools sandbox create --name my-env --template base-ubuntu# SSH into itruntools sandbox ssh my-env# Run an agentruntools agent run code-assistant --prompt "Create a REST API"# Deploy tools and agentsruntools deploy
runtools login # WorkOS device flow (opens browser)runtools logout # Clear credentialsruntools auth whoami # Show current user/orgruntools auth set-key <key> # Store API key (rt_live_xxx or rt_test_xxx)runtools auth status # Auth status details
Credentials are stored at ~/.runtools/credentials.json (mode 0600). Contains access token, refresh token, user info, and API key. Config at ~/.runtools/config.json.