惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
Blog — PlanetScale
Blog — PlanetScale
B
Blog
GbyAI
GbyAI
爱范儿
爱范儿
月光博客
月光博客
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
腾讯CDC
MyScale Blog
MyScale Blog
V
Visual Studio Blog
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
OpenClaw Multi-Tenancy: Why a VM Per User Does Not Scale ...
KinthAI · 2026-04-29 · via DEV Community

KinthAI

Vanilla OpenClaw runs as a single-tenant system. One user, one instance, one VM. For a small group — 5 to 30 people — this works. Beyond 30-50 users, it falls apart. Here is why, and what actual multi-tenancy looks like.

The "Use a VM" Answer Is Technically Correct

You can absolutely give each user their own OpenClaw VM. It will work. But four things go wrong as you scale:

1. Predictable Costs Regardless of Usage

A VM costs $5-15/month at standard cloud pricing whether the user talks to their agent daily or abandoned it after day one. At 100 users, you are paying $500-1500/month. At 1000 users, $5000-15000/month. Most of those VMs are idle most of the time.

2. Onboarding Friction Kills Conversion

The setup sequence: create account → provision VM → install OpenClaw → configure provider API keys → create SOUL.md → initialize gateway. Most users drop off at the provisioning step. The gap between "I want to try this" and "I am talking to my agent" should be seconds, not minutes.

3. Maintenance Across N Installations

With 100 separate OpenClaw instances, you need to push updates to all of them. Most users will never upgrade on their own. You end up with a fleet of stale, vulnerable installations and no central way to push patches.

4. Cross-Tenant Features Become Impossible

Agent marketplaces, shared skill libraries, agent-to-agent communication — none of these work across isolated VMs. If Agent A lives on VM-1 and Agent B lives on VM-2, they cannot collaborate without a networking layer that defeats the purpose of isolation.

What Real Multi-Tenancy Actually Requires

Multi-tenancy is not "put everyone on the same server." It is five distinct engineering problems:

Tenant Identity Propagation

Every API call, every file operation, every memory query must carry a tenant_id. File operations must be restricted to /workspace/<tenant_id>/. Missing a single code path creates a data leak vulnerability.

Resource Quotas

Token budgets, CPU/memory caps, and rate limiting — all per tenant, not per agent. An agent-level budget is easy to game (create more agents). Tenant-level aggregate spending is what actually matters.

Authentication and Authorization

Two levels: platform operations (deploy, install plugins, manage billing) and tenant operations (chat with agent, configure personal settings). OpenClaw's session model was not designed for this distinction.

Data Isolation

Separate storage for: workspace files, memory indexes (vector stores), conversation sessions, and plugin state. A memory search for Tenant A must never return Tenant B's data, even if the embeddings are similar.

Operational Tooling

Monitoring, logging, and metrics sliced by tenant. When something breaks at 3am, you need to know which tenant is affected, not just which server.

Implementation Effort

Component Timeline Primary Challenge
Tenant identity propagation 1-2 weeks Missing code paths = security holes
Per-tenant token budgets 1-2 weeks Agent-level budgets fail; tenant aggregation required
Container/resource limits 1 week OS-level configuration
Authentication layer 2-3 weeks OpenClaw session model vs. identity model conflict
Per-tenant plugin state Variable Plugin-dependent complexity
Operational tooling 1-2 weeks Under-investment creates ops pain later
Total ~2 months Long-tail edge cases dominate

The breakeven point is roughly 30-50 users. Below that, VMs are fine. Above that, multi-tenancy is clearly worth the engineering investment.

The Memory Problem Makes It Worse

Multi-tenancy is not just about resource isolation — it is about memory isolation. When agents have persistent memory (and they should — see why Character.AI forgets you), the isolation requirements multiply.

A persistent memory system has five components:

  1. Memory store — where memories live (vector DB, SQLite+FTS5, etc.)
  2. Retrieval — how memories are fetched (embedding similarity, keyword, hybrid)
  3. Writeback — how new memories are created from conversations
  4. Conflict resolution — what happens when new information contradicts stored memory
  5. User isolation — ensuring User A's memories are never accessible to User B

Component 5 is trivial in a single-tenant VM (there is only one user). In multi-tenancy, it requires partition-level enforcement at the storage layer, not just query-time filtering. A naive implementation that filters by user_id after retrieval still exposes memory embeddings to the similarity search, which can leak information through nearest-neighbor results.

Managed Alternatives

If you do not want to build multi-tenancy yourself, several managed options exist:

  • CrewClaw — agent template deployment, message-based pricing
  • ClawAgora — marketplace-style agent hosting
  • ClawCloud / ClawRunway / OpenClaw Cloud — managed per-VM hosting (not true multi-tenancy)
  • KinthAI (agents.kinthai.ai) — native multi-tenancy with persistent memory, agent marketplace, and multi-agent collaboration

The distinction matters: managed per-VM hosting solves the operational burden but not the scaling economics or cross-tenant features. True multi-tenancy solves all three.

Choose Based on Your Scale

  • < 30 users: Per-VM is fine. Use ClawCloud or self-host.
  • 30-500 users: You need multi-tenancy. Build it (~2 months) or use a platform that has it.
  • 500+ users: Multi-tenancy is non-negotiable. The economics of per-VM will eat your runway.

We built KinthAI because we wanted to deliver agents that remembered users, learned from them, and could collaborate with other agents — at consumer scale. That required solving multi-tenancy at the infrastructure layer, not bolting it on later.


Originally published at blog.kinthai.ai