What tenants are
A tenant represents an organization or workspace that shares one KavachOS deployment. Each tenant has its own agents, audit log, and policy settings. Data is isolated bytenantId: agents in one tenant cannot be seen or authorized against by another.
This is useful for SaaS products where each customer gets their own isolated agent environment without you running a separate database per customer.
tenantId is nullable everywhere it appears. Existing agents, policies, and audit entries created before you enable multi-tenancy continue to work without modification.Data model
Stable identifier with a tnt_ prefix, e.g. tnt_acme.
Display name for the tenant.
URL-safe identifier. Lowercase letters, numbers, and hyphens only. Must be unique.
Per-tenant configuration overrides.
Suspended tenants cannot authorize requests.
When the tenant was created.
When the tenant was last modified.
TenantSettings
Maximum active agents allowed in this tenant. Overrides the global default.
How deep delegation chains can go. Defaults to the global setting.
How long audit entries are kept for this tenant, in days.
Restrict which agent types can be created. E.g. [‘autonomous’] to disallow delegated agents.
Creating a tenant
Slugs must be unique and match^[a-z0-9]+(?:-[a-z0-9]+)*$. KavachOS rejects duplicate slugs at creation time.
Creating an agent inside a tenant
PasstenantId when creating an agent. The agent is then scoped to that tenant.
tnt_acme cannot be authorized against resources in tnt_other.
Listing agents by tenant
Fetching and updating a tenant
Listing all tenants
Suspending and reactivating
When a tenant is suspended, allauthorize() calls for agents in that tenant return allowed: false. Existing tokens are not revoked; they fail authorization until the tenant is reactivated.
Budget policies per tenant
Attach a budget policy to a tenant to apply spending limits across all agents in it. See Budget policies for the full policy reference.Next steps
Budget policies
Apply cost limits at the tenant, agent, or user level.
Agent identity
Create agents scoped to a tenant.
Audit log
Filter the audit trail by tenant.