What it does
Self-hosted sandboxes for AI-generated code: run commands, files, snapshots.
- Connects Runs on your computer
- Account or key Needs SANDFORT_API_KEY · 1 setting to fill in (SANDFORT_BASE_URL)
- Category Developer tools
Use together with
Skills that teach the AI this kind of work; they work alongside this one
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Why it ranks here
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 0/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 12/100 |
Quality: Passed 2/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)
Install
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install Sandfort. Follow https://mcp.popnx.com/i/malinele-sandfort.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 24, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a Sandfort key (create it on the maker’s site) · 1 setting(s) to fill in (SANDFORT_BASE_URL) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Let AI install it
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Sandfort for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "sandfort": { "command": "uvx", "args": [ "sandfort-mcp" ], "env": { "SANDFORT_BASE_URL": "your-value", "SANDFORT_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SANDFORT_API_KEY, SANDFORT_BASE_URL, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Sandfort tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Sign up and create a Sandfort key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
SANDFORT_BASE_URLBase URL of the Sandfort server, for example http://127.0.0.1:8000
Descriptions are as written by the maker.
Open the Claude desktop app’s settings file
SettingsDeveloperEdit Config
Paste these settings and save the file
{ "mcpServers": { "sandfort": { "command": "uvx", "args": [ "sandfort-mcp" ], "env": { "SANDFORT_BASE_URL": "your-value", "SANDFORT_API_KEY": "your-value" } } } }Paste the key only into the app’s field, never into a chat or to anyone
Quit Claude and open it again
Try it
Use Sandfort and tell me what you can do for me, then show me one thing✓ If Claude says it is using Sandfort or shows a Sandfort tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Sandfort yet
Sandfort runs on your computer, but ChatGPT can only connect servers that run on the web
What you can do instead
A · Use an app that can connect Sandfort
- You need a Sandfort key (create it on the maker’s site) · 1 setting(s) to fill in (SANDFORT_BASE_URL) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
- You need a Sandfort key (create it on the maker’s site) · 1 setting(s) to fill in (SANDFORT_BASE_URL) · Install Python (uv) on your computer first (one time)
- You need a Sandfort key (create it on the maker’s site) · 1 setting(s) to fill in (SANDFORT_BASE_URL) · Install Python (uv) on your computer first (one time)
- You need a Sandfort key (create it on the maker’s site) · 1 setting(s) to fill in (SANDFORT_BASE_URL) · Install Python (uv) on your computer first (one time)
B · Others in Developer tools that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Works with Claude Code, with some setup first
You need a Sandfort key (create it on the maker’s site) · 1 setting(s) to fill in (SANDFORT_BASE_URL) · Install Python (uv) on your computer first (one time)
Let AI install it
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Sandfort for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user sandfort --env SANDFORT_BASE_URL=your-value --env SANDFORT_API_KEY=your-value -- uvx sandfort-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SANDFORT_API_KEY, SANDFORT_BASE_URL, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Sandfort tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Sign up and create a Sandfort key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
SANDFORT_BASE_URLBase URL of the Sandfort server, for example http://127.0.0.1:8000
Descriptions are as written by the maker.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Paste this command and press Enter
claude mcp add --scope user sandfort --env SANDFORT_BASE_URL=your-value --env SANDFORT_API_KEY=your-value -- uvx sandfort-mcpReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
Type /mcp in Claude Code
You should see Sandfort listed as connected
Try it
Use Sandfort and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Sandfort or shows a Sandfort tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a Sandfort key (create it on the maker’s site) · 1 setting(s) to fill in (SANDFORT_BASE_URL) · Install Python (uv) on your computer first (one time)
Let AI install it
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Sandfort for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "sandfort": { "command": "uvx", "args": [ "sandfort-mcp" ], "env": { "SANDFORT_BASE_URL": "your-value", "SANDFORT_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SANDFORT_API_KEY, SANDFORT_BASE_URL, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Sandfort tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Sign up and create a Sandfort key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
SANDFORT_BASE_URLBase URL of the Sandfort server, for example http://127.0.0.1:8000
Descriptions are as written by the maker.
Fill in your key
In the Sandfort settings, SANDFORT_API_KEY, SANDFORT_BASE_URL is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in Cursor in Agent mode
Try it
Use Sandfort and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Sandfort or shows a Sandfort tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a Sandfort key (create it on the maker’s site) · 1 setting(s) to fill in (SANDFORT_BASE_URL) · Install Python (uv) on your computer first (one time)
Let AI install it
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Sandfort for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "sandfort": { "type": "stdio", "command": "uvx", "args": [ "sandfort-mcp" ], "env": { "SANDFORT_BASE_URL": "your-value", "SANDFORT_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SANDFORT_API_KEY, SANDFORT_BASE_URL, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Sandfort tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Sign up and create a Sandfort key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
SANDFORT_BASE_URLBase URL of the Sandfort server, for example http://127.0.0.1:8000
Descriptions are as written by the maker.
Fill in your key
In the Sandfort settings, SANDFORT_API_KEY, SANDFORT_BASE_URL is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in VS Code in Agent mode
Try it
Use Sandfort and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Sandfort or shows a Sandfort tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
For developers: Terminal commands and JSON settings
Installed on your computer
Claude Code
claude mcp add --scope user sandfort --env SANDFORT_BASE_URL=your-value --env SANDFORT_API_KEY=your-value -- uvx sandfort-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"sandfort": {
"command": "uvx",
"args": [
"sandfort-mcp"
],
"env": {
"SANDFORT_BASE_URL": "your-value",
"SANDFORT_API_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"sandfort": {
"command": "uvx",
"args": [
"sandfort-mcp"
],
"env": {
"SANDFORT_BASE_URL": "your-value",
"SANDFORT_API_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"sandfort": {
"type": "stdio",
"command": "uvx",
"args": [
"sandfort-mcp"
],
"env": {
"SANDFORT_BASE_URL": "your-value",
"SANDFORT_API_KEY": "your-value"
}
}
}
}Values you fill in
SANDFORT_BASE_URLrequired envBase URL of the Sandfort server, for example http://127.0.0.1:8000SANDFORT_API_KEYsecret required envSandfort API key (starts with sf_)
Descriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
At a glance
- Registry name
io.github.malinele/sandfort- Downloads per weeki
- Not on npm/PyPI
- Connection
- Runs on your computer
- Latest versioni
- 0.1.0
- Categoryi
- Developer tools
- Published to registryi
- Nov 24, 2026
- Code last changedi
- Nov 25, 2026
- Maker
- malinele
- Packages
pypi: sandfort-mcp- Website
- sandfort.dev
- Registry status
- Active
Which apps can use it
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Related guides
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 26, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account malinele, which owns the repo
- ✓ Pass
Still maintained
Code last changed yesterday
- ! Caution
Has a licence
GitHub could not identify the licence type; open the file to check
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Published vulnerabilities (OSV.dev)
No entries on OSV.dev for sandfort-mcp@0.1.0
Checks only this package version, not every dependency · checked Nov 24, 2026
Makers: ask for a re-check or report wrong info
For makers: add a badge to your README
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/malinele-sandfort)Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
User reviews
No reviews yet
Compared with others in Developer toolsi
- More stars than 0% of the other 8006 servers in this category
- Published to the registry more recently than 93% of the other 8006 servers in this category
- Basic checks equal to or better than 56% of the other 8006 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is Sandfort safe?
It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
You need to fill in: SANDFORT_API_KEY
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed yesterday, and the latest version (0.1.0) reached the registry 2 days ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
What can I use instead?
In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
Similar alternatives
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Cloudflare MCP
Cloudflare MCP servers
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| This one Sandfort | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Cloud or install on your computer |
| Needs a key | Yes | No | No | No | No | No |
| Add with + in Claude | No | No | No | Yes | No | No |
| Basic checks | 2/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| License | NOASSERTION | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
Sandfort
The sandbox platform your security team can audit: exec, files, git and a PTY for AI agents — with a hash-chained audit log, RBAC and quotas — on a Linux Docker host. No KVM required for the default tier.
Sandfort is a self-hosted sandbox server for running AI-generated code: a REST API, a Python SDK and a CLI over isolated Docker-backed sandboxes. The container isolation tier needs only a Docker daemon. The gvisor tier needs the gVisor runsc runtime registered with Docker (docs/operations.md). The optional microvm tier needs KVM and Kata Containers. A deployment offers only container unless the operator maps the other tiers to runtimes (SANDFORT_ISOLATION_RUNTIMES). Pre-1.0 beta (version 0.1.0, released as tags v0.1.0-beta.N), source-available, built October-November 2026. Read Limits before you decide anything.
agent code ──► SDK / CLI / REST ──► Sandfort API ──► Docker driver ──► sandbox (container)
│ ▲ ├─ Postgres (prod) / SQLite (dev) │ exec, fs, git, PTY run from the ├─ workers: reconciler, auto-stop, │ host through driver primitives; │ GC, metering, webhooks │ no daemon inside the sandbox └─ audit chain, quotas, RBAC │
Why it exists
An agent that writes code has to run it somewhere. With a hosted sandbox API, that code, the repositories it touches and their data leave your infrastructure. Sandfort is the same kind of API (create a sandbox, run a command, read and write files, commit to git, open a terminal) that you run on hosts you control, with the controls a security review asks about built into the same package: who did what (audit chain), who may do what (scoped API keys, roles, OIDC SSO), and how much (per-org quotas, metering, rate limits).
It is not the only self-hosted option. See the comparison for the facts, with sources and check dates.
Quickstart
Requirements: Python 3.12 and a local Docker daemon. On Docker Desktop (macOS) the host has no disk-quota support (the storage-opt size option), so per-sandbox disk limits are not enforced there; the server logs a warning and tolerates it outside the prod environment.
git clone https://github.com/malinele/sandfort.git sandfort && cd sandfort
python3.12 -m venv .venv .venv/bin/pip install -e . .venv/bin/pip install -e sdk/python .venv/bin/pip install -e cli
Configuration comes from SANDFORT_* environment variables (see src/sandfort/config.py):
export SANDFORT_DATABASE_URL="sqlite+aiosqlite:///$PWD/sandfort.db"
export SANDFORT_DRIVER=docker export SANDFORT_API_KEY_PEPPER="$(openssl rand -hex 16)"
Keep the pepper the same for the life of the database: a new value makes every key answer 401. Store it in the env file the server starts from, not only in the shell.
Run the migration, then create the first organization. The plaintext API key (it starts with sf_) is printed once and cannot be recovered:
.venv/bin/python -m sandfort.admin_cli migrate
.venv/bin/python -m sandfort.admin_cli bootstrap --org-name Acme --org-slug acme
stdout: the sf_... key; stderr: "Store this key now; it cannot be shown again."
Start the server (interactive OpenAPI docs are served at /docs):
.venv/bin/python -m uvicorn --factory sandfort.main:create_app --port 8000
In a second terminal, use the SDK. Replace the key with the one bootstrap printed:
from sandfort_sdk import Client
client = Client(base_url="http://127.0.0.1:8000", api_key="sf_...")
sbx = client.create_sandbox(name="hello", snapshot="python:3.12-slim", wait=True) result = sbx.process_exec(argv=["python3", "-c", "print(21 * 2)"]) print(result.exit_code, result.stdout.strip()) # 0 42 client.stop(sbx.id) client.delete(sbx.id)
Check the audit chain of the rows you just wrote (run it where SANDFORT_DATABASE_URL and SANDFORT_API_KEY_PEPPER are exported):
.venv/bin/python -m sandfort.admin_cli audit-verify; echo "exit $?"
ok: N audit rows verified
exit 0
audit-verify exits 3 and prints audit chain broken: N finding(s) in M rows when any row fails. This quickstart does not set SANDFORT_AUDIT_CHAIN_KEY, so the chain is an unkeyed hash that anyone who can write the database can recompute; see Audit chain.
The gate scripts in examples/ (quickstart.py and gate2.py to gate10.py) start their own server on a temporary SQLite database, bootstrap a key and exit non-zero on any failure. Most run against local Docker and drive the server through the SDK, with exceptions: gate6.py and gate10.py use the fake driver and need no Docker daemon, gate10.py drives plain HTTP, gate1 (quickstart.py) calls the audit endpoint with raw httpx, and gate5.py keeps its server alive for a real browser. examples/benchmark.py is in the same directory but is not a gate. examples/quickstart.py (gate 1) creates a sandbox, runs Python, deletes it, checks the audit trail and checks that no SANDFORT_ variable leaks into the sandbox. The other gates cover the full toolbox, images and snapshots, quotas and signed webhooks, preview URLs, roles, OIDC sign-on and org members (gate 6), multi-node placement (gate 7), an egress allowlist, cross-node routing and SCIM.
What is in it
| Area | What exists | Source |
|---|---|---|
| Sandbox lifecycle | Create, start, stop, reset, resize (stopped sandboxes only) and delete, run inline by default and as async jobs when jobs mode is enabled (reset is unavailable in jobs mode); auto-stop and auto-delete timers; per-sandbox resources, env and labels. reset replaces the container from the same spec and keeps the sandbox id | src/sandfort/services/sandbox_reset.py, src/sandfort/workers/, src/sandfort/config.py |
| Toolbox | Process exec and code-run; sessions with a persisted working directory; async commands with live log follow over SSE; interactive PTY with resize (CLI shell and a web terminal); preview URLs for dev servers inside a sandbox | src/sandfort/toolbox/, src/sandfort/proxy/ |
| Files and git | Filesystem: list, stat, upload, download, mkdir, move, delete. Git: clone, status, add, commit, push, pull, with a temporary askpass credential that is removed afterwards | src/sandfort/api/routes/toolbox/fs.py, git.py |
| Code contexts | Named persistent Python kernels: variables survive between runs; run, streamed run and interrupt. Python only; state is lost on stop, reset and delete | src/sandfort/toolbox/code_contexts.py |
| Images | Register a public image as a snapshot; build from a declarative image spec (cache keyed by spec_hash); snapshot a running sandbox (state pending until the commit finishes, then ready); export a ready snapshot as a docker save tar; named volumes | src/sandfort/images/, src/sandfort/api/routes/snapshots.py |
| Isolation | cap_drop=ALL plus a short allow list, no-new-privileges, seccomp, pids_limit, CPU/memory/disk limits, blocked metadata IP (requires deploy/host-setup.sh run as root on the host; prod refuses to start without it), network.block_all, per-sandbox egress allowlist (needs the egress proxy, see Limits), runtime choice per sandbox (container, gvisor, microvm) | docs/architecture.md §1, docs/isolation-tiers.md, deploy/seccomp.json, deploy/host-setup.sh |
| Access control | Organizations; API keys with scopes (only an HMAC is stored, the key is shown once); roles admin, developer, viewer mapped onto scopes; label-scoped keys; OIDC SSO token exchange into one org; SCIM 2.0 Users; per-key rate limits | src/sandfort/auth/, src/sandfort/api/routes/sso.py, users.py, scim.py |
| Governance | Per-org quotas reserved transactionally; metering of allocated resources with a usage report; signed webhooks (Standard Webhooks) with delivery history and redelivery, SSRF protection | src/sandfort/services/quota.py, src/sandfort/services/usage.py, src/sandfort/webhooks/signing.py, docs/governance.md |
| Audit | Per-org hash-chained audit log; every non-GET route writes an audit row (meta-test; named exceptions, see docs/governance.md); audit-verify and audit-export admin commands; audit-export appends signed head lines that audit-verify --head checks for truncation | src/sandfort/services/audit_chain.py, src/sandfort/admin_cli.py |
| Operations | /metrics (Prometheus), /healthz, /readyz; OpenTelemetry tracing; JSON logs with request id; process roles api, worker, all; Kubernetes kit for one sandbox node in deploy/k8s/ (single pod, role all; multi-node manifests are not shipped); runbook in docs/operations.md; SQLite for development, Postgres for production | docs/operations.md, deploy/ |
| Extensibility | Frozen driver protocols (src/sandfort/drivers/base.py), entry-point registry and a driver conformance suite. The only production driver is Docker | src/sandfort/drivers/ |
| Interfaces | 91 HTTP operations on 70 paths in the exported OpenAPI spec (counted 2026-11-22; includes /healthz and /readyz; excludes the PTY WebSocket, /metrics, the preview proxy, the web terminal, /v1/nodes and the SCIM routes). Python SDK (sync and async), TypeScript SDK (subset, see below), CLI sandfort, an MCP server over stdio | openapi/sandfort.v1.json, sdk/, cli/, mcp_server/sandfort_mcp.py |
Isolation tiers
Isolation is chosen per sandbox with the isolation field of POST /v1/sandboxes; GET /v1/isolation lists the tiers a deployment offers.
| Tier | Runtime | Boundary | What it costs |
|---|---|---|---|
container | runc | Linux namespaces, cgroups, seccomp, a reduced capability set | Shares the host kernel |
gvisor | runsc (gVisor) | A user-space kernel handles the sandbox's system calls; not a hardware boundary | Spawn-heavy and small-file-heavy work measured about 3x to about 9x slower, and about 40x for a fork-heavy bash loop (docs/isolation-tiers.md); exceeding a memory or process limit usually stops the whole sandbox; large writes count toward memory |
microvm | Kata Containers behind the same Docker driver | Hardware virtualization, a guest kernel per sandbox | Needs KVM; create to started about 4 s on the hosted beta, which runs it on nested KVM |
Sandfort does not claim stronger isolation than microVM-based products. The Firecracker driver in src/sandfort/drivers/firecracker/ is a skeleton tested against a mock agent and is not offered. Details: docs/isolation-tiers.md.
Audit chain
Each audit row stores prev_hash and hash = sha256(prev_hash + canonical(row)); canonical covers the immutable fields as compact JSON with sorted keys. With SANDFORT_AUDIT_CHAIN_KEY set (at least 32 bytes) the hash is HMAC-SHA256(key, ...), so a database writer without the key cannot recompute a rewritten history. Without the key the chain is an unkeyed hash: anyone who can write the database can rewrite history consistently and audit-verify still passes (in prod the server refuses to start in that state unless SANDFORT_UNKEYED_AUDIT_CHAIN_ACKNOWLEDGED=true; dev and test log a warning). Set the key for any deployment where that matters. Every non-GET route writes an audit row, with named exceptions: a refused call writes request.denied, and failed authentication is not audited (docs/governance.md). audit-verify re-checks every org's chain and exits 3 on any finding (hash_mismatch, link_broken, missing_hash, head_missing, head_invalid). The chain is tamper-evident, not immutable: it shows that history changed, it does not stop a writer from changing it.
Limits
These are the current limits, stated up front. Each one comes from the code or the docs in this rep