Opening Settings

  • Sidebar: click Settings → route /settings.
  • Deep link: http://localhost:3000/settings?tab=<tab>
  • CLI: beebridge manager setup --tab <tab> or beebridge web settings --tab <tab>

Tab Values

URL ?tab=Sidebar Label
connectionConnection
authProfiles
modelModel Policy
workspaceWorkspace
statusDiagnostics

Connection

Enter the Gateway URL and Token, then click Connect. This loads provider catalogs, auth profiles, and model policy from GET /api/settings/pm.

Most app pages use same-origin /api rewrites via Next.js. The Settings panel uses its own URL/token fields, useful when the gateway runs on a different host or port.

Profiles (auth)

Register manager credentials used by PM flows.

  • Provider — From gateway provider catalog.
  • Sign-in modeapi_key or oauth (OpenAI shows "Codex" for OAuth).
  • Save profilePOST /api/settings/auth/profiles
  • OAuth / Codex login — Device flow via POST /api/settings/auth/device/start + complete.
  • Activate — Click a saved profile card. PATCH /api/settings/auth/profiles/:id/activate.
  • DeleteDELETE /api/settings/auth/profiles/:id.
  • Reset allDELETE /api/settings/auth/profiles.

Model Policy (model)

  • Default provider / model — PM defaults.
  • Allowed models — Comma-separated list.
  • Fallback model — Optional.
  • SavePUT /api/settings/model-policy.

Workspace

All settings, history, and data are stored under the configured workspace path. .beebridge/workspace is created under it.

  • Change WorkspacePUT /api/settings/workspace with { "workspacePath": "..." }.
  • On tab focus, loads GET /api/settings/workspace to show current path, data root, and file list.

Diagnostics (status)

Read-only summary: active profile, default provider/model, allowed model count.

  • Restart gatewayPOST /api/admin/restart. Shuts down the gateway; restart from terminal if needed.

Environment Variables (Next / browser)

VariablePurpose
NEXT_PUBLIC_GATEWAY_ORIGINFallback HTTP origin for client-side gateway URLs
NEXT_PUBLIC_GATEWAY_WS_PORTWebSocket port segment when gateway URL is empty (default 4321)