REST API
Endpoints for sandboxes, commands, files, exposures, the LLM proxy and the vault. Sandbox requests use a Bearer token.
$ curl -X POST https://api.omnirun.io/sandboxes \
-H "Authorization: Bearer $OMNIRUN_KEY" \
-d '{"template": "playground",
"timeout": 300}'import { Sandbox } from '@omnirun/sdk';
const sandbox = await Sandbox.create('playground', {
timeout: 300,
});
// sandbox.sandboxId → "sb_a1b2c3d4"from omnirun import Sandbox
sandbox = Sandbox.create(
"playground",
timeout=300,
)
# sandbox.sandboxId → "sb_a1b2c3d4"