Isolated sandboxes
Set packages and network rules once. Each session gets its own sandbox.
-
Restrict outbound hosts
Allow only the hosts, package registries, and MCP servers a task needs.
Read the docsconst environment = await client.waitForPending( await client.environments.create({ name: "locked-down", config: { type: "cloud", networking: { type: "limited", allowed_hosts: ["github.com"], allow_package_managers: true, allow_mcp_servers: true, }, }, }),)curl --fail-with-body -X POST "$CHECKFU_BASE_URL/v1/environments" \ -H "Authorization: Bearer $CHECKFU_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"locked-down","config":{"type":"cloud","networking":{"type":"limited","allowed_hosts":["github.com"]}}}'checkfu environments create --name locked-down \ --config '{"type":"cloud","networking":{"type":"limited","allowed_hosts":["github.com"],"allow_package_managers":true,"allow_mcp_servers":true}}'{ "name": "environments_createEnvironment", "arguments": { "body": { "name": "locked-down", "config": { "type": "cloud", "networking": { "type": "limited", "allowed_hosts": ["github.com"] } } } }}name: locked-downconfig: type: cloud networking: type: limited allowed_hosts: [github.com] allow_package_managers: true allow_mcp_servers: true -
Install packages on boot
Declare apt, npm, or pip packages and an optional setup script.
Read the docsawait client.environments.update(environment.id, { version: environment.version, config: { type: "cloud", setup: { packages: { npm: ["typescript", "vitest"] }, script: "corepack enable", }, },})curl --fail-with-body -X POST "$CHECKFU_BASE_URL/v1/environments/$ENVIRONMENT_ID" \ -H "Authorization: Bearer $CHECKFU_API_KEY" \ -H "Content-Type: application/json" \ -d '{"version":1,"config":{"type":"cloud","setup":{"packages":{"npm":["typescript","vitest"]}}}}'checkfu environments update --environment-id "$ENVIRONMENT_ID" \ --current-version 1 --config @environment.json{ "name": "environments_updateEnvironment", "arguments": { "path": { "environment_id": "env_123" }, "body": { "version": 1, "config": { "type": "cloud", "setup": { "packages": { "npm": ["typescript", "vitest"] } } } } }}setup: packages: npm: [typescript, vitest] script: corepack enable -
Boot on demand, sleep when idle
Each session gets its own Linux container and keeps /workspace across sleeps.
Read the docsconst session = await client.waitForPending( await client.sessions.create({ agent: agent.id, environment_id: environment.id, }),)curl --fail-with-body -X POST "$CHECKFU_BASE_URL/v1/sessions" \ -H "Authorization: Bearer $CHECKFU_API_KEY" \ -H "Content-Type: application/json" \ -d '{"agent":"agent_123","environment_id":"env_123"}'checkfu sessions create --agent "$AGENT_ID" --environment-id "$ENVIRONMENT_ID"{ "name": "sessions_createSession", "arguments": { "body": { "agent": "agent_123", "environment_id": "env_123" } }}agent: agent_123environment_id: env_123
Managed agents for any harness
Pick the harness and model. Checkfu runs everything around them.