/boxel-cli:profilefrom boxel-cli
Manages boxel-cli profiles for credentials across users and environments. Lists, adds, switches, removes profiles, and migrates from legacy .env files.
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 profile, which manages credentials for different users and environments. Profiles live in ~/.boxel-cli/profiles.json (mode 0600).
| Ask | Run |
|---|---|
| "what profiles do I have?" / "who am I logged in as?" | boxel profile list |
| "log in" / "add a new account" | boxel profile add (interactive — preferred) |
| "do this as my staging account" (one command) | boxel <command> … --profile <profile-id> |
| "switch to my staging account" (from now on) | boxel profile switch <username-or-fragment> |
| "remove that old profile" | boxel profile remove <profile-id> |
| "import from my old .env" | boxel profile migrate |
Profiles use the Matrix ID format: @username:domain.
@username:boxel.ai@username:stack.cards@username:<env-slug>.localhostswitch accepts a partial match — boxel profile switch sarah is enough if there's only one profile matching sarah.
The active profile is one setting for the whole machine. boxel profile switch changes it for every terminal, script and agent session at once, so a switch made for one action also changes who every other running session acts as.
To act as a different profile for one action, use --profile with any command except boxel profile itself, and leave the active profile alone:
boxel realm create my-realm "My Realm" --profile @sarah:stack.cards
boxel realm push ./my-realm https://realms-staging.stack.cards/sarah/my-realm/ --profile @sarah:stack.cards
--profile takes the exact profile ID, as boxel profile list shows it. Partial matches aren't accepted.BOXEL_PROFILE=<profile-id> in the environment does the same for every command run with it, so it suits a script or a session that should always act as one account. --profile wins over it.Don't run boxel profile switch and then switch back to do something once as another account. Another session can run a command between the two switches and act as the wrong account.
boxel profile add targets production. --staging and --local pick another environment instead (at most one of --production / --staging / --local); there is no environment prompt.
With -u, the Matrix ID's own domain decides — boxel.ai, stack.cards, and localhost are recognized, and any other domain needs --matrix-url and --realm-server-url.
boxel profile add opens the browser, waits for the user to sign in there (password or Google), and then saves the profile. It waits up to 30 minutes for the browser, and the browser can only hand the sign-in to the command while it is still running.
Profile created in its output means it is done. If it was killed before printing that, the sign-in did not complete.boxel profile switch command to use.Signed in as line against the account the user meant. A Google sign-in whose email matches no account creates a new one. If it isn't the account they meant, tell the user before switching to it.--no-browser does the same. Those sign-ins need BOXEL_PASSWORD and -u, below.For automation, set BOXEL_PASSWORD in the environment instead of passing -p:
BOXEL_PASSWORD="..." boxel profile add -u @sarah:boxel.ai -n "Sarah - Prod"
-p works but exposes the password in shell history and process listings. Prefer BOXEL_PASSWORD.
For ephemeral environments (PR previews, branch deploys), BOXEL_ENVIRONMENT derives URLs from a slug:
BOXEL_ENVIRONMENT=my-branch boxel profile add -u @sarah:my-branch.localhost
# → matrix at https://matrix.my-branch.localhost
# → realm-server at https://realm-server.my-branch.localhost/
Override individually with --matrix-url / --realm-server-url if needed — these win over both BOXEL_ENVIRONMENT and the environment flags, field by field.
Generated from the boxel-cli Commander tree by pnpm build:plugin. Edit prose outside the generated block — never inside it.
boxel profile [subcommand] [arg]Manage saved profiles for different users/environments
Arguments:
[subcommand] — list | add | switch | remove | migrate[arg] — Profile ID (for switch/remove)Options:
-u, --user <matrixId> — Matrix user ID (e.g., @user:boxel.ai)-p, --password <password> — Password (for add command)-n, --name <displayName> — Display name (for add command)-m, --matrix-url <url> — Matrix server URL (for add command with non-standard domains)-r, --realm-server-url <url> — Realm server URL (for add command with non-standard domains)--no-browser — Sign in with a username and password in the terminal instead of opening a browser (for add command)--host-url <url> — Sign in on this origin's /cli-auth page instead of the realm server's secure origin (for add command)--production — Target production — the default (for add command)--staging — Target staging instead of production (for add command)--local — Target a local dev server instead of production (for add command)--json — Output the complete profile set as JSON (for list command)boxel profile list returns empty until boxel profile add is run at least once.boxel profile switch changes it for every open terminal and agent session. Use --profile for a one-off.migrate is a one-shot operation for users coming from the old .env storage. New users don't need it.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