Platform builders

Ship a multi-tenant bot platform

The agent platform you're building needs isolation between customers without inventing it from scratch.

Tenant isolationPer-tenant tokensSandboxesQuotasControl-plane API

The problem

  • You're building a product where each customer gets their own AI assistant, but you don't want to run a separate process — or a separate server — per customer.
  • Rolling your own tenant isolation means auth tokens, per-tenant directories, sandbox roots, quota accounting and backup — 6–8 weeks of undifferentiated plumbing before you ship a single feature.
  • Get isolation subtly wrong and one customer can read another's session history. That's a launch-ending incident.

With OpenClawMU

  • OpenClawMU is one gateway process that demultiplexes tenants by a SHA-256-hashed token. Every state-bearing surface — sessions, memory, plugins, sandboxes, cron, channel credentials — lives in a per-tenant directory.
  • The dispatcher allow-lists 59 tenant-scoped JSON-RPC methods and refuses to route a message to the wrong tenant, even on malformed input. Path-traversal is rejected at the boundary.
  • Because it's Apache-2.0 and self-hosted, you keep your margins and your customers' data on your own infrastructure — no per-seat SaaS tax underneath your product.

How it works

Getting there, step by step.

  1. 1

    Stand up the gateway

    Install the OpenClaw CLI (npm, pnpm, or Docker) and run the onboarding wizard to bring up a single gateway process on your infrastructure.

  2. 2

    Provision a tenant per customer

    Call the control-plane API (or `openclaw tenants create <name>`) when a customer signs up. Each call mints a SHA-256 token and creates an isolated tenant directory.

  3. 3

    Scope your product's calls by token

    Your app authenticates to the tenant-scoped HTTP API (OpenAI- and OpenResponses-compatible) with that tenant's Bearer token. Sessions, memory and quotas apply automatically.

  4. 4

    Enforce plans with quotas

    Set per-tenant quotas so a free-tier customer can't burn your LLM budget; upgrades are a quota change, not a redeploy.

the shape of it
# one gateway, many tenants
npm install -g openclaw@latest
openclaw onboard --install-daemon

# a tenant per customer / team
openclaw tenants create acme

Frequently asked

FAQ — ship a multi-tenant bot platform

Every question here is also emitted as FAQPage JSON-LD — so Google AI Overviews, Perplexity, and ChatGPT browsing extract the answers cleanly. Crawler-friendly fallback below for screen readers and bots that don't run JS.

No. One Node process runs the gateway; tenants are demultiplexed by token. Isolation is at the directory and sandbox level, not the OS process — so a thousand tenants don't mean a thousand processes.

EXFOLIATE!

Run your own gateway today.

Apache-2.0, self-hosted, no SaaS layer between you and your users. Install the CLI, create your first tenant, mint a token — you're routing traffic in 60 seconds.