Sandboxes
Isolated, on-demand machines to run untrusted code securely.
- Execute user code and agents
- Run in multiple runtimes and limits
Sphere Engine Sandboxes for anything your users or models execute. Compilers, Problems, and Containers for teaching, hiring, and grading.
Isolated, on-demand machines to run untrusted code securely.
Grade programming skills at the scale you already run.
Dedicated capacity, on-premise, and a team that has run this since 2008.
from sphere_engine_sandboxes import Client
client = Client(token="YOUR_API_TOKEN")
result = client.run.execute(
image="ubuntu-26.04-med",
command=["python3", "hello.py"],
copies=[{"host": "./hello.py"}],
)
print(result.stdout)
print(result.exit_code)
import { Client } from "@sphere-engine/sandboxes-sdk";
const client = new Client({ token: "YOUR_API_TOKEN" });
const result = await client.run.execute({
image: "ubuntu-26.04-med",
command: ["python3", "hello.py"],
copies: [{ host: "./hello.py" }],
});
console.log(result.stdout, result.exit_code);
Example output. Not a live run.
stdouthello
exit_code0
Trusted in production
Pick a path. Product pages go deeper.

Let the model edit, test, and return a patch inside the sandbox.

Run user or model code next to your app, not inside it.

Services, preview URL, browser or desktop — while the work is unfinished.

Challenges, tests, rankings, and widgets in your product.

Submissions and exams at the scale your program already reaches.