/boxel-cli:browser-sign-infrom boxel-cli
Signs a browser into the Boxel app as a boxel-cli profile using `boxel browse`, minting a Matrix login token for password-free sign-in on any host including Railway deployments and custom domains.
Ships in boxel-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Wraps boxel browse, which mints a Matrix login token from a saved profile and builds a host-app URL that redeems it on load. The browser comes up signed in as that profile, optionally deep-linked to a card. It never touches the sign-in page.
secure.stack.cards, secure.boxel.ai), which only listed app origins may frame; on an origin it doesn't list, the sign-in page's email/password area is blank. boxel browse --host-url skips the form entirely. Google SSO goes through Synapse rather than the frame, so it works there too (production's Synapse shows a confirmation page before it redirects to an origin it doesn't list).
secure.stack.cards lists staging's host PR previews (https://*.boxel-host-preview.stack.cards) and loopback origins. Any other origin, such as a Railway deployment or a custom domain, gets a blank password area until it is added to staging's --secureOriginAppOrigin by name.secure.boxel.ai lists only loopback origins, and nothing else is ever added. A preview, a Railway deployment or a custom domain against production always signs in with boxel browse --host-url or Google SSO.localhost or 127.0.0.1, any port, http or https) against staging or production doesn't need browse to sign in: both list loopback origins, so its email/password form works. If its password area is blank anyway, follow the local-host-against-remote skill in a cardstack/boxel checkout (.claude/skills/local-host-against-remote/SKILL.md), which covers the env vars that point the host at the environment and how to diagnose the frame.example-user/example-realm/Person/1 (owner, realm, then the card), not a path inside one realm. With no card path the app opens on the workspace chooser.When the user wants a browser signed in, run boxel browse for them. Don't hand them a command to run and paste. It is a one-time sign-in: the CLI passes the URL straight to the machine's default browser (open / xdg-open), so the login token never appears in the terminal output or the chat (when no launcher is installed, browse exits with an error rather than printing the URL), and the host strips it from the address bar once it is redeemed.
| Situation | Run |
|---|---|
| Staging or production, on its own host | boxel browse [card-path] --profile <id> |
| Local or custom host | boxel browse [card-path] --profile <id> --host-url https://localhost:<port>/ |
| Rate-limited | add --wait |
boxel profile list shows the profiles; match an account the user names ("my test account") to its ID there, and pass --profile even when it is the active one. A staging profile is @<user>:stack.cards, with realm server https://realms-staging.stack.cards/; a production one is @<user>:boxel.ai, with https://app.boxel.ai/. Without --host-url, the token is redeemed on the profile's realm-server origin (https://localhost:4200/ for standard local dev).
The browser that opens is the user's default browser, not one you drive. You can't see it, so a clean exit ("Opening as ") is all the confirmation you get: tell the user which account should be signed in and to say if the page shows otherwise.
A published-realm card URL needs no sign-in: boxel browse <published-url> opens it as-is.
Sign in the browser the work happens in. Sessions live in each browser's own storage, so signing in one doesn't sign in another.
| Browser | How |
|---|---|
| The user's default browser | boxel browse … --profile <id>, as above |
| A specific browser, such as Chrome for debugging | macOS: url=$(boxel browse … --profile <id> --print-url) && open -a "Google Chrome" "$url". Linux: google-chrome in place of open -a … |
| A browser you drive through the user's Chrome (an extension) | the Chrome row, then drive the tab it opens |
| A browser you drive that is separate from the user's (an in-app browser pane, a headless browser) | the user pastes the URL: see below |
In the Chrome row the URL goes from the CLI to Chrome through a shell variable, so it never reaches the output, and && stops Chrome opening when boxel browse fails (its error is on stderr). Run exactly that shape: never print $url, and don't add echo. Don't read the tab's address back to check it either. Chrome opens the URL in its last-used profile; if the user has several Chrome profiles, have them bring the right one forward first.
A browser you drive that isn't the user's. You would have to navigate it to the URL yourself, which puts the token in your hands, so don't. Open that browser on the host, run boxel browse … --profile <id> --print-url | pbcopy (or the platform's clipboard tool), and ask the user to paste into its address bar within 2 minutes. Pass --host-url when that browser is on a local or custom origin.
The login URL is a credential: until it is redeemed, anyone holding it signs in as that account. Running boxel browse without --print-url keeps it out of your hands, which is why that is the default.
--print-url output reach your terminal output. Send it straight into a browser launcher (url=$(…) && open -a … "$url") or a clipboard tool (| pbcopy), as in the table above.browse exits with an error and doesn't print the URL. Tell the user to run boxel browse on their own machine. Only a person at an interactive terminal gets the URL printed as a fallback.Minting is limited to about once per minute per account, a Matrix limit that can't be raised. Short waits retry automatically; --wait blocks for a longer one and retries once. A used or expired URL can't be retried: mint a new one.
Generated from the boxel-cli Commander tree by pnpm build:plugin. Edit prose outside the generated block — never inside it.
boxel browse [card-path]Open the Boxel app in your browser, already signed in as your active profile or the one --profile names (a published-realm card URL opens directly, no sign-in needed)
Arguments:
[card-path] — Card to open: a realm-relative path (opens signed in) or a published-realm URL (opens directly, no sign-in)Options:
--host-url <url> — Override the host app URL the token is redeemed against--print-url — Print the authenticated URL instead of opening a browser (for remote shells / agents)--wait — If login-token minting is rate-limited (~1/min per account), wait out the reported delay (or a full window when none is reported) and retry once instead of erroringbrowse won't fall back to the stored password. The user has to sign the profile in again with boxel profile add -u <id> --staging (or --production), which asks for the password: don't type or reuse it yourself. Try another profile meanwhile.boxel profile add -u <id> -p <password>: don't run that, and don't ask the user for the password. Handle it like the case above: the user runs boxel profile add -u <id> --staging (or --production) themselves, which prompts for the password.--host-url with exactly the origin you'll test on: http://localhost:4300/ and https://localhost:4300/ are different origins.--profile before minting.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cardstack/boxel --plugin boxel-cli10 skills in this plugin
/boxel-apiUse when calling Boxel realm-server APIs from code — primarily federated search across realms. Documents the boxel-cli programmatic surface (`BoxelCLIClient`) and the matching CLI commands. Read this whenever you need to query a realm's index./boxel-commandUse when running a Boxel host command via the realm server's prerenderer — invoking commands like `get-card-type-schema`, `evaluate-module`, `instantiate-card`, or any other module exposed at `@cardstack/boxel-host/commands/.../default`. Documents `boxel run-command` and the matching `client.runCommand()` method./boxel-file-structureBoxel File Structure RulesOther plugins' skills for the same job