@tpmjs/tools-unsandbox
Create a long-running service with persistent state, networking, and auto-restart capabilities.
Test @tpmjs/tools-unsandbox (createService) 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 { createService } from '@tpmjs/tools-unsandbox';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { createService } from '@tpmjs/tools-unsandbox';
const result = await generateText({
model: openai('gpt-4o'),
tools: { createService },
prompt: 'Your prompt here...',
});
console.log(result.text);(name: string, ports?: number[], bootstrap?: string, input_files?: { content: string; filename: string }[], network_mode?: string, custom_domains?: string[], bootstrap_content?: string) => Promise<unknown>Available configuration options
namestringService name (becomes NAME.on.unsandbox.com)
bootstrapstringBootstrap script content or URL
bootstrap_contentstringBootstrap script content (alternative to bootstrap)
portsarrayPorts to expose
network_modestringNetwork isolation mode. Default: 'semitrusted'
custom_domainsarrayCustom domain names
input_filesarrayInput files to make available
Schema extracted: 3/3/2026, 4:21:05 AM
ERROR: No README data found!
Downloads/month
560
GitHub Stars
0
Quality Score