Benchmarked
Isorun
Last updated
Was this helpful?
Was this helpful?
npm install @computesdk/isorunISORUN_API_KEY=your_isorun_api_keyimport { isorun } from '@computesdk/isorun';
const compute = isorun({
apiKey: process.env.ISORUN_API_KEY,
});
// Create sandbox
const sandbox = await compute.sandbox.create();
// Run a command
const result = await sandbox.runCommand('echo "Hello from Isorun!"');
console.log(result.stdout); // "Hello from Isorun!"
// Clean up
await sandbox.destroy();interface IsorunConfig {
/** API key. Falls back to `ISORUN_API_KEY` env var. The runner endpoint is derived from the key. */
apiKey?: string;
}