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
- Data analysis and transformation
- Algorithm implementation and verification
- File generation (CSV, JSON, reports)
- Lightweight web scraping (
requests+beautifulsoupif installed)
Always check exit_code: 0 is success. On failure, read stderr, fix
the code, retry.
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 installvia subprocess) only for small, pure-Python libraries; large binary wheels may fail. - Timeout — each call has a wall-clock limit. Split long jobs into chunks and write intermediate results to files.