Local development and testing
Develop against a server only you use. You publish, review and install there as often as you like, then submit the finished version to a shared server once.
Your own server
From the checkout root, with Node.js 24.15 or later and Docker Compose 2.24.4 or later:
node infra/superbot/host.mjs init
node infra/superbot/host.mjs up
node infra/superbot/host.mjs status
- The web app is at
http://127.0.0.1:5173. Useinit --port PORTfor another loopback port. node infra/superbot/host.mjs logsshows startup output.downstops the stack and keeps its data.- For a second stack, pass a unique
--project NAMEand a separate--env FILEto every command. - On Windows without Docker,
infra/superbot/windows-local.ps1 startruns the same services from the workspace.
Point both command-line tools at it:
superbot server http://127.0.0.1:5173
superbot login
Become a reviewer
Reviewing needs a verified account whose email is in SUPERBOT_ADMIN_EMAILS. Without mail, create a verified account with the bootstrap command:
- In
.env.superbot.local, setSUPERBOT_ADMIN_EMAILSto your email. Separate several reviewers with commas. - Export
OWNER_EMAILandOWNER_PASSWORD(at least 16 characters), runnode infra/superbot/host.mjs account, then remove both variables from your shell. - Run
node infra/superbot/host.mjs upto apply the setting.
The account can then open Review in the store and run superbot-plugin list submissions.
The edit loop
Approved versions never change, so each change is a new version number. On your own server that costs a few seconds:
superbot-plugin validate
superbot-plugin publish water-log 2
superbot-plugin review VERSION_ID approved
superbot-plugin switch-version INSTALLATION_ID CURRENT_VERSION_ID VERSION_ID
superbot-plugin set-grants INSTALLATION_ID BOT_ID drinks
Switching keeps the installation and clears its grants, so grant again after each switch. Record apps keep separate entries per version: switching back shows the earlier version's entries.
validatecatches every manifest error without the server. Run it first.- On desktop, Create plugin → Open file… loads the manifest into a form and Save file… writes it back in the same format.
- For tool servers, run your server on loopback and call it with
curlas in Test locally. The registry only accepts public HTTPS endpoints, so a published tool part needs your deployed address.
Fixtures and tests
The repository's fixtures start disposable servers on loopback ports with synthetic accounts and a deterministic model. They never touch your own data.
| What | Command |
|---|---|
| Manifest rules and starters | cargo test -p superbot-plugin-kit --locked |
The mcp-app starter over loopback, with Node.js 24 | cargo test -p superbot-plugin-kit --locked --test scaffold binary_mcp_app_calculates_over_loopback -- --ignored |
| A tool call through discovery, approval, replay and denial | pnpm exec vitest run packages/adapters/src/runs/executor/executor-readonly-approval.test.ts -t 'marketplace plugin dispatch' |
| Record apps through a bot, grants and revocation, end to end | node --import tsx infra/superbot/verify-chat.mjs PG_BIN SUPERBOT_EXE --marketplace-app |
| Record apps with a local model | node --import tsx infra/superbot/verify-chat.mjs PG_BIN SUPERBOT_EXE --local-app-records |
| The T3 Code inbox companion | node --test examples/plugins/t3-coding/companion.test.mjs |
verify-chat.mjs needs a local PostgreSQL bin directory and a built superbot executable. Run pnpm db:generate and pnpm --filter @rakazo/api build first. Add the desktop executable as a third argument to open the desktop app against the same disposable server.
Reset and clean up
- To remove a plugin from your account,
superbot-plugin uninstall INSTALLATION_ID. This deletes a record app's entries. - Slugs stay reserved, even for rejected versions. On your own server, choose a new slug or start a fresh stack with another
--project. node infra/superbot/host.mjs downstops the stack and keeps its volumes.
Move to a shared server
- Sign in to the shared server:
superbot server https://superbot.example.com, thensuperbot login. - Check that your slug is free there, then
superbot-plugin publish SLUG 1. Version numbers are per server. - Wait for its reviewers.
superbot-plugin status VERSION_IDshows the decision and any reason. See Review, install and versions.