Catalog PyPI
PACKAGE EXPLORERView in registry

agno-opensandbox-toolkit

PyPI

OpenSandbox support for the Agno agent framework

agnoai-agentopensandboxsandboxtoolkit
Versions collected1
Direct dependencies3From release 0.1.0
Last observed21 Oct, 09:17 UTC

README

Version 0.1.0 documentation

agno-opensandbox-toolkit

CI PyPI Python License

OpenSandbox support for the Agno agent framework.

Give your Agno agents the ability to execute shell commands, manage files, and run code in secure, isolated OpenSandbox containers.

Installation

# Base: shell commands + file operations
uv add agno-opensandbox-toolkit

# With code interpreter support (Python, JS, Java, Go, Bash)
uv add "agno-opensandbox-toolkit[code-interpreter]"

Prerequisites

You need a running OpenSandbox server. The quickest way:

uv pip install opensandbox-server
opensandbox-server init-config ~/.sandbox.toml --example docker
opensandbox-server

See the OpenSandbox docs for full setup instructions.

Quick Start

from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno_opensandbox_toolkit import OpenSandboxTools

agent = Agent(
    name="Sandbox Agent",
    model=OpenAIChat(id="gpt-4o-mini"),
    tools=[OpenSandboxTools()],
    markdown=True,
)

agent.print_response("Create a file /tmp/hello.py that prints 'Hello from OpenSandbox!', then run it")

Configuration

ParameterEnv VariableDefaultDescription
domainOPENSANDBOX_DOMAINlocalhost:8080OpenSandbox server address
api_keyOPENSANDBOX_API_KEY""API key for authentication
protocol—httpConnection protocol (http or https)
image—ubuntuContainer image
timeout_minutes—10Sandbox TTL
sandbox_env—{}Env vars inside sandbox
sandbox_resources—Nonee.g. {"cpu": "2", "memory": "4Gi"}
sandbox_entrypoint—NoneCustom entrypoint command list
sandbox_metadata—NoneMetadata labels dict
enable_code_interpreter—FalseEnable run_code tool
persistent—TrueReuse sandbox across calls
sandbox_id—NoneReconnect to existing sandbox

Available Tools

ToolDescription
run_shell_commandExecute bash commands
create_fileCreate/update files
read_fileRead file content
list_filesList directory contents
delete_fileDelete files/directories
change_directoryChange working directory
get_sandbox_statusGet sandbox info
shutdown_sandboxKill the sandbox
run_codeExecute code via interpreter (optional)

License

The project is published under the BSD 3-Clause license. For details see the LICENSE file.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.012 Apr 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:17 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:72151afaa48b76dd76f2bb56cecff7f0c410cb9d5956e4d6a8dc6cd5a460acae