@tpmjs/tools-unsandbox
Create a new persistent session with configurable language, resources, and networking. Sessions maintain state across executions.
Test @tpmjs/tools-unsandbox (createSession) 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 { createSession } from '@tpmjs/tools-unsandbox';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { createSession } from '@tpmjs/tools-unsandbox';
const result = await generateText({
model: openai('gpt-4o'),
tools: { createSession },
prompt: 'Your prompt here...',
});
console.log(result.text);(ttl?: number, shell?: string, network_mode?: string) => Promise<unknown>Available configuration options
shellstringShell or REPL to start (bash, python3, node, etc.). Default: bash
network_modestringNetwork isolation mode. Default: 'zerotrust'
ttlnumberTime-to-live in seconds (0 = no limit). Default: 3600
Schema extracted: 3/3/2026, 4:21:00 AM
ERROR: No README data found!
Downloads/month
560
GitHub Stars
0
Quality Score