Skip to content

Level 1: System context ​

Hevkar as a single box: the people who use it and the systems around it.

Actors ​

ActorDescription
Customer teamMembers 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 adminEmails 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 userNever signs in to Hevkar. Talks to the customer's app; the customer's backend acts on their behalf and passes an externalUserId.

External systems ​

SystemWhy Hevkar talks to it
Customer backendThe 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 appOpens the realtime voice WebSocket directly, with a short-lived token minted by the customer backend, so the API key never reaches the browser.
LLM providersEvery 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 providersSpeech-to-speech sessions, bridged by the realtime gateway.
Customer HTTP APIs and websitesCustomer-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 serverAccount mail and invitations from better-auth, spend alerts. Without SMTP_URL mail is only logged.
OAuth providersOptional social sign-in for the console.

Next: Level 2: Containers.

Hevkar public API v1