@tpmjs/tools-unsandbox
Execute code with automatic language detection from shebang. Send raw code with a shebang line (e.g., #!/usr/bin/env python) and the language is auto-detected.
Test @tpmjs/tools-unsandbox (run) 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 { run } from '@tpmjs/tools-unsandbox';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { run } from '@tpmjs/tools-unsandbox';
const result = await generateText({
model: openai('gpt-4o'),
tools: { run },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
codestringThe source code with shebang line (e.g., #!/usr/bin/env python)
network_modestringNetwork isolation mode. Default: 'zerotrust'
ttlnumberExecution timeout in seconds (1-900). Default: 60.
Schema extracted: 1/16/2026, 3:45:39 AM
ERROR: No README data found!
Downloads/month
0
Quality Score