QX CLI features, local & remote.

Two command-line tools in one install: qx-run for local coding agents routed through Singapore, and qx-harness for managed remote sessions over your local folder.

$curl -sSL https://qx.dev/install.sh | sh
QX-RUN · NATIVE SPEED

Local agents through Singapore

Run Claude Code, Codex, OpenCode, or Aider directly on your laptop at native disk speed while routing model calls and outbound HTTPS through Singapore.

  • Zero remote file upload — edits stay on local disk
  • Routes model traffic through api.qx.dev and harness.qx.dev
  • Works with your existing QX API key and repositories
$qx-run claude
QX-RUN · BILLING

Unified balance, spend caps & logs

Meter every local agent session against one prepaid QX balance with per-key spend caps and append-only activity logs.

  • Enforces per-key spend caps with clear terminal notices
  • Records model calls and command runs automatically
  • Covers Claude Code, Codex, OpenCode, and Aider
$qx-run codex
QX-RUN · --SANDBOX

Local command sandbox

Confine local agent writes strictly to your active workspace folder and block access to credential directories.

  • Restricts writes to the active repository directory
  • Blocks ~/.ssh, ~/.aws, ~/.gnupg, and system keychains
  • Combines with every agent supported by qx-run
$qx-run --sandbox claude
QX-RUN · --SHARE

Live terminal sharing

Share read-only or interactive co-pilot links straight from local qx-run sessions with expiring tokens.

  • Mints expiring tokens straight from your terminal
  • Supports read-only observation or interactive co-pilot
  • Revoke active relays anytime from /run or /sessions
$qx-run --share claude
QX-HARNESS · REMOTE

Managed remote harness over local files

Run managed remote QX harness sessions while keeping workspace files and shell tools on your machine with zero cloud source uploads.

  • Files and build tools remain on your local machine
  • Named multi-workspace sessions across repos
  • Manage, freeze, kill, or reset sessions at /sessions
$qx-harness --session web
QX-HARNESS · AUTO-PAUSE

Instant pause on disconnect & auto-reconnect

Pause remote sessions immediately on disconnect or laptop sleep for zero idle spend, then resume cleanly across Wi-Fi switches.

  • Zero idle charges when you close your laptop lid
  • Automatic state resume on reconnect
  • List or stop named sessions with qx-harness ls / kill
$qx-harness ls
QX-HARNESS · .QXIGNORE

.qxignore secret shield & approval gate

Hide .env, private keys, and cloud credentials by default, and prompt locally before destructive commands or sensitive writes.

  • Blocks .env*, *.pem, *.key, id_rsa, and .aws/credentials
  • Approve once (y), for session (s), or deny (n)
  • Lock any session read-only with --exec-policy readonly
$qx-harness --exec-policy prompt
BRIDGES · --CDP

Local Chrome, Arc & Brave control

Connect harness sessions to your running local Chromium browser so agents reuse active sign-ins without copying cookies or passwords.

  • Reuses active SSO and 2FA tabs on localhost
  • Explicit host allowlist enforced locally
  • Pair with -L 3000:3000 for live dev-server preview
$qx-harness --cdp -L 3000:3000
BRIDGES · MCP HUB

Local MCP hub & desktop helpers

Connect Notion, Linear, Slack, Figma, Obsidian, and local database MCP servers while keeping OAuth tokens strictly on your computer.

  • Configured locally in ~/.qx/mcp.json
  • Built-in qx-open, qx-clip, and qx-notify helpers
  • Includes qx-search, qx-browse, qx-docs, and qx-watch
$qx-browse http://localhost:3000 --viewport 390x844
SESSIONS · SHARING

Expiring share links & one-command update

Mint read-only or co-pilot invite tokens from terminal or /sessions, revoke immediately, and self-update both CLIs in place.

  • Sign in via Google, GitHub, email OTP, or API key
  • Attach teammates with qx-harness attach <token>
  • Update qx-run and qx-harness with qx-harness update
$qx-harness share --mode readonly --ttl 3600