← All posts
AI agents and the assistant

How do I run several AI agents that work together as a team?

Give them a shared place to talk, one owner per task and limits. Claude Code agent teams do it in one session, the Agents SDK and CrewAI in code, a group chat of agents for a business.

WakatoDecember 5, 2026
How do I run several AI agents that work together as a team?

A team of AI agents needs three things: a shared place to talk, one owner for each task, and limits on how long they talk. As of December 2026 there are three practical ways to get that. Claude Code agent teams (experimental, on Claude Pro at $20 a month and up) run a lead and several teammates inside one session. OpenAI's Agents SDK and CrewAI, both open source under the MIT license, let you build a team in code and pay for the model calls. And for a business, agents can share a group chat with people, each with its own job, tools and permissions.

How do you get two AIs to talk to each other?

They need a channel both can read and write, and a rule for whose turn it is. Every working setup is a version of one of these:

  • A mailbox. Each agent has an inbox the others can drop messages into. Claude Code agent teams do exactly this: each teammate's mailbox is a JSON file on your machine.
  • A handoff. One agent passes the whole job to another, which takes over. This is the core idea in OpenAI's Agents SDK.
  • A shared task list. Agents claim tasks, mark them done, and unblock each other.
  • A group chat. Agents and people in one thread, where an agent answers when it is tagged.

Copying text from one chat window into another also works, but then you are the channel.

How do Claude Code agent teams work?

Anthropic's docs describe one session as the team lead, which spawns teammates, assigns tasks and pulls results together. Teammates each have their own context window, message each other directly, and share a task list with three states: pending, in progress and completed. You can also talk to any teammate yourself. To turn it on you set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1.

What the docs say to watch for:

  • It is experimental and off by default.
  • Token use scales with the number of active teammates, since each is a separate Claude instance.
  • Anthropic suggests starting with 3 to 5 teammates and 5 to 6 tasks each.
  • One team per session, no nested teams, and the lead stays the lead.
  • Teammates live inside your session: their background work cannot outlive the lead's process.
  • Two teammates editing the same file overwrite each other.

It is strongest at research, review and parallel work on separate pieces. For a quick job where only the answer matters, plain subagents cost less: they report back to the main session instead of talking among themselves.

What about building a team in code?

If you want the team to live in your own product or server, use a framework. OpenAI calls its Agents SDK a production-ready upgrade of its earlier Swarm experiment. Its main pieces are agents, handoffs between them, guardrails that stop a run when a check fails, and sessions that keep memory within a run. The repository describes it as a framework for multi-agent workflows that works with OpenAI and over 100 other models. CrewAI is the other common choice: the framework is MIT-licensed, and CrewAI's hosted plan starts free with 50 workflow executions a month, with Enterprise priced on request.

Both give you full control. You also host it, pay each model call on the API, store memory yourself and build the screens people use to watch and approve.

What does each option cost?

Prices from each company's pricing page, US, as of December 2026
OptionPriceHow agents talkBest for
Claude Code agent teamsIn Claude Pro $20/month, Max $100, Ultra $200Mailboxes and a shared task list in one sessionResearch, review and parallel code work you watch
OpenAI Agents SDKFree, MIT license; you pay API usageHandoffs and agents as toolsDevelopers building a team into their own product
CrewAIFramework free (MIT); hosted Basic free with 50 executions/month; Enterprise not listed on its pricing pageRoles and tasks in a crewDevelopers who think in roles and steps
Wakato agents in group chatsFree $0 (5 agent hours) or Pro $49 (30 agent hours), about $0.16 an extra hour on a plan; their own work on your Claude, ChatGPT or Grok plan costs $0 from Wakato; customer replies are paid from the walletGroup chats with people; agents tag each otherA business team that runs every day, across engines

A worked example

A small online shop wants three agents: one on the inbox, one on ads, one on the books. In a Claude Code agent team, all three live in one terminal session that ends when the lead's session ends, and each teammate draws on the same Claude plan, so three agents use roughly three times the usage of one. That suits a two-hour research sprint. For a team that works every day, the shop sets up three Wakato agents, two running on its own Claude sign-in and one on its ChatGPT sign-in through Codex. If each is awake about 30 minutes a day, that is about 45 agent hours a month: Wakato Pro's 30 included hours plus 15 extra at about $0.16, roughly $51.40 a month, with the agents' own work on the shop's own plans. The inbox agent's replies to customers are written by Wakato's reply model and paid from the wallet. Business ($99) includes 100 hours if they grow.

Where do teams of agents go wrong?

  • Loops. Two agents that each reply to the other can thank each other for an hour. Set a stop rule: answer only when tagged, or a fixed number of turns.
  • No owner. If two agents can both answer a customer, both will. Give each task one owner, and make helpers report to that owner.
  • Too much shared power. A helper agent with the lead's permissions can do the lead's riskiest actions. Give each agent only what its job needs.
  • Lost context. Anthropic notes that teammates do not inherit the lead's conversation, so the spawn prompt must carry what they need. The same is true of any handoff.
  • Cost that grows quietly. Every extra agent is another context window. Watch usage for a week before adding a fourth.

For which jobs to give agents in the first place, see which jobs in a small business AI can do today, and for spending rules, what to let an AI agent do without asking.

What to check before you start

  • Whether the work really splits into independent pieces; if not, one agent is cheaper and clearer.
  • Who owns each task, and who the agents report to.
  • A stop rule for agent-to-agent conversations.
  • Permissions and a spending limit per agent, not one shared key.
  • Your plan's usage limits and terms when several agents share one subscription.

Common questions

Can two AI agents talk to each other without me?

Yes, through a shared mailbox, task list, handoff or group chat, but set a rule for when they stop.

Are Claude Code agent teams ready for daily business use?

Anthropic labels them experimental, with known limits around resuming sessions and task status, so they fit supervised work best.

Is CrewAI free?

The framework is open source under MIT, and CrewAI's hosted Basic plan is free for 50 workflow executions a month.

How many agents should a small business start with?

One or two with clear jobs; add another only when one is overloaded with work it can hand off.

If you want a team of agents that runs the business in Wakato

In Wakato each agent is a member of the team in Wakato Messages, with a name, a face, a job, its own cloud computer and its own memory. Each can run on a different engine for its own work: Claude Code or Codex on your own plan, signed in by you, or Wakato One paid from the wallet. Replies to people outside the business (texts, WhatsApp, customer email, website chat, social messages) are written by Wakato's own fast reply model, GPT-6 Luna by default, paid from the wallet, and phone calls use a voice model billed per minute from the wallet. Agents work together in group chats with you and your people, tag each other for help, and can make other agents within their own limits, while each keeps its own permissions, "asks first" actions and spending cap. They sleep when idle and wake when someone writes, so a team of three costs agent hours only while working. It is not a framework for building agents into your own product; for that, the Agents SDK or CrewAI fits better.

See the AI agents page, or start on the free plan.

The only app you need, run by AI agents.

Website, shop, inbox, phone, ads, social, email, calendar and books in one place. Free to start.

Start free