MausBotDocs
Connected apps

Composio for self-hosters

Configure project-key access, scoped permissions, and headless development.

The simplest open-source setup is for each installation owner to create a Composio project and paste that project's key into MausBot. This avoids operating a shared credential broker and keeps usage attached to the user's own Composio account.

Least-privilege scoped key

If you use a scoped Composio project key, grant:

  • Sessions: read and write
  • Toolkits: read
  • Connected accounts: read and write

Connected-account write access is required for upstream revocation during disconnect.

Source and headless runs

Set the key on the harness process:

COMPOSIO_API_KEY=ak_your_project_key pnpm dev:server

MausBot creates a stable random Composio user identifier and reuses the returned Session. It does not store raw Gmail, Slack, GitHub, or other provider tokens.

Apps you already connected in Composio

Composio keeps each connection under a Composio user. Apps you connected in Composio's dashboard, CLI or your own code are under the user those used, such as default. When you save your project key, MausBot looks at which users in the project have working connections:

  • If only one does, MausBot uses it straight away: those apps show as connected and your bots can use them, with nothing to connect again.
  • If several do, the key's row in Settings → AI → Other services lists them (default first). Pick one and click Use these. Switch back returns to the one used before.
  • If none do, the row says so. Apps you connected for yourself in Composio's own app are not in your project; sign in with Composio Connect under Apps to use them. A personal Composio key (uak_…) is not a project key and is refused with that advice.

Switching never deletes or revokes anything in Composio. Remove on an app MausBot did not connect only stops MausBot using it; it stays connected in your Composio account. Bots limited to specific apps keep their list: add new apps under each bot's Access. None of this happens on a Team Cloud or on a server several people share.

If you use a scoped key, auth configs need write access too: MausBot turns on Tool Router for your own auth config of an app it starts using.

Managed broker

The repository also contains a Cloudflare Worker broker for managed deployments. It returns the same account-aware inventory shape while keeping broker credentials out of the renderer. Use it only when you intentionally operate a hosted connection service; it is not required for ordinary self-hosting.

On this page