Skip to main content

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.

  1. Open http://localhost:8787.
  2. Enter any test email, for example owner@example.test.
  3. Local email is mocked, so the link appears in the console.
  4. 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​

  1. Open Connectors.
  2. Choose Generic HTTP in the catalog.
  3. Click Connect agent.
  4. Enter an endpoint and bearer token.
  5. 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.

  1. Open Agents and select the connected agent card.
  2. Click Manage agent.
  3. Add routing examples.
  4. 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​

  1. Open Doors → New door.
  2. Use a slug such as support.
  3. Open the door editor.
  4. Bind the agent.
  5. 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​

ServiceURL
Console + APIhttp://localhost:8787
Vite console devhttp://localhost:5173
Docusaurushttp://localhost:3001

Next​