Run code in a Cinch sandbox
execute_codeExecute Python or JavaScript in a secure, isolated sandbox to test code, verify calculations, or transform data, and receive stdout/stderr output.
Instructions
Execute Python or JavaScript in a secure, isolated, disposable sandbox and return its output. The sandbox is a gVisor-isolated container on Cinch's infrastructure with no access to the user's machine, filesystem, or network, so it is safe to run code you generated yourself, code from an untrusted source, or code whose behaviour you are unsure about. Use it whenever running code gives a more reliable answer than reasoning about it: checking a script works, exact calculations, parsing or transforming data, testing a regex, verifying language behaviour.
The environment is deliberately minimal. Read these limits before writing code:
Python 3.12 and Node 20, STANDARD LIBRARY ONLY. No third-party packages are installed and none can be installed. numpy, pandas, requests, scipy, axios, lodash and everything else on PyPI or npm are unavailable. Use json, csv, re, math, statistics, itertools, collections, datetime, hashlib, decimal, fractions and the rest of the stdlib instead.
NO network access. HTTP requests, DNS, package installs and API calls all fail.
NO filesystem persistence. The root filesystem is read-only; only /tmp is writable, and it is destroyed when the run ends.
10 second execution limit, 256 MB memory, 0.5 CPU.
Every call gets a brand new sandbox. Nothing persists between calls — no variables, no files, no imports. Each snippet must be complete and self-contained.
Only stdout and stderr are returned. Print anything you want to see; a bare expression on the last line returns nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A complete, self-contained program using only the standard library. Must print results to stdout. | |
| language | No | Runtime to execute the code in. Python 3.12 or Node 20. | python |