Skip to content
sandboxrouting

Chalk Sandboxes

chalk, paid only, Container isolation.

$0.0818/h

No free usage the router counts. At 2 vCPU and 4 GiB the router ranks it at $0.0818/h. It is used only with allowPaid on.

Terms

Price
$0.0249/vCPU-h + $0.008/GiB-h preemptible ($0.082/h for 2 vCPU / 4 GiB)
Notes
preemptible by default; runs on the K8S compute class
Adapter's note
No free tier; pay as you go with no up-front cost. Preemptible by default: a sandbox can be stopped early.
Checked
Nov 21, 2026 against chalk.ai/pricing

Chalk's SDK runs a command on its default host compute class only over a bidirectional stream, which fetch can't open, and on the K8S class through one unary call, so the adapter creates K8S-class sandboxes; one docs page says those don't support exec, which only a live run will settle. Chalk documents gVisor for its sandboxes but not for that class, so the adapter claims container. Non-preemptible work costs $0.0747/vCPU-h + $0.024/GiB-h.

The adapter

Chalk Sandboxes (chalk.ai): gVisor-hardened containers on Chalk Serverless, self-serve and pay as you go, no free tier. Preemptible by default at $0.0249 per vCPU-hour and $0.0080 per GiB-hour ($0.082/h for 2 vCPU / 4 GiB); non-preemptible work, on request, is $0.0747 and $0.0240 and runs up to 24 h. Per-second billing. API: Connect/gRPC services on the API server (https://api.chalk.ai): chalk.sandbox.v2.SandboxService (CreateSandbox, GetSandbox, ListSandboxes, TerminateSandbox) and SandboxProcessService (ExecCommand), as the official SDK calls them (PyPI `chalkcompute` 2.14.3, chalkcompute/_sandbox.py and the generated chalkcompute/_gen/chalk/sandbox/v2 stubs). Docs: https://docs.chalk.ai/docs/compute/sandbox, https://docs.chalk.ai/compute-docs/sandbox.md, prices https://chalk.ai/pricing. Credentials are a client id and secret exchanged at POST /v1/oauth/token (as chalkpy does), then scoped to one environment; calls carry the token and X-Chalk-Env-Id. Doubts, none checked against the service: the SDK speaks gRPC, and this adapter speaks the Connect protocol's JSON form to the same paths, which Connect servers accept alongside gRPC. The SDK runs a command on the default host compute class only through a bidirectional stream, which fetch can't open, and through the unary ExecCommand on the K8S class ("one-shot execution"); so sandboxes are created with compute class K8S, though one docs page says a k8s sandbox does not support exec. Isolation on that class isn't documented, so the adapter claims `container`. The spec's `lifetime` ends the sandbox at its deadline. Files use the router's exec fallback.

Keys
CHALK_CLIENT_ID , CHALK_CLIENT_SECRET ( CHALK_ENVIRONMENT , CHALK_API_SERVER optional)
Connects through
Connect (JSON) chalk.sandbox.v2 services at api.chalk.ai, token from /v1/oauth/token
Capabilities
Any OCI image
Isolation
Container
Operating system
Linux
Longest sandbox
no limit declared
Longest command
no cap declared
Timeout
The provider stops it at the deadline
Billing
Wall clock, every second it runs
Source
src/providers/chalk.ts, and the provider’s site
Route only here
const sbx = await router.create({ providers: ["chalk"] });
Override its terms in sandboxrouting.json
{
  "providers": {
    "chalk": {
      "freeTier": {
        "kind": "none"
      },
      "priority": 10
    }
  }
}