npx mailroom init
One command — sandbox key, env, SDK, optional MCP and AGENTS.md.
Not on npm yet
The CLI is not published, so npx mailroom does not work from npm yet. From
a checkout of the repo, run pnpm mailroom init --api-url https://api.mailroom.gosuevals.com/v1. Without
--api-url it targets a local API at http://127.0.0.1:8787/v1.
npx mailroom initIntended flags:
| Flag | Effect |
|---|---|
| (none) | Sandbox: POST /v1/signup/agent, write .env.local, install mailroom |
--mcp | Also write Cursor / VS Code MCP config |
--rules | Also write AGENTS.md (and .cursor/rules/mailroom.mdc when .cursor/ exists) |
--live | Refused until a human has claimed the org. Prints the claim URL instead. |
--yes | Non-interactive (for coding agents) |
What it writes
# .env.local (gitignored)
MAILROOM_API_KEY=mr_test_…
MAILROOM_ORG_ID=org_…
MAILROOM_AGENT_ID=agt_…
MAILROOM_INBOX=agent@…mailroom-mail.com// after init
import { Mailroom } from 'mailroom';
const mailroom = new Mailroom({ apiKey: process.env.MAILROOM_API_KEY! });It never prints the full key after the first screen, never commits .env.local, and never talks to SES. Sandbox uses FakeTransport.
If MAILROOM_API_KEY is already set, init is a no-op besides ensuring the SDK is installed.
Coding-agent contract
npx mailroom init --yes --mcp --rules is the one-shot a Cursor/Claude/Codex session should run. Do not scrape a dashboard. Do not invent mr_live_ keys.