Skip to content

Cookies

We use cookies to enhance your experience. Learn more

ResearchPublication

Why multi-tenant AI is harder than you think

A post of March 2026 by two people at Prosus. To run the OpenClaw assistant for a whole team, they built ClawHive, a thin layer in front of it for identity, access, cost, injection, audit and isolation, and opened its source.

Small cream and pale blue squares of paper scattered on kraft paper, left of a thin upright strip of dark red. To the right of the strip, one large cream square and, under it, a row of five navy squares with gaps between them.

Where this comes from

This is a post on the Prosus AI Tech Blog, published on 16 March 2026 under Pavel Bugneac’s name, which names Pavel Bugneac and Chiara Caratelli as its contributors. It is about running OpenClaw, an AI assistant, for a team at Prosus, and about the layer the authors built around it and released as open source. What follows is from the post.

What the post asks

Put an AI assistant in front of a team, the post says, and the trouble starts at once: one person spends the API budget in a day, anyone who finds the webhook address can talk to the model, and there is no audit trail, no access control and no way to slow down a single user. The post finds the trouble in everything around the assistant, which itself works fine.

At Prosus the authors wanted their team to use OpenClaw without each person setting it up alone, and without one runaway conversation spending the month’s budget. They chose to leave OpenClaw as it is, with no fork and no new agent framework, and to keep governance in a separate layer. They built ClawHive, a thin router in front of OpenClaw.

Six problems

  • Identity. Messages arrive from Slack and from Telegram. A model of identity maps each channel’s user to one person, gives that person an agent, and links their channels without race conditions, so that two linked channels share one agent, its conversation history and its tool state.
  • Access control. People wait as pending until they are approved, invite codes control who joins, and anyone who abuses the system can be suspended, all without building a whole identity and access system.
  • Cost. Each user has quotas of tokens and cost, checked before a message reaches the model.
  • Prompt injection. Messages that try to steer the model, such as telling it to ignore its previous instructions, injected delimiters or encoded payloads, are caught before they reach it. Patterns of regular expressions are a first defense against known techniques, and the post says more layers are expected.
  • Auditability. A structured audit trail that can be queried records every event that matters to security: decisions on access, blocked injections, forwarded messages, quotas reached and what administrators did.
  • Execution isolation. An agent with tools runs code, reads files and browses the web, so one person’s agent must not see another person’s files, leak environment variables or interfere with other sessions. Each agent gets a light Docker container for its code, files and browser, while all agents share one OpenClaw process for orchestration.

How ClawHive works

ClawHive is a small HTTP service in TypeScript, built on Hono, that takes every message coming in and runs it through seven stages before anything reaches OpenClaw. Each stage passes the message on or stops it, and records an audit event either way. The post follows a person writing to the Telegram bot for the first time.

  1. Verify

    The webhook’s signature is checked against the bot’s secret.

  2. Deduplicate

    An event already seen is dropped; this one is new.

  3. Screen

    The message is checked for patterns of prompt injection.

  4. Identify

    No user is linked to this Telegram account yet, so a new one is made, pending approval.

  5. Admit

    The access gate finds an invite code in the message, redeems it and approves the user.

  6. Check the quota

    A new user has used nothing yet, so the quota check passes.

  7. Forward

    ClawHive answers Telegram at once, makes sure an OpenClaw agent exists for the user, and forwards the message. OpenClaw replies to Telegram itself, and ClawHive records the tokens used and an audit event.

lines of TypeScript in ClawHive
About 6.5K
stages every incoming message passes through
7
test files, on security, identity, quotas, OpenClaw and webhooks
16
Bugneac and Caratelli, Prosus AI Tech Blog, 16 March 2026

What it found

Most of the work was everything around the model: identity, policy, onboarding and auditability. OpenClaw already handled the AI well.

The authors had expected to choose between a whole copy of the runtime for each user, which is costly, and no isolation at all, which is risky. Shared orchestration with execution in a sandbox for each agent turned out to cover the threats they actually face. “Isolate where the risk is.” The isolation is at the level of processes: it is meant for curious or careless users and for containing bugs, and the post says plainly that it does not protect against determined attackers or escapes from containers. Isolation at the level of virtual machines, and runtimes of their own for each user, are future work.

A webhook held open for the whole run of an agent may be sent again by a platform such as Telegram. So ClawHive makes its checks first, tells the platform at once that the message arrived, and leaves the slower work to OpenClaw in the background. Governance therefore covers what comes in: on Slack and Telegram, OpenClaw answers the channel directly and ClawHive does not read its replies. The quotas catch most overspending, and the post still advises hard spending limits with the model’s provider.

The code

ClawHive runs on Node.js with PostgreSQL for identity, quotas and audit, and OpenClaw behind it. An admin dashboard, rendered on the server, manages tenants, invite codes, quotas and the audit log; each tenant has limits per minute, per day and per month. It runs locally with Docker Compose and deploys to AWS with Terraform. The whole source is on GitHub under the MIT license, with its tests, migrations, deployment and documentation. The authors see the pattern as wider than OpenClaw: the runtime keeps to being an assistant, and identity, policy, cost control and audit live in a thin layer around it.

The post

Why Multi-Tenant AI Is Harder Than You ThinkPavel Bugneac, Chiara Caratelli. Prosus AI Tech Blog, 2026

Authors

  • Pavel Bugneac

  • Chiara Caratelli

References

  1. Why Multi-Tenant AI Is Harder Than You ThinkPavel Bugneac, Chiara Caratelli. Prosus AI Tech Blog, Medium, 16 March 2026
  2. ClawHive (ProsusAI/ClawHive)GitHub, MIT license: the code the post releases

Keep reading

  • Publication

    One model for the whole home page

    A shopping app’s home page is filled by many recommenders, each tuned for its own slot. This model writes one page per person, per meal moment: the title, the subtitle and what to show. In a live test on one slot it brought 137% more orders from that list.

  • Publication

    New robots, old tricks: teaching robots to speak AI

    A post of November 2026 on a year of wiring Darwin, the Prosus humanoid robot. Five parts spoke five protocols, and the post asks what a robot should tell an AI agent about its actions before the agent can use it.

  • Method

    Meet the large commerce model

    Language models learn from text. Magnet Decision learns from what people search for, look at, buy and come back for. Here’s how it’s built.