
Description
Per-tenant database is an agent skill for multi-tenant apps that need each customer's data kept separate. Instead of one shared database with a tenant_id column on every table, each tenant gets its own RivetKit Rivet Actor. The actor key is the tenant id, and that actor owns the tenant's whole dataset and its migrations. The skill explains this pattern and points to a working example that stores each tenant's data in actor state and serves a React dashboard with live event updates. It is useful when you want isolation between tenants at the data level rather than through query filters on a shared table. The skill tells the agent to read the BASE_SKILL.md guide first, which covers debugging, error handling, state management, deployment and project setup for RivetKit work. Developers can use the example as a starting point and adapt it to their own schema and tenants.…
Highlights
- One Rivet Actor per tenant, keyed by tenant id
- Each tenant owns its dataset and migrations
- Working example with a React dashboard
- Live event updates to the dashboard
- Reads BASE_SKILL.md before starting
Ratings & Reviews
No ratings yet
Be the first to rate per-tenant-database.
People also visit

multi-tenant-architecture
Designs tenant isolation, hostname routing, custom-domain lifecycle
per-tenant-database FAQ
What does this skill do?
It describes how to give each tenant its own Rivet Actor that holds that tenant's entire dataset, instead of sharing one database across tenants.
How is this different from a tenant_id column?
The skill keeps each tenant's data in its own actor, so tenants do not share tables. The page presents this as the main isolation point.
How do I install it?
Run npx skills add https://github.com/rivet-dev/skills --skill per-tenant-database.
Where is the example code?
The reference implementation is in the rivet repository under examples/per-tenant-database.
What are the security audit results?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Warn.
What are the best per-tenant-database alternatives?
Popular alternatives to per-tenant-database include rivetkit, multi-tenant-architecture and organization-best-practices. See all per-tenant-database alternatives











