Agentuity
Agentuity provider for ComputeSDK
Installation & Setup
Section titled “Installation & Setup”npm install @computesdk/agentuityAdd your Agentuity credentials to a .env file:
AGENTUITY_SDK_KEY=your_agentuity_sdk_keyimport { agentuity } from '@computesdk/agentuity';
const compute = agentuity({
apiKey: process.env.AGENTUITY_SDK_KEY,
});
// Create sandbox
const sandbox = await compute.sandbox.create();
// Execute code
const result = await sandbox.runCode('print("Hello from Agentuity!")');
console.log(result.output); // "Hello from Agentuity!"
// Clean up
await sandbox.destroy();Configuration Options
Section titled “Configuration Options”interface AgentuityConfig {
/** Agentuity SDK key - if not provided, will use AGENTUITY_SDK_KEY env var */
apiKey?: string;
/** Region for API endpoints ('local', 'usc', or a full custom base URL). Default: 'usc' */
region?: string;
/** Override the sandbox base URL entirely */
baseURL?: string;
/** Default runtime, e.g. 'bun:1', 'python:3.14', 'node:22' */
runtime?: string;
/** Idle timeout passed to the sandbox (e.g. '5m', '1h') */
idleTimeout?: string;
/** Execution timeout passed to the sandbox (e.g. '30m', '2h') */
executionTimeout?: string;
}Runtime Detection
Section titled “Runtime Detection”The provider automatically detects the runtime based on code patterns:
Python indicators:
printstatementsimportstatementsdeffunction definitions- Python-specific syntax (
f",__, etc.)
Default: Node.js for all other cases