# Sandbox

> Run Python, Bash, or JavaScript in an isolated sandbox.

Lets an agent execute Python, Bash, JavaScript, or shell scripts in a
kernel-isolated gVisor sandbox on Kubernetes. Each `execute_code` call
creates a fresh pod and deletes it after - state is not persisted
between calls.

## What it can do

| Method | What it does |
| --- | --- |
| `execute_code` | Execute code in a kernel-isolated gVisor sandbox on Kubernetes. Safe for computation and code execution in a disposable pod with no host kernel access. Supported languages: python (default), bash, javascript, sh. Retu… |

## How to get credentials

None - Sandbox is built-in, no setup required.

## Fields to fill in FlyMyAI

None.

## Troubleshooting

- **Missing package** - the sandbox has a curated set of pre-installed
  packages. Install on-the-fly in Python (`pip install` via subprocess)
  only for small, pure-Python libraries; large binary wheels may fail.
- **Long jobs** - a call runs until its code finishes, its run ends or its
  budget runs out, within the sandbox session (up to 30 minutes). Pass
  `timeout_seconds` to stop it sooner. Split longer jobs into chunks and
  write intermediate results to files.
