A sandbox defines what tools your agent can use. The agent has built-in tools like
read_file, write_file, and bash. Any programs you add to the sandbox become tools the agent can invoke by running commands through bash.Prerequisites
Install Docker and the Trelent SDK:Build the sandbox
A sandbox is a Docker image containing the tools and skills your agent needs.Create the project folder
Add a skill
Skills are markdown files that teach the agent what it can do and how. The agent reads these at runtime.skills/translate.md:
Write the Dockerfile
Install thetranslate-shell CLI and copy in your skills.
Create Dockerfile:
Build and push
Build the image and push it to the Trelent registry.Register the sandbox
After pushing, register the sandbox with Trelent so you can create runs against it.Create a Run
Now that your sandbox is registered, you can create runs against it.Verify your sandbox
Confirm your sandbox appears in the list:Create a run
A run executes a prompt inside your sandbox using the model you specify.Get the result
Poll until the run completes, then read the result:Next steps
- Runs — Learn more about run lifecycle and status
- Imports & Exports — Move data into and out of runs
- Forking — Branch work by forking runs