Launch Claude Code, Codex, Gemini CLI, or OpenClaw in a secure sandbox with the SDK.
Getting started
01
$ npm install @omnirun/sdk02
await Sandbox.create('agent')03
await sandbox.commands.run('...')Programmatic access
Use the SDK to create sandboxes programmatically. TypeScript and Python SDKs available, with full API access for any language.
Read the SDK docsimport { Sandbox } from '@omnirun/sdk'
const sandbox = await Sandbox.create({
template: 'agent',
memory: 1024,
})
const result = await sandbox.commands.run('python3 agent.py')
console.log(result.stdout)
await sandbox.kill()from omnirun import Sandbox
sandbox = Sandbox.create(
template="agent",
memory=1024,
)
result = sandbox.commands.run("python3 agent.py")
print(result.stdout)
sandbox.kill()Get an API key and launch your first sandbox. Free tier includes 25 sandbox-hours per month.
Get Free API Key