Appearance
Level 1: System context
Hevkar as a single box: the people who use it and the systems around it.
Actors
| Actor | Description |
|---|---|
| Customer team | Members of a customer organization. Roles owner, admin, member (better-auth organization plugin). They work in projects: agents and versions, playground, data sources, tools and secrets, API keys, webhooks, runs and usage. |
| Platform super admin | Emails listed in SUPER_ADMIN_EMAILS. Uses the separate ops console: organizations and their limits, suspension, the model catalog and prices, templates, platform usage, the audit log and the job queues. |
| End user | Never signs in to Hevkar. Talks to the customer's app; the customer's backend acts on their behalf and passes an externalUserId. |
External systems
| System | Why Hevkar talks to it |
|---|---|
| Customer backend | The main API client. Calls /v1 with a project API key: sync, streaming (SSE) and async runs, files, conversations, data sources, workflow runs, realtime session tokens. Receives signed webhooks. |
| Customer app | Opens the realtime voice WebSocket directly, with a short-lived token minted by the customer backend, so the API key never reaches the browser. |
| LLM providers | Every model call (text, structured output, tool use, vision, embeddings) through the Vercel AI SDK. A provider is enabled when a super admin stores its key. |
| Realtime voice providers | Speech-to-speech sessions, bridged by the realtime gateway. |
| Customer HTTP APIs and websites | Customer-defined HTTP tools and live sources, HTTP API and website data sources, the built-in web_fetch tool. All outbound calls go through the SSRF-guarded HTTP client. |
| Mail server | Account mail and invitations from better-auth, spend alerts. Without SMTP_URL mail is only logged. |
| OAuth providers | Optional social sign-in for the console. |
Next: Level 2: Containers.