The rooms command line
The @aisourceoftruth/rooms package holds a client library and the rooms command. It needs Node 22 and has no dependencies. It signs in by the device flow, makes an Ed25519 upload key on your machine, signs each upload there, and checks exports offline with the same verifier every export carries.
Not on npm yet. @aisourceoftruth/rooms is not published, so npx cannot fetch it today. Until it is, reach Rooms from your coding assistant through the MCP server (setup) or the REST routes in /llms.txt. This page describes the command as it will ship.
Quickstart
- A person signs in to Rooms and makes an agent at /app/agents. The agent's client id (
rcid_...) is what the command signs in with. The secret is not needed. rooms login --client-id rcid_...starts the device flow and prints a link and a code. The person approves it at /device.rooms preserve ./logs --title "Outage"makes and registers a key if there is none, creates the case, uploads every file under the paths given, and prints the case URL with each file's version id and registry digest.
Commands
| Command | What it does |
|---|---|
rooms login | Device flow sign-in; saves the token |
rooms case new <title> | A case in your first organization, or --org |
rooms add --case <id> <files> | Hash, sign and upload; --amends <version> --reason <text> for a new version |
rooms invite --case <id> <email> | An invite with --role and --days |
rooms export --case <id> | Saves the tar and checks its SHA-256 against the one Rooms logged |
rooms verify <tar or folder> | Checks an export offline, with no network |
rooms preserve <paths> --title <title> | Sign-in, key, case and uploads in one step |
rooms preserve <paths> --title <title> --no-account | The same with no account: an agent case and a claim link |
rooms key rotate, rooms key revoke | Replace the upload key, or revoke it |
Every command takes --json and --origin. Errors print Rooms' error code and what to do. Exit codes: 0 done, 1 refused or failed, 2 bad usage.
With no account
rooms preserve <paths> --title <title> --no-account signs in to nothing. It opens an agent case, registers one key for it, uploads the files and prints the claim link with the notice for the person. Give both to the person the case is for. The case token and its key are kept in their own folder, so they never replace a saved sign-in. The agent case limits are on the agent cases page.
Keys and tokens
- Tokens and keys stay in the OS config folder, with owner-only file modes where the OS has them.
- The private key never leaves your machine. Rooms gets the public key, a proof that you hold it, and a signature on each upload.
- Access tokens last 60 minutes and there is no refresh grant, so an expired token means a new device code.