🧪
Code Sandbox
Execute code in a secure sandbox
⚙️ Code & DevOpsAPIMCPSDK
Overview
Run untrusted Python, Node.js or Bash inside an isolated, ephemeral sandbox. Returns stdout, stderr, files and exit codes so agents can compute, test and verify their own work.
Call it from any agent
curl https://api.agishub.com/v1/tools/run-code \
-H "Authorization: Bearer $AGISHUB_KEY" \
-H "Content-Type: application/json" \
-d '{ "language": "python", "code": "print(40 + 2)" }'Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| language | string | Yes | python | node | bash. |
| code | string | Yes | Source to execute. |
| timeout | number | No | Seconds (max 60). |