Run code, get rich output
A stateful code-interpreter kernel per sandbox — stdout, charts (PNG), DataFrames (HTML), and typed results, streamed live.
Run untrusted, AI-generated code in secure, isolated sandboxes for enterprise-grade agents — compute never leaves India. Mumbai (ap-south-1) · gVisor isolation · INR billing
pip install ai2innpm install @ai2in/sdknpm install -g @ai2in/clifrom ai2in import Sandbox
with Sandbox(api_key="ai2in_live_…") as sbx:
execution = sbx.run_code("print(6 * 7)")
print(execution.logs.stdout) # ['42\n']import { Sandbox } from "@ai2in/sdk";
const sbx = await Sandbox.create({ apiKey: "ai2in_live_…" });
const execution = await sbx.runCode("print(6 * 7)");
console.log(execution.logs.stdout); // ['42\n']
await sbx.kill();ai2in login --key ai2in_live_…
ai2in run -e "print(6 * 7)"Head to Getting started for the full walkthrough.