---
title: "Run code, agents, and exams — Sphere Engine"
description: "Isolated machines for code and AI agents. Compilers, Problems, and Containers for teaching, hiring, and grading. Start from your SDK."
url: "https://sphere-engine.com/"
---

# Run code in isolated machines.

Sphere Engine Sandboxes for anything your users or models execute. Compilers, Problems, and Containers for teaching, hiring, and grading.

[Start building](https://sphere-engine.com/signup)

[Read the docs](https://docs.sphere-engine.com/)

## Choose your starting point

### Sandboxes

Isolated, on-demand machines to run untrusted code securely.

- Execute user code and agents
- Run in multiple runtimes and limits

[Explore Sandboxes](https://sphere-engine.com/sandboxes.md)

### Assessment

Grade programming skills at the scale you already run.

- Auto-grade code submissions
- Build coding exams and practice

[Explore Assessment](https://sphere-engine.com/comparison)

### Enterprise

Dedicated capacity, on-premise, and a team that has run this since 2008.

- Higher limits and custom environments
- On-premise or private deployment

[Contact Enterprise](https://sphere-engine.com/enterprise)

## From your code to an isolated machine

1. Each run happens in a separate machine — outside your app process.
2. You send code and files through the API and take stdout, stderr, and artifacts back.
3. Need more than one call? Keep a session alive, exec again, then stop.

[See Sandboxes](https://sphere-engine.com/sandboxes.md)

[Read the docs](https://docs.sphere-engine.com/)

```python
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)
```

```typescript
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.

stdout **hello**

exit_code **0**

Trusted in production

**5,000,000+** code submissions every month

**2,000,000+** end users worldwide

Infosys, Mettl, Tata Consultancy Services, Edhesive, Codechef

## Built for the job you are shipping

Pick a path. Product pages go deeper.

- [**Agents in a machine** Let the model edit, test, and return a patch inside the sandbox.](https://sphere-engine.com/sandboxes/agents.md)
- [**Untrusted code** Run user or model code next to your app, not inside it.](https://sphere-engine.com/sandboxes/code.md)
- [**Workspaces and preview** Services, preview URL, browser or desktop — while the work is unfinished.](https://sphere-engine.com/sandboxes/workspaces.md)
- [**Skill assessment** Challenges, tests, rankings, and widgets in your product.](https://sphere-engine.com/problems)
- [**Events at volume** Submissions and exams at the scale your program already reaches.](https://sphere-engine.com/enterprise)

Updated: 2026-11-28
