Getting started
This guide runs the console and Worker locally, then creates a tenant, connector and first agent.
Prerequisites
- Node.js 22+
- pnpm 11+
- A terminal at the repository root
1. Install and verify
pnpm install
pnpm typecheck
pnpm test
2. Generate local auth
pnpm dev:auth
This writes:
apps/edge/.dev.vars.dev-token— a REST door token for the demo tenant.dev-admin-key— the local bootstrap admin key
These files are gitignored. Do not use them outside local development.
3. Prepare the database and start
pnpm db:migrate:local
pnpm db:seed:local
pnpm dev
pnpm dev builds the console and starts the Worker at
http://localhost:8787.
The seed creates the demo tenant acme and door it-help.
4. Sign in to the tenant console
Tenant users use one-time magic links.
- Open http://localhost:8787.
- Enter any test email, for example
owner@example.test. - Local email is mocked, so the link appears in the console.
- Use Open magic link or Complete sign-in here — not both.
A new tenant is created as trial pending. Until a platform admin approves
it, the console shows the waiting screen and door APIs return 403.
5. Approve the tenant
Open the platform admin console:
http://localhost:8787/platform/login
If you have not created a platform admin, use the bootstrap key:
curl -X POST \
-H "X-Admin-Key: $(cat .dev-admin-key)" \
-H 'Content-Type: application/json' \
-d '{"email":"admin@example.test","password":"local-admin-password"}' \
http://localhost:8787/v1/admin/platform-admins
Then sign in and use Platform → tenants → Approve.
Alternatively approve with the key:
curl -X POST \
-H "X-Admin-Key: $(cat .dev-admin-key)" \
-H 'Content-Type: application/json' \
-d '{}' \
http://localhost:8787/v1/admin/tenants/TENANT_ID/approve
6. Add a connector
- Open Connectors.
- Choose Generic HTTP in the catalog.
- Click Connect agent.
- Enter an endpoint and bearer token.
- Test with a message.
If you do not have an agent endpoint yet, see Testing a connector.
7. Manage the agent
Installing the connector already created a draft agent.
- Open Agents and select the connected agent card.
- Click Manage agent.
- Add routing examples.
- Activate it.
Existing manual/direct agents also appear in the same list. New manual agent creation is available through the agent API.
8. Create and publish a door
- Open Doors → New door.
- Use a slug such as
support. - Open the door editor.
- Bind the agent.
- Publish.
9. Call the door
curl -X POST \
-H "Authorization: Bearer $(cat .dev-token)" \
-H 'Content-Type: application/json' \
-d '{"message":"hello"}' \
http://localhost:8787/v1/tenants/acme/doors/it-help/route
The seeded token is bound to acme/it-help. For a new door, create a client and
token through the console or use the local auth script as a template.
Local ports
| Service | URL |
|---|---|
| Console + API | http://localhost:8787 |
| Vite console dev | http://localhost:5173 |
| Docusaurus | http://localhost:3001 |