SuperserveTools toolkit for running agent-generated code in isolated cloud sandboxes. The sandbox persists across tool calls, so files and installed packages remain available throughout the session.
SuperserveTools is available in Agno 2.7.4 and later.Setup
Install Agno, the OpenAI model provider, and the Superserve SDK:Run an Agno agent in a sandbox
SuperserveTools gives the agent tools for Python and shell execution, file operations, sandbox inspection, preview URLs, and lifecycle management.
persistent=True, the default, Agno stores its ID in session state and reuses the same sandbox across tool calls and runs in that session. Sync and async agents use the same sandbox automatically.
timeout pauses the sandbox after that many seconds of active time, even if the agent is still running tools in it; it does not delete it. Call shutdown_sandbox(agent) when you are done, as in the example. As a backstop for runs that exit early, also set auto_delete_seconds: once timeout pauses the sandbox, it is deleted after it has stayed paused for that many seconds. The countdown runs only while the sandbox is paused, so a sandbox that never pauses is never auto-deleted. See Auto-delete.
Configure the sandbox
Pass Superserve sandbox options directly to the toolkit:Resources
Agno toolkit reference
Review every toolkit option and function.
Agno cookbook example
Open the runnable example in the Agno repository.