---
title: "It's multiplayer · Tempo AI Platform docs"
description: "How a team co-steers shared agents from its own wallets and keys, reuses personas, and spends one budget with a limit per member."
url: "https://gateway.tempo-dev.workers.dev/docs/guides/multiplayer"
---

> Every page of the Tempo AI Platform is Markdown at its URL with .md, or with Accept: text/markdown. The index of every page is https://gateway.tempo-dev.workers.dev/llms.txt, the API https://gateway.tempo-dev.workers.dev/openapi.json and the MCP server https://gateway.tempo-dev.workers.dev/mcp.

# It's multiplayer

A team is an address whose members each keep their own wallet and keys. Share an agent with the team and its members co-steer its turns; save personas the whole team creates agents from; fund one budget that pays for every member within a limit per member, while another wallet can sponsor any key's calls.

[Get your Tempo Key](https://gateway.tempo-dev.workers.dev/key.md) · [Shared agents reference](https://gateway.tempo-dev.workers.dev/docs/agents.md#shared)

## Architecture

```text
team 0xteam...: admins and members, each a wallet with its own keys
  alice (admin, owner)   bob (member)           carol (outside)
  sk-tempo-a...          sk-tempo-b...          sk-tempo-c...
     |                      |                      |
     | grants/set agents    | turn to agt_...      | turn with Gateway-Owner
     | reviewer: team rw    | steers the running   | waits as a turn of
     |                      | turn                 | its own
     v                      v                      v
+- agent agt_..., persona reviewer, owned by alice ---------------+
|  "[from bob (0x1234...abcd)] review the diff"                   |
+------------------------------+----------------------------------+
                               | each call of a turn, paid for
                               v whoever started that turn, from
  1. the key's sponsored channels     another wallet pays
  2. the agent's payer                your app's webhook
  3. their team's budget              within their member limit
  4. their own key                    their own budget
```

Teammates reach one shared agent with their own keys and steer each other's turns; each turn is paid for whoever started it, from the first source that can.

## Teams

- **Admins and members**\
  `POST /v1/teams/create` makes you the team's admin. An admin adds members or admins with `teams/add` and removes anyone; a member can leave, and loses the team's agents and budget at once.
- **Name and description**\
  An admin renames the team or sets its description with `teams/update`.
- **Budgets**\
  `memberBudget` is the team's default limit per member every 30 days, in USD, or null for none; a new team starts at 0, so members spend nothing from its budget until an admin raises it or their own limit; `teams/budget` overrides it for one member. `teams/members` shows each member's profile name, role, limit and what the team paid for them in the last 30 days.
- **Deleting**\
  Deleting a team closes its budget channels and refunds their funders, and deletes every grant to it and its personas.

## Co-steering

- **Sharing**\
  Share an agent with `POST /v1/grants/set` and kind `agents`: its id or persona, a prefix ending in `*`, or `*`, to a team, a wallet or anyone with a Tempo Key, with read or read and write. `teams/agents` lists a team's agents, and the console's Agents tab shares one with a team in one step.
- **Co-steering**\
  Members of a team with write reach the agent by its `agt_` id, or by its persona with `Gateway-Owner`, from any of their keys. Their prompts steer the running turn, whether the owner or another member started it, and they cancel those turns and message the agent's subagents.
- **Wallet and public grants**\
  A wallet or anyone with write starts turns of their own: their prompt waits until the running turn ends, never steers someone else's, and they cancel only their own turns.
- **What stays the owner's**\
  Only the owner deletes the agent, patches it or attaches hands, and while the owner's hands are attached, everyone else's turns answer 409 so nobody runs commands on the owner's machines.
- **Who said it**\
  A prompt from another wallet reaches the agent as `[from name (0x1234…abcd)] prompt`, with the name set by `profile/set`, and the gateway records who sent every turn.

## Personas

- **Fields**\
  A name (1 to 64 lowercase letters, digits, `_`, `.` or `-`), a description, a harness, a model, a thinking level and instructions, a system prompt of at most 32 KiB.
- **Private or team**\
  Without `team` a persona is yours alone; with one it is the team's. Any member creates a team persona, and its creator or a team admin edits or deletes it.
- **The factory**\
  An agent created with `persona` takes the persona's harness, model and thinking unless the request sets them. A turn to `/v1/agents/<persona>/turns` when the key has no such agent creates it from the persona and runs the turn.
- **Instructions**\
  They are appended to the lead agent's system prompt on every model call as AGENTS.md instructions for the persona, the way Codex and Claude Code add a repository's AGENTS.md, so the harness's stock prompt stays untouched. Subagents don't get them, and an edit reaches a running agent within 30 s, or one model call later when it was idle.

## Budgets

1. Any member funds the team from an API key with `POST /v1/teams/fund`: the gateway opens a channel of at least 0.05 in the key's token, MACH or OUSD, from the key's wallet and pays its network fee. You can also open one yourself and register it with its `descriptor`.
2. The channel's vouchers are signed by the team's signer, a key the gateway holds, which `teams/channels` shows with every channel's deposit, spend and funder.
3. From then on the team pays for what its members' keys and agents pay the gateway: model calls, tools and every other route. A member in one funded team is paid for by it; a member in several picks one with `profile/set` and `team`, and `none` opts out.
4. Each member's spend is capped by their limit for 30 days, counted on the turns and requests they start, wherever the agent belongs. Past it, their own key pays.
5. An admin, or the member who funded it, closes a channel with `teams/defund`: the gateway keeps what was spent and returns the rest to the funder at once.

## Sponsored channels

Another wallet opens a channel that names your key's access key as its signer and you register it with `POST /api/keys/sponsors`, optionally for one agent; the gateway then spends it for your requests, and `DELETE /api/keys/sponsors/:channel` closes it and refunds the rest.

## Who pays

Every call a turn makes is paid for whoever started it: the owner for their own turns, a teammate or grantee for theirs. It is paid from the first that can: that key's sponsored channels, then the agent's payer webhook, then their team's budget within their limit, then their own key. Ledger rows record payer `team` with the team.

| Route                    | What it does                                                                                                                               | Price   |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| POST /v1/teams/update    | Rename a team, set its description (at most 500 characters) or its default member budget; admin only                                       | $0.0005 |
| POST /v1/teams/budget    | Set a member's limit, or the team default without member; null means no limit; admin only                                                  | $0.0005 |
| POST /v1/teams/fund      | Open a budget channel from the key's wallet to the team signer, or register one you opened                                                 | $0.001  |
| POST /v1/teams/channels  | The team's budget channels and what is available                                                                                           | $0.0005 |
| POST /v1/teams/defund    | Close a budget channel and refund the rest to its funder; an admin or the funder                                                           | $0.0005 |
| POST /v1/teams/agents    | The agents shared with the team through agents grants, with their owners and the team's abilities                                          | $0.0005 |
| POST /v1/personas/set    | Save a private or team persona                                                                                                             | $0.0005 |
| POST /v1/personas/list   | Your personas, then your teams'                                                                                                            | $0.0005 |
| POST /v1/personas/get    | One persona                                                                                                                                | $0.0001 |
| POST /v1/personas/delete | Delete a persona                                                                                                                           | $0.0001 |
| POST /v1/profile/set     | The name teammates see, and team: the team that pays for you (auto, none or an address); profile/get reads both and the team that pays now | $0.0001 |

## Try it

**create a team and fund it**

```sh
export GW=https://gateway.tempo-dev.workers.dev
gw() { curl -sS -H "authorization: Bearer $TEMPO_KEY" -H content-type:application/json "$@"; }

TEAM=$(gw $GW/v1/teams/create -d '{"name":"research"}' | jq -r .address)
gw $GW/v1/teams/add -d '{"team":"'$TEAM'","member":"0xBob…","budget":5}'
gw $GW/v1/teams/fund -d '{"team":"'$TEAM'","amount":1}'
```

**a team persona and a shared agent**

```sh
gw $GW/v1/personas/set -d '{"name":"reviewer","team":"'$TEAM'","harness":"claude","instructions":"Review diffs for bugs."}'
AGENT=$(gw $GW/v1/agents -d '{"persona":"reviewer"}' | jq -r .id)
gw $GW/v1/grants/set -d '{"kind":"agents","resource":"reviewer","to":"'$TEAM'","abilities":["read","write"]}'
```

**a teammate sends a turn**

```text
gw $GW/v1/profile/set -d '{"name":"bob"}'
gw $GW/v1/agents/$AGENT/turns -d '{"prompt":"Review the latest commit"}'
```

## Go deeper

- [Agents](https://gateway.tempo-dev.workers.dev/docs/agents.md): every agent, persona and session route.
- [Tempo Keys](https://gateway.tempo-dev.workers.dev/docs/keys.md): how a key pays and what limits it.
- [Teams in the console](https://gateway.tempo-dev.workers.dev/console.md#teams): members, budgets and channels.
- [Personas in the console](https://gateway.tempo-dev.workers.dev/console.md#personas): save and edit them.

[<- It durably runs agent swarms on any model, without your laptop](https://gateway.tempo-dev.workers.dev/docs/guides/swarms.md) · [It's context efficient ->](https://gateway.tempo-dev.workers.dev/docs/guides/code-mode.md)
