Skip to content

Self-host with qa-cloud

@quameleon/qa-cloud is the open-source backend for production mode. It is a single Node process with SQLite (node:sqlite), and no other services. It implements the same device API as Quameleon Cloud (/v1/ingest, /v1/config) and a dashboard with crash-free sessions, error groups, user sessions and the replay player.

qa-cloud dashboard

Node 22.13 or later. Put it behind HTTPS in production; the SDK accepts plain http only for 127.0.0.1, localhost and 10.0.2.2.

Terminal window
npx quameleon-cloud app create "My app" --data ./cloud # prints api_key (shown once) and public_key
npx quameleon-cloud serve --port 8787 --data ./cloud # dashboard at http://127.0.0.1:8787
Command Notes
serve [--port 8787] [--host 127.0.0.1] [--data ./quameleon-cloud] [--retention-days 30] Runs the API and dashboard
app create <name> Prints the API key (only its hash is stored) and the public key
app list Lists apps and their remote config
app config <app-id> '<json>' Sets remote config, for example '{"enabled":true,"sample_rate":0.5,"config":{"console":true}}'

Dashboard and admin API auth: QUAMELEON_CLOUD_ADMIN_TOKEN, or a token generated into <data>/admin-token (at least 16 characters). The dashboard login takes any user name and that token as the password.

Quameleon.startProduction({ apiKey, endpoint: "https://quameleon.example.com", publicKey });

Request bodies up to 5 MB gzipped (20 MB inflated). Signals older than --retention-days are deleted.

Error group in qa-cloud

Everything is in <data>: cloud.db (SQLite) and the admin token. Back up the directory; the private keys that decrypt uploads are in the database.