Agent frameworks
To use a sandbox as the code-execution tool of an agent you build, give the agent three tools bound to one sandbox: run a command (POST /sandboxes/{name}/exec), write a file and read a file (PUT and GET /sandboxes/{name}/files/content). Keep one sandbox per conversation or user, named after its id, and stop it when the conversation pauses (or let its auto-stop timer do it). Complete, runnable guides built on the SDKs:
- OpenAI Agents SDK (Python)
- Claude Agent SDK (Python and TypeScript)
- Vercel AI SDK (TypeScript)
- LangChain and LangGraph (Python)
- Mastra (TypeScript)
- Harbor and Terminal-Bench (Python): evals, one saved snapshot per task environment, one sandbox per trial
- AgentEnv (Python): a
froogsandbox provider for RL environments
All of them are listed at froogcorp.com/integrations. Any other framework that calls functions as tools works the same way.