Early access. Cloud sessions and managed agent runs can change between releases.
They run in a cloud sandbox operated by Mutagent, so
there is nothing to host. A sandbox with nothing to do for 15 minutes stops; send an interactive
session a message and it wakes up, delivers your message and carries on in the same conversation.
A
-p task run cannot be woken; run it again.client.managed_agents. They list, inspect, deploy, activate and retire
managed agents, and read the status of a deploy or activate operation. For what a managed agent is,
see Managed agents.
Create the client
Managed agent calls take your API key.Mutagent() reads MUTAGENT_API_KEY from the environment.
They act in the workspace of a workspace API key. With an organization API key, also send the
x-workspace-id header: set it as a header on an httpx.Client passed as http_client.
The workflow
Themutagent agent CLI documents every step of the workflow: check and pack an
agent.md folder, deploy it as a revision, activate or roll back a revision, retire a slot, and run a
deployed agent with mutagent agent run @<slug> "<task>".