@tpmjs/tools-unsandbox
Execute code asynchronously with automatic language detection via shebang. Returns job_id for polling.
Authentication failed: Invalid API keys. Ensure UNSANDBOX_PUBLIC_KEY and UNSANDBOX_SECRET_KEY are correct.
Last checked: 3/1/2026, 4:25:25 AM
Test @tpmjs/tools-unsandbox (runAsync) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-unsandboxpnpm add @tpmjs/tools-unsandboxyarn add @tpmjs/tools-unsandboxbun add @tpmjs/tools-unsandboxdeno add npm:@tpmjs/tools-unsandboximport { runAsync } from '@tpmjs/tools-unsandbox';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { runAsync } from '@tpmjs/tools-unsandbox';
const result = await generateText({
model: openai('gpt-4o'),
tools: { runAsync },
prompt: 'Your prompt here...',
});
console.log(result.text);(code: string, ttl?: number, network_mode?: string) => Promise<unknown>Available configuration options
codestringThe source code to execute. Can include shebang line (e.g., #!/usr/bin/env python) for explicit language hint.
network_modestringNetwork isolation mode. Default: 'zerotrust'
ttlnumberExecution timeout in seconds (1-900). Default: 60.
Schema extracted: 3/1/2026, 4:25:24 AM
ERROR: No README data found!
Downloads/month
560
GitHub Stars
0
Quality Score