CLI (quameleon-qa)
quameleon-qa ships with @quameleon/qa-host. Run npx quameleon-qa --help for the full list.
doctor
Section titled “doctor”npx quameleon-qa doctor [--android-serial <S>] [--ios-udid <UDID>]Checks adb, attached devices, booted iOS simulators, that port 47321 is free, and existing adb forwards.
npx quameleon-qa test qa-tests --android-serial emulator-5554 [--package <PKG>] [--out qa-runs] [--junit junit.xml] [--var K=V]... [--no-replay]npx quameleon-qa test qa-tests --ios-udid booted [--bundle <BUNDLE_ID>] [--out qa-runs] [--junit junit.xml] [--var K=V]... [--no-replay]Runs scripted YAML tests (files, or every .yaml in a folder) and exits 1 if
any failed. The same file runs on both platforms when it sets app.android and app.ios (see
platform parity). With clear_state: true, --ios-udid also resets that Simulator’s
keychain (xcrun simctl keychain <udid> reset, every app’s items on it).
--var K=V sets a ${K} value; prefer exported environment variables for credentials, since command-line
arguments are visible in shell history and the process list. Values of variables named like *PASS*, *SECRET*,
*TOKEN* or *KEY* are redacted from all output.
record
Section titled “record”npx quameleon-qa record --android-serial emulator-5554 --package com.acme.app --out runs/1 --replay --syslognpx quameleon-qa record --ios-udid booted --bundle com.acme.app --out runs/2 --replayGenerates a token, launches the app with it, connects, and writes the session (signals, replay frames, layout
snapshots, assertions and, with --syslog, logcat or the simulator log) to --out. Options: --fps (default 2),
--activity, --ios-process, --port, --token, --blank-screen-ms.
On Android, record, listen --android-serial and test write the adb-only activation commitment
(settings put global quameleon_qa_token) before the launch and delete it after the hello and at the end of the run.
replay
Section titled “replay”npx quameleon-qa replay runs/1 --openWrites a self-contained replay.html with the player: frames, timeline, network, errors, vitals, spans, wireframes
and Copy agent prompt.

report
Section titled “report”npx quameleon-qa report runs/* --out report.html --k 5Groups problems across runs by fingerprint, and shows the steps that most often lead to each one, plus clean-run, crash-free and hang-free rates, launch percentiles and action latency.
symbolicate
Section titled “symbolicate”npx quameleon-qa symbolicate runs/1 --mapping mapping.txt --sourcemap index.android.bundle.map --dsym App.dSYM --ndk-symbols obj/Resolves R8, Hermes, atos and llvm-symbolizer frames locally. Nothing is uploaded.
profile
Section titled “profile”npx quameleon-qa profile --android-serial emulator-5554 --seconds 10 --package com.acme.app --out trace.perfetto-traceCaptures a Perfetto trace you can open at ui.perfetto.dev.
export
Section titled “export”npx quameleon-qa export --otlp https://otel.example.com runs/1 --header "authorization: Bearer …"Sends spans and traced requests as OTLP traces, and logs, errors, crashes, hangs and exits as OTLP logs.
listen
Section titled “listen”npx quameleon-qa listen --port 47321 --token <T>Prints signals as NDJSON from an app you launched yourself (on Android, provisioned as in Android setup).
npx quameleon-qa mcp --root runsAn MCP server on stdio for coding agents, with tools get_run, get_errors, get_network, get_signals,
get_layout and get_frame over the recordings under --root.
{ "mcpServers": { "quameleon": { "command": "npx", "args": ["quameleon-qa", "mcp", "--root", "runs"] } } }