Deploy to Unsandbox
++ Always-on execution with one CLI command +
+Quick Deploy
+
+ Deploy a TPMJS executor with a single command. Your executor will be live at{' '}
+
+ https://tpmjs-executor.on.unsandbox.com
+
+
+ This creates an always-on service that runs the executor. HTTPS is automatically + configured. +
+Test Your Deployment
++ Verify your executor is running with a health check: +
+Expected response:
+Add Authentication
+
+ Important: Without an API key, anyone can execute tools on your
+ executor. Always set{' '}
+ EXECUTOR_API_KEY in production.
+
+ Deploy with an API key to require authentication: +
+
+ When configured, requests must include{' '}
+ Authorization: Bearer your-api-key.
+
Environment Variables
++ Pass environment variables that your tools need. These are available during tool + execution. +
+ +Inline Variables
+Using an Env File
++ All environment variables are stored encrypted and only available to your executor. +
+Execute a Tool
++ Test tool execution with a curl request: +
+Local Development
++ Run the executor locally for testing and development: +
+Managing Your Service
++ Unsandbox provides commands to manage your executor: +
+Cost Optimization
++ Freeze your executor when not in use to stop billing: +
+-
+
-
+ •
un service --freezestops the + service and billing +
+ -
+ •
un service --unfreezerestarts it + when needed +
+ - • Configure auto-unfreeze to wake on HTTP request (incurs cold start) +
Custom Domains
+
+ Use your own domain instead of the default{' '}
+ *.on.unsandbox.com:
+
+ After deploying, add a CNAME record pointing{' '}
+ executor.yourdomain.com to your
+ Unsandbox service domain.
+
How It Works
++ The Unsandbox executor runs as an always-on HTTP server: +
+-
+
-
+
+ 1
+
+
+ Receives tool execution request via HTTP POST to{' '}
+
/api/execute-tool+ +
+ - + + 2 + + Creates an isolated temporary directory for the execution + +
-
+
+ 3
+
+
+ Installs the npm package using{' '}
+
npm install+ +
+ -
+
+ 4
+
+
+ Loads the tool and calls its{' '}
+
execute()function + +
+ - + + 5 + + Returns the result and cleans up the temporary directory + +
+ Since Unsandbox containers are already isolated, no additional sandbox layer is + needed. Network access is controlled by Unsandbox's semitrusted mode. +
+Security
+-
+
-
+
+ + Set EXECUTOR_API_KEYto require + authentication + +
+ -
+
+ Tools run in isolated Unsandbox containers +
+ -
+
+ Each execution uses a fresh temporary directory +
+ -
+
+ Network controlled by semitrusted mode +
+ -
+
+ Environment variables stored encrypted +
+
Pricing
++ Unsandbox services are billed based on uptime. See{' '} + + Unsandbox Pricing + {' '} + for current rates. +
+-
+
-
+ • HTTPS included via{' '}
+
*.on.unsandbox.com+
+ - • Freeze when not in use to pause billing +
- • Scale vCPU and RAM as needed +
Connect to TPMJS
+-
+
- 1. Go to your collection or agent settings on TPMJS +
- 2. Select "Custom Executor" in Executor Configuration +
-
+ 3. Enter URL:{' '}
+
+ https://tpmjs-executor.on.unsandbox.com ++
+ - 4. Enter your API key (if configured) +
- 5. Click "Verify Connection" +