An open-source, faster Devin alternative
TypeScript
docs-sandbox: fix markdown links, add Holocron deploy workflow
Devin AI4480bc95db27
diff --git a/.github/workflows/deploy-docs-sandbox.yml b/.github/workflows/deploy-docs-sandbox.ymlnew file mode 100644index 00000000..bee60b23--- /dev/null+++ b/.github/workflows/deploy-docs-sandbox.yml@@ -0,0 +1,31 @@+name: Deploy Sandbox Docs (Holocron)++on:+ push:+ branches: [main]+ paths:+ - 'docs-sandbox/**'+ - '.github/workflows/deploy-docs-sandbox.yml'+ workflow_dispatch:++concurrency:+ group: deploy-docs-sandbox+ cancel-in-progress: false++jobs:+ deploy:+ name: Deploy to Holocron+ runs-on: ubuntu-latest+ permissions:+ contents: read+ steps:+ - uses: actions/checkout@v4+ - uses: actions/setup-node@v4+ with:+ node-version: 22+ - run: npm ci+ working-directory: docs-sandbox+ - run: npx -y "@holocron.so/cli" deploy+ working-directory: docs-sandbox+ env:+ HOLOCRON_KEY: ${{ secrets.HOLOCRON_KEY }}diff --git a/docs-sandbox/api-reference/agent-feedback.mdx b/docs-sandbox/api-reference/agent-feedback.mdxindex 5a661820..d68f2ee6 100644--- a/docs-sandbox/api-reference/agent-feedback.mdx+++ b/docs-sandbox/api-reference/agent-feedback.mdx@@ -119,5 +119,5 @@ Requests carrying a bad or stale signature are rejected with `401`.## From the CLIThe `oc` CLI ships an emitter so agents running inside OpenComputer (or anywhere `oc` is-installed) can report issues without hand-writing JSON — see [`oc feedback`](/cli/feedback. It+installed) can report issues without hand-writing JSON — see [`oc feedback`](/cli/feedback). Itworks against any feedback.now receiver, not only OpenComputer.diff --git a/docs-sandbox/api-reference/capacity/create-reservations.mdx b/docs-sandbox/api-reference/capacity/create-reservations.mdxindex acb6a65a..7b5fbc4b 100644--- a/docs-sandbox/api-reference/capacity/create-reservations.mdx+++ b/docs-sandbox/api-reference/capacity/create-reservations.mdx@@ -6,7 +6,7 @@ api: 'POST /api/capacity/reservations'Commit capacity across one or more 15-minute UTC intervals in a singleatomic write. The result is one reservation event with a server-generated`reservationId` covering all intervals in the request. See-[Reserving capacity](/reserved-capacity/reserving for the full write+[Reserving capacity](/reserved-capacity/reserving) for the full writecontract.Send an `Idempotency-Key` header so retries return the original result.diff --git a/docs-sandbox/api-reference/capacity/get-calendar.mdx b/docs-sandbox/api-reference/capacity/get-calendar.mdxindex a604ab59..3a623d7a 100644--- a/docs-sandbox/api-reference/capacity/get-calendar.mdx+++ b/docs-sandbox/api-reference/capacity/get-calendar.mdx@@ -6,7 +6,7 @@ api: 'GET /api/capacity/calendar'Return a planning snapshot of 15-minute UTC intervals in the requested window.One row per interval with current `reservedGb`, `reservableGb`, and theper-org `reservationLimitGb`. See-[Reading the calendar](/reserved-capacity/calendar for field semantics.+[Reading the calendar](/reserved-capacity/calendar) for field semantics.<ParamField query="from" type="string" required>Window start. RFC 3339, aligned to 15 minutes, UTC.diff --git a/docs-sandbox/api-reference/files/generate-download-url.mdx b/docs-sandbox/api-reference/files/generate-download-url.mdxindex 162fbf2a..4fe7a7d0 100644--- a/docs-sandbox/api-reference/files/generate-download-url.mdx+++ b/docs-sandbox/api-reference/files/generate-download-url.mdx@@ -3,7 +3,7 @@ title: 'Generate Download URL'api: 'POST /api/sandboxes/{id}/files/download-url'----Generates a signed URL for downloading a file without an API key. See [Signed URLs](/sandboxes/signed-urls for usage guide.+Generates a signed URL for downloading a file without an API key. See [Signed URLs](/sandboxes/signed-urls) for usage guide.<ParamField path="id" type="string" required>Sandbox IDdiff --git a/docs-sandbox/api-reference/files/generate-upload-url.mdx b/docs-sandbox/api-reference/files/generate-upload-url.mdxindex f603faff..d00f5227 100644--- a/docs-sandbox/api-reference/files/generate-upload-url.mdx+++ b/docs-sandbox/api-reference/files/generate-upload-url.mdx@@ -3,7 +3,7 @@ title: 'Generate Upload URL'api: 'POST /api/sandboxes/{id}/files/upload-url'----Generates a signed URL for uploading a file without an API key. See [Signed URLs](/sandboxes/signed-urls for usage guide.+Generates a signed URL for uploading a file without an API key. See [Signed URLs](/sandboxes/signed-urls) for usage guide.<ParamField path="id" type="string" required>Sandbox IDdiff --git a/docs-sandbox/api-reference/files/signed-download.mdx b/docs-sandbox/api-reference/files/signed-download.mdxindex 163bfdd0..e7f32af0 100644--- a/docs-sandbox/api-reference/files/signed-download.mdx+++ b/docs-sandbox/api-reference/files/signed-download.mdx@@ -5,7 +5,7 @@ api: 'GET /api/sandboxes/{id}/files/download'Download a file using a signed URL. No authentication required — the signature and expiry are validated from query parameters.-Generate a signed URL first via [Generate Download URL](/api-reference/files/generate-download-url.+Generate a signed URL first via [Generate Download URL](/api-reference/files/generate-download-url).<ParamField path="id" type="string" required>Sandbox IDdiff --git a/docs-sandbox/api-reference/files/signed-upload.mdx b/docs-sandbox/api-reference/files/signed-upload.mdxindex 284f9067..42da0049 100644--- a/docs-sandbox/api-reference/files/signed-upload.mdx+++ b/docs-sandbox/api-reference/files/signed-upload.mdx@@ -5,7 +5,7 @@ api: 'PUT /api/sandboxes/{id}/files/upload'Upload a file using a signed URL. No authentication required — the signature and expiry are validated from query parameters. Send file content as the request body.-Generate a signed URL first via [Generate Upload URL](/api-reference/files/generate-upload-url.+Generate a signed URL first via [Generate Upload URL](/api-reference/files/generate-upload-url).<ParamField path="id" type="string" required>Sandbox IDdiff --git a/docs-sandbox/api-reference/preview/rotate-auth.mdx b/docs-sandbox/api-reference/preview/rotate-auth.mdxindex 012c8636..2f37ea3d 100644--- a/docs-sandbox/api-reference/preview/rotate-auth.mdx+++ b/docs-sandbox/api-reference/preview/rotate-auth.mdx@@ -5,7 +5,7 @@ api: 'POST /api/sandboxes/{id}/preview/rotate'Mint a new bearer token for the sandbox's preview-URL auth gate. The old token stops working immediately — there is no zero-downtime dual-token mode, so roll the new token out to your caller before discarding the old one.-If the sandbox was originally created without [`previewAuth`](/api-reference/sandboxes/create, this call installs a token and starts enforcing the gate from that point on.+If the sandbox was originally created without [`previewAuth`](/api-reference/sandboxes/create), this call installs a token and starts enforcing the gate from that point on.The plaintext is returned exactly once in the response. Only the SHA-256 hash is persisted server-side; the server cannot show you the token again later.diff --git a/docs-sandbox/api-reference/sandboxes/create.mdx b/docs-sandbox/api-reference/sandboxes/create.mdxindex 47aef39f..42d32dd7 100644--- a/docs-sandbox/api-reference/sandboxes/create.mdx+++ b/docs-sandbox/api-reference/sandboxes/create.mdx@@ -22,7 +22,7 @@ Create a new sandbox.</ParamField><ParamField body="burst" type="boolean">- Create a [Burst Sandbox](/sandboxes/burst-sandboxes. Disk is preserved across infrastructure restarts; processes may restart.+ Create a [Burst Sandbox](/sandboxes/burst-sandboxes). Disk is preserved across infrastructure restarts; processes may restart.</ParamField>The 1 GB tier provides 1 vCPU on a best-effort basis. For guaranteed CPU allocation, use the 4 GB tier or above.@@ -38,7 +38,7 @@ If both `cpuCount` and `memoryMB` are provided, they must match a platform tier.</ParamField><ParamField body="image" type="object">- Declarative image manifest (see [Image builder](/sandboxes/templates#image-configuration)+ Declarative image manifest (see [Image builder](/sandboxes/templates#image-configuration))</ParamField><ParamField body="snapshot" type="string">@@ -46,13 +46,13 @@ If both `cpuCount` and `memoryMB` are provided, they must match a platform tier.</ParamField><ParamField body="webhooks" type="object[]">- Register [webhook](/sandboxes/webhooks destination(s) for this sandbox's lifecycle events, pinned to this sandbox. Registering inline (rather than via a separate call) means the endpoints exist **before** `sandbox.created` / `sandbox.ready` are relayed, so you don't miss the first events.+ Register [webhook](/sandboxes/webhooks) destination(s) for this sandbox's lifecycle events, pinned to this sandbox. Registering inline (rather than via a separate call) means the endpoints exist **before** `sandbox.created` / `sandbox.ready` are relayed, so you don't miss the first events.- `url` *(string, required)*: HTTPS endpoint.- `secret` *(string)*: signing secret; omit and one is generated and returned on the response (`webhooks[].secret`), also re-fetchable later.- `eventTypes` *(string[])*: event-type allow-list (default all).- Each spec is validated up-front (same rules as [`POST /api/webhooks`](/api-reference/webhooks/create): a non-HTTPS `url` or unknown `eventTypes` is rejected with `400`. Registration is otherwise **best-effort** — if a spec fails to register downstream, the sandbox is still created; inspect the echoed `webhooks: [{ id, url, secret? }]` to see what registered.+ Each spec is validated up-front (same rules as [`POST /api/webhooks`](/api-reference/webhooks/create)): a non-HTTPS `url` or unknown `eventTypes` is rejected with `400`. Registration is otherwise **best-effort** — if a spec fails to register downstream, the sandbox is still created; inspect the echoed `webhooks: [{ id, url, secret? }]` to see what registered.</ParamField><ParamField body="previewAuth" type="object">@@ -61,7 +61,7 @@ If both `cpuCount` and `memoryMB` are provided, they must match a platform tier.- `scheme` *(string)*: must be `"bearer"`. Reserved for HMAC/JWT later.- `token` *(string)*: `"auto"` (or omitted) → server generates a 256-bit random token. An explicit string of at least 16 characters lets you bring your own.- The plaintext is returned exactly once in the response as `previewAuthToken`; only its SHA-256 hash is stored. Use [`POST /api/sandboxes/{id}/preview/rotate`](/api-reference/preview/rotate-auth to mint a new one.+ The plaintext is returned exactly once in the response as `previewAuthToken`; only its SHA-256 hash is stored. Use [`POST /api/sandboxes/{id}/preview/rotate`](/api-reference/preview/rotate-auth) to mint a new one.Omit this field for the legacy open behavior — preview URLs respond to anyone who can reach the hostname.</ParamField>@@ -80,5 +80,5 @@ If both `cpuCount` and `memoryMB` are provided, they must match a platform tier.}```-`previewAuthToken` is only present when `previewAuth` was set in the request — read it once and store it durably; the server will not return it again. `webhooks` is present only when `webhooks` were requested; each `secret` (`whsec_…`) is returned here and stays re-fetchable via [`GET /api/webhooks/{id}/secret`](/api-reference/webhooks/get.+`previewAuthToken` is only present when `previewAuth` was set in the request — read it once and store it durably; the server will not return it again. `webhooks` is present only when `webhooks` were requested; each `secret` (`whsec_…`) is returned here and stays re-fetchable via [`GET /api/webhooks/{id}/secret`](/api-reference/webhooks/get).</ResponseExample>diff --git a/docs-sandbox/api-reference/sandboxes/get.mdx b/docs-sandbox/api-reference/sandboxes/get.mdxindex 98e2d02c..1ae7c8c6 100644--- a/docs-sandbox/api-reference/sandboxes/get.mdx+++ b/docs-sandbox/api-reference/sandboxes/get.mdx@@ -24,4 +24,4 @@ Get sandbox details by ID. Available on both control plane and worker.`tags` and `tagsLastUpdatedAt` are always present — empty object and`null` respectively when no tags are set. Update them with-[`PUT /api/sandboxes/{id}/tags`](/api-reference/sandboxes/set-tags.+[`PUT /api/sandboxes/{id}/tags`](/api-reference/sandboxes/set-tags).diff --git a/docs-sandbox/api-reference/sandboxes/list.mdx b/docs-sandbox/api-reference/sandboxes/list.mdxindex 0016ebcc..b18858d6 100644--- a/docs-sandbox/api-reference/sandboxes/list.mdx+++ b/docs-sandbox/api-reference/sandboxes/list.mdx@@ -22,4 +22,4 @@ List all running sandboxes.Each entry carries `tags` (always present, empty object when unset)and `tagsLastUpdatedAt` (null when unset). To filter by tag, use-[`GET /api/usage?groupBy=sandbox&filter[tag:<key>]=<value>`](/api-reference/usage/get-usage.+[`GET /api/usage?groupBy=sandbox&filter[tag:<key>]=<value>`](/api-reference/usage/get-usage).diff --git a/docs-sandbox/api-reference/snapshots/create.mdx b/docs-sandbox/api-reference/snapshots/create.mdxindex 700d238c..b239486d 100644--- a/docs-sandbox/api-reference/snapshots/create.mdx+++ b/docs-sandbox/api-reference/snapshots/create.mdx@@ -10,7 +10,7 @@ Create a pre-built sandbox environment from a declarative image manifest.</ParamField><ParamField body="image" type="object" required>- Declarative image manifest (see [Image builder](/sandboxes/templates#image-configuration)+ Declarative image manifest (see [Image builder](/sandboxes/templates#image-configuration))</ParamField><ResponseExample>diff --git a/docs-sandbox/api-reference/usage/get-sandbox-usage.mdx b/docs-sandbox/api-reference/usage/get-sandbox-usage.mdxindex fbd69a10..1f90397d 100644--- a/docs-sandbox/api-reference/usage/get-sandbox-usage.mdx+++ b/docs-sandbox/api-reference/usage/get-sandbox-usage.mdx@@ -191,7 +191,7 @@ running for one minute, `memoryAllocatedGbSeconds` is### Use the aggregator for cross-sandbox questions-To rank sandboxes by usage, use [`GET /api/usage`](/api-reference/usage/get-usage+To rank sandboxes by usage, use [`GET /api/usage`](/api-reference/usage/get-usage)— that endpoint serves cross-sandbox aggregates and supportsfilter/sort/cursor. The per-sandbox endpoint here is for "look atthis one sandbox in detail."diff --git a/docs-sandbox/api-reference/usage/get-usage.mdx b/docs-sandbox/api-reference/usage/get-usage.mdxindex b16c43fe..e627e90b 100644--- a/docs-sandbox/api-reference/usage/get-usage.mdx+++ b/docs-sandbox/api-reference/usage/get-usage.mdx@@ -7,7 +7,7 @@ Aggregate usage grouped by sandbox or by tag. Dollars are not exposed— the platform returns the same physical quantities the invoice iscomputed from. For per-sandbox time-series drilldown (memoryutilization over time, 1-minute resolution), see-[`GET /api/sandboxes/:id/usage`](/api-reference/usage/get-sandbox-usage.+[`GET /api/sandboxes/:id/usage`](/api-reference/usage/get-sandbox-usage).<Note>**Preview:** Usage and tag APIs are new. Endpoints, response fields,diff --git a/docs-sandbox/api-reference/webhooks/create.mdx b/docs-sandbox/api-reference/webhooks/create.mdxindex 1482d8df..ddb98ce7 100644--- a/docs-sandbox/api-reference/webhooks/create.mdx+++ b/docs-sandbox/api-reference/webhooks/create.mdx@@ -3,7 +3,7 @@ title: 'Create Webhook'api: 'POST /api/webhooks'----Register a webhook destination for sandbox lifecycle events. See [Webhooks](/sandboxes/webhooks.+Register a webhook destination for sandbox lifecycle events. See [Webhooks](/sandboxes/webhooks).<ParamField body="url" type="string" required>HTTPS endpoint to deliver to. (SSRF protection is applied by the delivery provider at send time, not at registration.)@@ -18,7 +18,7 @@ Register a webhook destination for sandbox lifecycle events. See [Webhooks](/san</ParamField><ParamField body="secret" type="string">- Signing secret. Omit and one is generated (`whsec_…`). The secret is returned in the create response and is re-fetchable any time via [`GET /api/webhooks/{id}/secret`](/api-reference/webhooks/get.+ Signing secret. Omit and one is generated (`whsec_…`). The secret is returned in the create response and is re-fetchable any time via [`GET /api/webhooks/{id}/secret`](/api-reference/webhooks/get).</ParamField><ParamField body="name" type="string">@@ -53,5 +53,5 @@ Without an `Idempotency-Key`, each call creates a **new** destination and return}```-The `secret` is returned here and stays re-fetchable via [`GET /api/webhooks/{id}/secret`](/api-reference/webhooks/get — store it to verify deliveries.+The `secret` is returned here and stays re-fetchable via [`GET /api/webhooks/{id}/secret`](/api-reference/webhooks/get) — store it to verify deliveries.</ResponseExample>diff --git a/docs-sandbox/api-reference/webhooks/delete.mdx b/docs-sandbox/api-reference/webhooks/delete.mdxindex 980b7455..2f23c794 100644--- a/docs-sandbox/api-reference/webhooks/delete.mdx+++ b/docs-sandbox/api-reference/webhooks/delete.mdx@@ -3,7 +3,7 @@ title: 'Delete Webhook'api: 'DELETE /api/webhooks/{id}'----Delete a destination. It stops receiving events, drops out of [list](/api-reference/webhooks/list, and its delivery-provider endpoint is removed. Delivery history for a deleted destination is no longer queryable. See [Webhooks](/sandboxes/webhooks.+Delete a destination. It stops receiving events, drops out of [list](/api-reference/webhooks/list), and its delivery-provider endpoint is removed. Delivery history for a deleted destination is no longer queryable. See [Webhooks](/sandboxes/webhooks).<ParamField path="id" type="string" required>Destination ID (`whk_…`).diff --git a/docs-sandbox/api-reference/webhooks/deliveries-list.mdx b/docs-sandbox/api-reference/webhooks/deliveries-list.mdxindex 9f62dbb0..70054c13 100644--- a/docs-sandbox/api-reference/webhooks/deliveries-list.mdx+++ b/docs-sandbox/api-reference/webhooks/deliveries-list.mdx@@ -5,15 +5,15 @@ api: 'GET /api/webhooks/{id}/deliveries'List a destination's most recent delivery attempts (up to 50). Each entry is a delivery-providerattempt record. The attempt index lags actual delivery by a few seconds, and resolving a single-message ([get](/api-reference/webhooks/delivery-get) / [redeliver](/api-reference/webhooks/redeliver-can lag longer (~30s+) — retry with backoff. See [Webhooks](/sandboxes/webhooks#deliveries.+message ([get](/api-reference/webhooks/delivery-get)) / [redeliver](/api-reference/webhooks/redeliver)+can lag longer (~30s+) — retry with backoff. See [Webhooks](/sandboxes/webhooks#deliveries).<ParamField path="id" type="string" required>Destination ID (`whk_…`).</ParamField><ResponseField name="data[].id" type="string">- The message id — the key for [get](/api-reference/webhooks/delivery-get / [redeliver](/api-reference/webhooks/redeliver; equals the `svix-id` header on the delivery.+ The message id — the key for [get](/api-reference/webhooks/delivery-get) / [redeliver](/api-reference/webhooks/redeliver); equals the `svix-id` header on the delivery.</ResponseField><ResponseField name="data[].attemptId" type="string">diff --git a/docs-sandbox/api-reference/webhooks/delivery-get.mdx b/docs-sandbox/api-reference/webhooks/delivery-get.mdxindex 3f633317..d14e4f3b 100644--- a/docs-sandbox/api-reference/webhooks/delivery-get.mdx+++ b/docs-sandbox/api-reference/webhooks/delivery-get.mdx@@ -3,12 +3,12 @@ title: 'Get Delivery'api: 'GET /api/webhooks/{id}/deliveries/{deliveryId}'----Fetch one delivered message by id. See [Webhooks](/sandboxes/webhooks#deliveries.+Fetch one delivered message by id. See [Webhooks](/sandboxes/webhooks#deliveries).<Note>The delivery provider's attempt index and message store are eventually consistent: a message id can-appear in [list deliveries](/api-reference/webhooks/deliveries-list **before** this endpoint (and-[redeliver](/api-reference/webhooks/redeliver) can resolve it — observed up to ~30s+ after the+appear in [list deliveries](/api-reference/webhooks/deliveries-list) **before** this endpoint (and+[redeliver](/api-reference/webhooks/redeliver)) can resolve it — observed up to ~30s+ after theattempt. So a `404` shortly after a delivery is transient — **retry with backoff** rather thantreating it as final.</Note>@@ -18,7 +18,7 @@ treating it as final.</ParamField><ParamField path="deliveryId" type="string" required>- Message id (`msg_…`, the `id` from [list deliveries](/api-reference/webhooks/deliveries-list; equals the `svix-id` header).+ Message id (`msg_…`, the `id` from [list deliveries](/api-reference/webhooks/deliveries-list); equals the `svix-id` header).</ParamField><ResponseExample>diff --git a/docs-sandbox/api-reference/webhooks/get.mdx b/docs-sandbox/api-reference/webhooks/get.mdxindex 1843aeef..a28da2bf 100644--- a/docs-sandbox/api-reference/webhooks/get.mdx+++ b/docs-sandbox/api-reference/webhooks/get.mdx@@ -3,7 +3,7 @@ title: 'Get Webhook'api: 'GET /api/webhooks/{id}'----Fetch one webhook destination. The response carries `hasSecret` (not the secret itself); fetch the secret value any time via `GET /api/webhooks/{id}/secret` → `{ "secret": "whsec_…" }`. See [Webhooks](/sandboxes/webhooks.+Fetch one webhook destination. The response carries `hasSecret` (not the secret itself); fetch the secret value any time via `GET /api/webhooks/{id}/secret` → `{ "secret": "whsec_…" }`. See [Webhooks](/sandboxes/webhooks).<ParamField path="id" type="string" required>Destination ID (`whk_…`).diff --git a/docs-sandbox/api-reference/webhooks/list.mdx b/docs-sandbox/api-reference/webhooks/list.mdxindex 69af7628..36bda433 100644--- a/docs-sandbox/api-reference/webhooks/list.mdx+++ b/docs-sandbox/api-reference/webhooks/list.mdx@@ -3,7 +3,7 @@ title: 'List Webhooks'api: 'GET /api/webhooks'----List the org's webhook destinations. Deleted destinations are excluded. See [Webhooks](/sandboxes/webhooks.+List the org's webhook destinations. Deleted destinations are excluded. See [Webhooks](/sandboxes/webhooks).<ResponseExample>```json 200diff --git a/docs-sandbox/api-reference/webhooks/redeliver.mdx b/docs-sandbox/api-reference/webhooks/redeliver.mdxindex bdc509e5..b1d4eb1e 100644--- a/docs-sandbox/api-reference/webhooks/redeliver.mdx+++ b/docs-sandbox/api-reference/webhooks/redeliver.mdx@@ -3,14 +3,14 @@ title: 'Redeliver'api: 'POST /api/webhooks/{id}/deliveries/{deliveryId}/redeliver'----Re-send a message to the endpoint. The redelivery carries the **same** `svix-id`, so a receiver that dedupes treats it as the same message. Use it when the original never landed. See [Webhooks](/sandboxes/webhooks#deliveries.+Re-send a message to the endpoint. The redelivery carries the **same** `svix-id`, so a receiver that dedupes treats it as the same message. Use it when the original never landed. See [Webhooks](/sandboxes/webhooks#deliveries).<ParamField path="id" type="string" required>Destination ID (`whk_…`).</ParamField><ParamField path="deliveryId" type="string" required>- Message id (`msg_…`, from [list deliveries](/api-reference/webhooks/deliveries-list).+ Message id (`msg_…`, from [list deliveries](/api-reference/webhooks/deliveries-list)).</ParamField><ResponseExample>@@ -21,4 +21,4 @@ Re-send a message to the endpoint. The redelivery carries the **same** `svix-id````</ResponseExample>-The new attempt appears under [deliveries](/api-reference/webhooks/deliveries-list.+The new attempt appears under [deliveries](/api-reference/webhooks/deliveries-list).diff --git a/docs-sandbox/api-reference/webhooks/test.mdx b/docs-sandbox/api-reference/webhooks/test.mdxindex 1dfbe5e5..347fd856 100644--- a/docs-sandbox/api-reference/webhooks/test.mdx+++ b/docs-sandbox/api-reference/webhooks/test.mdx@@ -7,7 +7,7 @@ Enqueue a sample event to exercise your endpoint. It sends a real, signed messagthe destination is subscribed to (the first of its `eventTypes`, defaulting to `sandbox.created`),carrying the **normal delivery envelope** with `event.data.test = true` — so you exercise your realverifier and parser. Delivery is **asynchronous** — this returns once the message is accepted; check-[deliveries](/api-reference/webhooks/deliveries-list for the outcome.+[deliveries](/api-reference/webhooks/deliveries-list) for the outcome.<Note>The sample is published through your org's webhook app, so it is **not** isolated to this one@@ -15,7 +15,7 @@ destination: any other destination subscribed to the same event type (and matchireceives it (likewise marked `event.data.test = true`).</Note>-See [Webhooks](/sandboxes/webhooks.+See [Webhooks](/sandboxes/webhooks).<ParamField path="id" type="string" required>Destination ID (`whk_…`).@@ -31,4 +31,4 @@ See [Webhooks](/sandboxes/webhooks.```</ResponseExample>-`messageId` is the delivery's message id — find its attempt under [deliveries](/api-reference/webhooks/deliveries-list.+`messageId` is the delivery's message id — find its attempt under [deliveries](/api-reference/webhooks/deliveries-list).diff --git a/docs-sandbox/api-reference/webhooks/update.mdx b/docs-sandbox/api-reference/webhooks/update.mdxindex 88bff9d4..250bc1d6 100644--- a/docs-sandbox/api-reference/webhooks/update.mdx+++ b/docs-sandbox/api-reference/webhooks/update.mdx@@ -3,7 +3,7 @@ title: 'Update Webhook'api: 'PATCH /api/webhooks/{id}'----Update a destination — pause/resume, retune filters, change the URL, or rotate the secret. See [Webhooks](/sandboxes/webhooks.+Update a destination — pause/resume, retune filters, change the URL, or rotate the secret. See [Webhooks](/sandboxes/webhooks).<ParamField path="id" type="string" required>Destination ID (`whk_…`).@@ -29,7 +29,7 @@ Update a destination — pause/resume, retune filters, change the URL, or rotateRename the destination.</ParamField>-`sandboxId` (scope) is **immutable** — set it at create; it can't be changed here. The current signing secret is re-fetchable any time via [`GET /api/webhooks/{id}/secret`](/api-reference/webhooks/get.+`sandboxId` (scope) is **immutable** — set it at create; it can't be changed here. The current signing secret is re-fetchable any time via [`GET /api/webhooks/{id}/secret`](/api-reference/webhooks/get).<ResponseExample>```json 200diff --git a/docs-sandbox/browser-sessions/overview.mdx b/docs-sandbox/browser-sessions/overview.mdxindex 9b162e39..d5894f7d 100644--- a/docs-sandbox/browser-sessions/overview.mdx+++ b/docs-sandbox/browser-sessions/overview.mdx@@ -17,7 +17,7 @@ If your organization has not been invited to the preview, Browser Session APIcalls may fail even when your OpenComputer API key is valid.Use Browser Sessions when you want a cloud browser without installing Chromium-inside an OpenComputer sandbox. Use [sandboxes](/sandboxes/overview when you+inside an OpenComputer sandbox. Use [sandboxes](/sandboxes/overview) when youneed a full Linux VM with your own browser runtime and filesystem.## Create a Browserdiff --git a/docs-sandbox/cli/checkpoint.mdx b/docs-sandbox/cli/checkpoint.mdxindex 621bf612..e720ae71 100644--- a/docs-sandbox/cli/checkpoint.mdx+++ b/docs-sandbox/cli/checkpoint.mdx@@ -77,5 +77,5 @@ Retention skips public checkpoints, patched checkpoints, and checkpoints that arUse checkpoints when you need to explore multiple paths from the same state. Use hibernation when you just want to pause and resume later.<Tip>- SDK usage: [Checkpoints](/sandboxes/checkpoints. Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-checkpoint.+ SDK usage: [Checkpoints](/sandboxes/checkpoints). Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-checkpoint).</Tip>diff --git a/docs-sandbox/cli/exec.mdx b/docs-sandbox/cli/exec.mdxindex 9bd2a65d..78f99db9 100644--- a/docs-sandbox/cli/exec.mdx+++ b/docs-sandbox/cli/exec.mdx@@ -75,8 +75,8 @@ oc exec kill sb-abc123 es-xyz --signal 15 # SIGTERM| Single command, capture output | `oc exec --wait` || Scripting and automation | `oc exec --wait --json` || Long-running background process | `oc exec` (no `--wait`) |-| Interactive development, debugging | [`oc shell`](/cli/shell |+| Interactive development, debugging | [`oc shell`](/cli/shell) |<Tip>- SDK usage: [Running Commands](/sandboxes/running-commands. Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-exec.+ SDK usage: [Running Commands](/sandboxes/running-commands). Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-exec).</Tip>diff --git a/docs-sandbox/cli/feedback.mdx b/docs-sandbox/cli/feedback.mdxindex 8f3b8aca..718a0692 100644--- a/docs-sandbox/cli/feedback.mdx+++ b/docs-sandbox/cli/feedback.mdx@@ -9,7 +9,7 @@ terminal. No account or API key is needed; every submission returns a receipt yoBy default it reports to OpenComputer. Pass `--target` (or set `OC_FEEDBACK_TARGET`) to report toany other host that publishes `/.well-known/agent-feedback.json`. See the-[protocol reference](/api-reference/agent-feedback for the receiving side.+[protocol reference](/api-reference/agent-feedback) for the receiving side.```bash# What does the target accept?diff --git a/docs-sandbox/cli/overview.mdx b/docs-sandbox/cli/overview.mdxindex 6b532ded..103a186e 100644--- a/docs-sandbox/cli/overview.mdx+++ b/docs-sandbox/cli/overview.mdx@@ -149,16 +149,16 @@ oc exec $ID2 --wait -- ./test-b.sh| Command | Description || --- | --- |-| [`oc sandbox`](/cli/sandbox | Create, list, kill, hibernate, wake |-| [`oc exec`](/cli/exec | Run commands, manage exec sessions |-| [`oc shell`](/cli/shell | Interactive PTY terminal |-| [`oc checkpoint`](/cli/checkpoint | Snapshot, fork, restore |-| [`oc patch`](/cli/patch | Checkpoint-attached scripts |-| [`oc preview`](/cli/preview | Expose ports to the internet |-| [`oc agent`](/reference/cli/agent | Invoke durable agents and manage Hook URLs |-| [`oc login`](/reference/cli/auth | Sign in, inspect identity, and log out |-| [`oc config`](https://docs.opencomputer.dev/reference/cli#oc-config | Configure API key and API URL |+| [`oc sandbox`](/cli/sandbox) | Create, list, kill, hibernate, wake |+| [`oc exec`](/cli/exec) | Run commands, manage exec sessions |+| [`oc shell`](/cli/shell) | Interactive PTY terminal |+| [`oc checkpoint`](/cli/checkpoint) | Snapshot, fork, restore |+| [`oc patch`](/cli/patch) | Checkpoint-attached scripts |+| [`oc preview`](/cli/preview) | Expose ports to the internet |+| [`oc agent`](/reference/cli/agent) | Invoke durable agents and manage Hook URLs |+| [`oc login`](/reference/cli/auth) | Sign in, inspect identity, and log out |+| [`oc config`](https://docs.opencomputer.dev/reference/cli#oc-config) | Configure API key and API URL |<Tip>- Full flag reference for every command: [CLI Reference](https://docs.opencomputer.dev/reference/cli.+ Full flag reference for every command: [CLI Reference](https://docs.opencomputer.dev/reference/cli).</Tip>diff --git a/docs-sandbox/cli/patch.mdx b/docs-sandbox/cli/patch.mdxindex 26cc2119..8c009700 100644--- a/docs-sandbox/cli/patch.mdx+++ b/docs-sandbox/cli/patch.mdx@@ -49,5 +49,5 @@ oc patch delete cp-7f3a1b2c pa-abc123```<Tip>- SDK usage: [Patches](/sandboxes/patches. Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-patch.+ SDK usage: [Patches](/sandboxes/patches). Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-patch).</Tip>diff --git a/docs-sandbox/cli/preview.mdx b/docs-sandbox/cli/preview.mdxindex 339a0bb5..fc884eb4 100644--- a/docs-sandbox/cli/preview.mdx+++ b/docs-sandbox/cli/preview.mdx@@ -86,8 +86,8 @@ oc preview rotate-auth sb-abc123# New preview auth token (shown once): <new token>```-Token is shown exactly once and only its SHA-256 hash is stored. See [Authentication](/sandboxes/preview-urls#authentication for the SDK equivalents.+Token is shown exactly once and only its SHA-256 hash is stored. See [Authentication](/sandboxes/preview-urls#authentication) for the SDK equivalents.<Tip>- SDK usage: [Preview URLs](/sandboxes/preview-urls. Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-preview.+ SDK usage: [Preview URLs](/sandboxes/preview-urls). Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-preview).</Tip>diff --git a/docs-sandbox/cli/sandbox.mdx b/docs-sandbox/cli/sandbox.mdxindex 357e70e5..6eec0e7e 100644--- a/docs-sandbox/cli/sandbox.mdx+++ b/docs-sandbox/cli/sandbox.mdx@@ -58,7 +58,7 @@ oc sandbox set-timeout sb-abc123 3600 # 1 houroc sandbox kill sb-abc123```-All data is lost unless you've created a [checkpoint](/cli/checkpoint first.+All data is lost unless you've created a [checkpoint](/cli/checkpoint) first.## Common Patterns@@ -81,5 +81,5 @@ oc ls --json | jq -r '.[].sandboxID' | xargs -I{} oc sandbox kill {}```<Tip>- SDK usage: [Sandboxes](/sandboxes/overview. Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-sandbox.+ SDK usage: [Sandboxes](/sandboxes/overview). Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-sandbox).</Tip>diff --git a/docs-sandbox/cli/secrets.mdx b/docs-sandbox/cli/secrets.mdxindex d53f3ece..7a4a22ec 100644--- a/docs-sandbox/cli/secrets.mdx+++ b/docs-sandbox/cli/secrets.mdx@@ -49,4 +49,4 @@ oc exec <sandbox-id> -- echo '$ANTHROPIC_API_KEY'# osb_sealed_7f3a9c... (not the real key)```-For how secrets work under the hood, see [Secrets](/sandboxes/secrets.+For how secrets work under the hood, see [Secrets](/sandboxes/secrets).diff --git a/docs-sandbox/cli/shell.mdx b/docs-sandbox/cli/shell.mdxindex 124096c8..cf5102bf 100644--- a/docs-sandbox/cli/shell.mdx+++ b/docs-sandbox/cli/shell.mdx@@ -59,5 +59,5 @@ oc shell $ID```<Tip>- SDK usage: [Interactive Terminals](/sandboxes/interactive-terminals. Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-shell.+ SDK usage: [Interactive Terminals](/sandboxes/interactive-terminals). Full flags: [CLI Reference](https://docs.opencomputer.dev/reference/cli#oc-shell).</Tip>diff --git a/docs-sandbox/guides/browser-automation.mdx b/docs-sandbox/guides/browser-automation.mdxindex e84b6c41..24ec8166 100644--- a/docs-sandbox/guides/browser-automation.mdx+++ b/docs-sandbox/guides/browser-automation.mdx@@ -31,7 +31,7 @@ If the site has a good API, use the API. A browser is slower, heavier, and flaki## Step 1: Build a snapshot with Chromium pre-installed-Browser setup is heavy (apt packages + Chromium binary is ~500MB). Bake it into a [template](/sandboxes/templates once, launch sandboxes from it in seconds.+Browser setup is heavy (apt packages + Chromium binary is ~500MB). Bake it into a [template](/sandboxes/templates) once, launch sandboxes from it in seconds.```typescript build-snapshot.tsimport { Image, Snapshots } from "@opencomputer/sdk/node";@@ -227,7 +227,7 @@ await run("npx", ["libretto", "save", "app.example.com", "--session", "login"],// → writes /home/sandbox/.libretto/profiles/app.example.com.json```-The profile lives on the data disk, which survives sandbox hibernation. For cross-sandbox persistence, [checkpoint the sandbox](/sandboxes/checkpoints after login and launch future sandboxes from that warm snapshot — they'll boot already logged in.+The profile lives on the data disk, which survives sandbox hibernation. For cross-sandbox persistence, [checkpoint the sandbox](/sandboxes/checkpoints) after login and launch future sandboxes from that warm snapshot — they'll boot already logged in.---@@ -280,5 +280,5 @@ OC's preview-URL edge buffers response bodies — streaming chunks don't reach t## Next steps- Read the [libretto docs](https://libretto.sh/docs) for the full CLI + library reference.-- See [Checkpoints](/sandboxes/checkpoints for how to checkpoint a warmed-up browser VM.-- See [Secret Stores](/sandboxes/secrets for scoping egress and sealing real credentials.+- See [Checkpoints](/sandboxes/checkpoints) for how to checkpoint a warmed-up browser VM.+- See [Secret Stores](/sandboxes/secrets) for scoping egress and sealing real credentials.diff --git a/docs-sandbox/guides/build-a-lovable-clone.mdx b/docs-sandbox/guides/build-a-lovable-clone.mdxindex ce9c4db5..2423e232 100644--- a/docs-sandbox/guides/build-a-lovable-clone.mdx+++ b/docs-sandbox/guides/build-a-lovable-clone.mdx@@ -6,7 +6,7 @@ description: "Build an open-source AI app builder using OpenComputer sandboxes"In this guide you'll build a fully functional **Lovable clone** — an AI-powered web app builder where users describe an app in plain English and get a live, running React application in seconds. The entire project is open-source and uses OpenComputer sandboxes as the execution engine.<Note>-For new app-builder projects, start with [Durable Agent Sessions](https://docs.opencomputer.dev/agent-sessions/quickstart and the [app-builder example](https://github.com/diggerhq/oc-sessions-demos). This guide shows the older raw-sandbox orchestration pattern, which is still useful when you want to own the agent loop yourself.+For new app-builder projects, start with [Durable Agent Sessions](https://docs.opencomputer.dev/agent-sessions/quickstart) and the [app-builder example](https://github.com/diggerhq/oc-sessions-demos). This guide shows the older raw-sandbox orchestration pattern, which is still useful when you want to own the agent loop yourself.</Note><CardGroup cols={2}>@@ -176,10 +176,10 @@ This makes the deployment model practical for sharing prototypes and demos withoSeveral features mentioned as limitations now exist in OpenComputer:-- **In-sandbox agent loop** — [Agent sessions](https://docs.opencomputer.dev/agent-sessions/overview now run the Claude Agent SDK inside the sandbox. The agent reads files, runs commands, and iterates on errors locally without leaving the VM. This is the recommended approach for new projects.-- **Preview URL authentication** — `authConfig` on [preview URLs](/sandboxes/preview-urls supports restricting access. Not full private link sharing yet, but a step toward it.-- **Checkpoints** — [Checkpoint and fork](/sandboxes/checkpoints workflows are available for snapshotting sandbox state, restoring, and branching.-- **Custom templates** — Define [custom environments](/sandboxes/templates with the Image builder and pre-built snapshots.+- **In-sandbox agent loop** — [Agent sessions](https://docs.opencomputer.dev/agent-sessions/overview) now run the Claude Agent SDK inside the sandbox. The agent reads files, runs commands, and iterates on errors locally without leaving the VM. This is the recommended approach for new projects.+- **Preview URL authentication** — `authConfig` on [preview URLs](/sandboxes/preview-urls) supports restricting access. Not full private link sharing yet, but a step toward it.+- **Checkpoints** — [Checkpoint and fork](/sandboxes/checkpoints) workflows are available for snapshotting sandbox state, restoring, and branching.+- **Custom templates** — Define [custom environments](/sandboxes/templates) with the Image builder and pre-built snapshots.### Still Planneddiff --git a/docs-sandbox/how-it-works.mdx b/docs-sandbox/how-it-works.mdxindex f2a744dc..2dfcd936 100644--- a/docs-sandbox/how-it-works.mdx+++ b/docs-sandbox/how-it-works.mdx@@ -61,11 +61,11 @@ const sandbox = await Sandbox.create({ image });const sandbox = await Sandbox.create({ snapshot: 'my-custom-stack' });```-See [Templates](/sandboxes/templates for the full guide.+See [Templates](/sandboxes/templates) for the full guide.## Elasticity-Sandboxes can scale memory at runtime via an internal metadata endpoint (`http://169.254.169.254/v1/scale`) accessible from inside the VM. CPU scales proportionally. This lets workloads request more resources before heavy tasks and release them after. See [Elasticity](/sandboxes/elasticity for details.+Sandboxes can scale memory at runtime via an internal metadata endpoint (`http://169.254.169.254/v1/scale`) accessible from inside the VM. CPU scales proportionally. This lets workloads request more resources before heavy tasks and release them after. See [Elasticity](/sandboxes/elasticity) for details.## Networking@@ -77,8 +77,8 @@ For inbound access, create a **preview URL** that reverse-proxies public trafficoc preview create sb-abc --port 3000```-See [Preview URLs](/sandboxes/preview-urls for custom domains and auth.+See [Preview URLs](/sandboxes/preview-urls) for custom domains and auth.<Tip>- API details: [HTTP API Reference](https://docs.opencomputer.dev/reference/api#base-url--authentication.+ API details: [HTTP API Reference](https://docs.opencomputer.dev/reference/api#base-url--authentication).</Tip>diff --git a/docs-sandbox/migrating-from-v1.mdx b/docs-sandbox/migrating-from-v1.mdxindex 6afd822e..52e7144a 100644--- a/docs-sandbox/migrating-from-v1.mdx+++ b/docs-sandbox/migrating-from-v1.mdx@@ -139,15 +139,15 @@ Seven questions. If every answer is "no", upgrading is the whole migration.<Steps><Step title="Does any sandbox need to live longer than 8 hours?">v2 sandboxes have a hard 8-hour lifetime, counting hibernated time. See- [Sandbox lifetime](/sandboxes/lifetime.+ [Sandbox lifetime](/sandboxes/lifetime).</Step><Step title="Do you restore checkpoints expecting a running process?">v2 checkpoints capture the filesystem only. Restoring gives a fresh boot with your files,- not a resumed process tree. See [Checkpoints](/sandboxes/checkpoints.+ not a resumed process tree. See [Checkpoints](/sandboxes/checkpoints).</Step><Step title="Do you use templates built on v1?">A template that carries a rootfs image is refused. Most v1 templates do. See- [Templates](/sandboxes/templates.+ [Templates](/sandboxes/templates).</Step><Step title="Do you run sandboxes larger than 8 GB?">The 16 GB tier does not exist in v2, and memory cannot change after launch.@@ -159,7 +159,7 @@ Seven questions. If every answer is "no", upgrading is the whole migration.None of these exist in v2.</Step><Step title="Do you build images or fork from checkpoints?">- Image builds work, but only ahead of time — see [Templates](/sandboxes/templates.+ Image builds work, but only ahead of time — see [Templates](/sandboxes/templates).Passing `image:` directly to a create is refused. Fork is unavailable today and beingworked on.</Step>@@ -224,7 +224,7 @@ silently would hand you your files while dropping every system change the templaSo it refuses, loudly, at create.Rebuild them on v2 — usually by re-running the same `Image` definition under the same name.-See [Templates](/sandboxes/templates.+See [Templates](/sandboxes/templates).### Sizes are fixed steps, and 16 GB is gone@@ -264,7 +264,7 @@ work exactly as in v1, and your code does not change.The difference is where the real values are held: in v2 the substituting proxy runs inside yoursandbox as a root-owned process, rather than outside it. Your code runs unprivileged and cannotread them, but a privilege escalation **inside** a sandbox now reaches the secrets scoped to-that sandbox. See [Secrets](/sandboxes/secrets.+that sandbox. See [Secrets](/sandboxes/secrets).### Not available in v2@@ -272,7 +272,7 @@ that sandbox. See [Secrets](/sandboxes/secrets.|---|---|| `scale()`, `setAutoscale()` | memory is fixed at launch || Mounts (FUSE, NFS, overlay) | the guest cannot perform `mount` |-| Inline `image:` on create | build ahead of time instead — see [Templates](/sandboxes/templates |+| Inline `image:` on create | build ahead of time instead — see [Templates](/sandboxes/templates) || Fork from a checkpoint | in progress || Checkpoint patches | not wired up || Live migration | not applicable |diff --git a/docs-sandbox/quickstart.mdx b/docs-sandbox/quickstart.mdxindex bba6214e..d08f2bed 100644--- a/docs-sandbox/quickstart.mdx+++ b/docs-sandbox/quickstart.mdx@@ -5,7 +5,7 @@ description: "Create your first sandbox in 2 minutes"## Prerequisites-An OpenComputer API key and the SDK installed. See [Introduction](/introduction for install instructions.+An OpenComputer API key and the SDK installed. See [Introduction](/introduction) for install instructions.```bashexport OPENCOMPUTER_API_KEY=your-api-keydiff --git a/docs-sandbox/reference/cli/checkpoint.mdx b/docs-sandbox/reference/cli/checkpoint.mdxindex 1469ba99..1ea3d949 100644--- a/docs-sandbox/reference/cli/checkpoint.mdx+++ b/docs-sandbox/reference/cli/checkpoint.mdx@@ -7,7 +7,7 @@ description: "Manage sandbox checkpoints"## `oc checkpoint create <sandbox-id>`-Create a named checkpoint of a running sandbox. [HTTP API →](/api-reference/checkpoints/create+Create a named checkpoint of a running sandbox. [HTTP API →](/api-reference/checkpoints/create)<ParamField query="--name" type="string" required>Checkpoint name@@ -37,7 +37,7 @@ oc cp create sb-abc \## `oc checkpoint list <sandbox-id>`-List checkpoints for a sandbox. [HTTP API →](/api-reference/checkpoints/list+List checkpoints for a sandbox. [HTTP API →](/api-reference/checkpoints/list)Output columns: `ID`, `NAME`, `STATUS`, `SIZE`, `CREATED`@@ -45,13 +45,13 @@ Output columns: `ID`, `NAME`, `STATUS`, `SIZE`, `CREATED`## `oc checkpoint restore <sandbox-id> <checkpoint-id>`-Revert a sandbox in-place to a checkpoint. All changes since the checkpoint are lost. [HTTP API →](/api-reference/checkpoints/restore+Revert a sandbox in-place to a checkpoint. All changes since the checkpoint are lost. [HTTP API →](/api-reference/checkpoints/restore)---## `oc checkpoint spawn <checkpoint-id>`-Create a new sandbox from a checkpoint (fork). [HTTP API →](/api-reference/checkpoints/fork+Create a new sandbox from a checkpoint (fork). [HTTP API →](/api-reference/checkpoints/fork)<ParamField query="--timeout" type="int" default="300">Idle timeout for the new sandbox@@ -66,4 +66,4 @@ oc exec "$ID" --wait -- echo "forked sandbox ready"## `oc checkpoint delete <sandbox-id> <checkpoint-id>`-Delete a checkpoint. [HTTP API →](/api-reference/checkpoints/delete+Delete a checkpoint. [HTTP API →](/api-reference/checkpoints/delete)diff --git a/docs-sandbox/reference/cli/config.mdx b/docs-sandbox/reference/cli/config.mdxindex 0c1873f7..6023b877 100644--- a/docs-sandbox/reference/cli/config.mdx+++ b/docs-sandbox/reference/cli/config.mdx@@ -5,7 +5,7 @@ description: "CLI configuration"Manage CLI configuration. Settings are persisted to a local config file.-For an interactive local setup, prefer [`oc login`](/reference/cli/auth. Use+For an interactive local setup, prefer [`oc login`](/reference/cli/auth). Use`oc config set api-key` for a separately managed key.## `oc config set <key> <value>`diff --git a/docs-sandbox/reference/cli/exec.mdx b/docs-sandbox/reference/cli/exec.mdxindex d14c319e..517dc105 100644--- a/docs-sandbox/reference/cli/exec.mdx+++ b/docs-sandbox/reference/cli/exec.mdx@@ -7,7 +7,7 @@ description: "Execute commands inside a sandbox"By default, creates an **exec session** and prints the session ID with attach instructions. Use `--wait` to run synchronously.-[HTTP API →](/api-reference/exec/run+[HTTP API →](/api-reference/exec/run)<ParamField query="--wait" type="boolean" default="false">Wait for completion, stream output, mirror exit code@@ -38,7 +38,7 @@ oc exec sb-abc -- node server.js## `oc exec list <id>`-List active exec sessions for a sandbox. [HTTP API →](/api-reference/exec/list-sessions+List active exec sessions for a sandbox. [HTTP API →](/api-reference/exec/list-sessions)Output: session ID, status (`running` or `exited (code)`), command, client count.@@ -54,7 +54,7 @@ Output: session ID, status (`running` or `exited (code)`), command, client count## `oc exec kill <id> <session-id>`-Kill an exec session. [HTTP API →](/api-reference/exec/kill-session+Kill an exec session. [HTTP API →](/api-reference/exec/kill-session)<ParamField query="--signal" type="int" default="9">Signal number (default: SIGKILL)diff --git a/docs-sandbox/reference/cli/patch.mdx b/docs-sandbox/reference/cli/patch.mdxindex f9974dcb..e11629ba 100644--- a/docs-sandbox/reference/cli/patch.mdx+++ b/docs-sandbox/reference/cli/patch.mdx@@ -7,7 +7,7 @@ Patches are scripts that run when a sandbox is spawned from a checkpoint.## `oc patch create <checkpoint-id>`-[HTTP API →](/api-reference/patches/create+[HTTP API →](/api-reference/patches/create)<ParamField query="--script" type="string" required>Path to script file, or `-` for stdin@@ -26,7 +26,7 @@ echo "apt install -y curl" | oc patch create cp-xyz --script=-## `oc patch list <checkpoint-id>`-[HTTP API →](/api-reference/patches/list+[HTTP API →](/api-reference/patches/list)Output columns: `ID`, `SEQ`, `DESCRIPTION`, `STRATEGY`, `CREATED`@@ -34,4 +34,4 @@ Output columns: `ID`, `SEQ`, `DESCRIPTION`, `STRATEGY`, `CREATED`## `oc patch delete <checkpoint-id> <patch-id>`-[HTTP API →](/api-reference/patches/delete+[HTTP API →](/api-reference/patches/delete)diff --git a/docs-sandbox/reference/cli/preview.mdx b/docs-sandbox/reference/cli/preview.mdxindex 790964fc..c2583201 100644--- a/docs-sandbox/reference/cli/preview.mdx+++ b/docs-sandbox/reference/cli/preview.mdx@@ -7,7 +7,7 @@ Expose sandbox ports to the internet.## `oc preview create <sandbox-id>`-[HTTP API →](/api-reference/preview/create+[HTTP API →](/api-reference/preview/create)<ParamField query="--port" type="int" required>Container port to expose@@ -25,7 +25,7 @@ oc preview create sb-abc --port 3000## `oc preview list <sandbox-id>`-[HTTP API →](/api-reference/preview/list+[HTTP API →](/api-reference/preview/list)Output columns: `PORT`, `HOSTNAME`, `SSL`, `CREATED`@@ -33,13 +33,13 @@ Output columns: `PORT`, `HOSTNAME`, `SSL`, `CREATED`## `oc preview delete <sandbox-id> <port>`-[HTTP API →](/api-reference/preview/delete+[HTTP API →](/api-reference/preview/delete)---## `oc preview rotate-auth <sandbox-id>`-[HTTP API →](/api-reference/preview/rotate-auth+[HTTP API →](/api-reference/preview/rotate-auth)Mint a new bearer token for the sandbox's preview URLs. The old token stops working immediately. The new plaintext is printed once — capture it before moving on; the server will not return it again.@@ -50,4 +50,4 @@ oc preview rotate-auth sb-abcCalling this on a sandbox that was created without `--preview-auth` installs a token and starts enforcing the gate from that point on.-See [`oc sandbox create --preview-auth`](/reference/cli/sandbox#oc-sandbox-create to enable at create time, or [`--preview-auth-token`](/reference/cli/sandbox#oc-sandbox-create to bring your own.+See [`oc sandbox create --preview-auth`](/reference/cli/sandbox#oc-sandbox-create) to enable at create time, or [`--preview-auth-token`](/reference/cli/sandbox#oc-sandbox-create) to bring your own.diff --git a/docs-sandbox/reference/cli/sandbox.mdx b/docs-sandbox/reference/cli/sandbox.mdxindex 0a870c45..6f675a9a 100644--- a/docs-sandbox/reference/cli/sandbox.mdx+++ b/docs-sandbox/reference/cli/sandbox.mdx@@ -7,7 +7,7 @@ description: "Manage sandbox lifecycle"Create a new sandbox. **Alias:** `oc create`-[HTTP API →](/api-reference/sandboxes/create+[HTTP API →](/api-reference/sandboxes/create)<ParamField query="--timeout" type="int" default="300">Idle timeout in seconds@@ -30,7 +30,7 @@ Create a new sandbox. **Alias:** `oc create`</ParamField><ParamField query="--preview-auth" type="bool">- Require a bearer token on the sandbox's preview URLs. The server generates a 256-bit random token and prints it once. See [Preview-URL authentication](/sandboxes/preview-urls#authentication.+ Require a bearer token on the sandbox's preview URLs. The server generates a 256-bit random token and prints it once. See [Preview-URL authentication](/sandboxes/preview-urls#authentication).</ParamField><ParamField query="--preview-auth-token" type="string">@@ -49,7 +49,7 @@ oc create --preview-auth-token "$GATEWAY_TOKEN" # bring your ownList all running sandboxes. **Alias:** `oc ls`-[HTTP API →](/api-reference/sandboxes/list+[HTTP API →](/api-reference/sandboxes/list)Output columns: `ID`, `TEMPLATE`, `STATUS`, `CPU`, `MEM`, `AGE`@@ -62,7 +62,7 @@ oc ls --json## `oc sandbox get <id>`-Show detailed information for a sandbox. [HTTP API →](/api-reference/sandboxes/get+Show detailed information for a sandbox. [HTTP API →](/api-reference/sandboxes/get)Output: ID, Template, Status, CPU, Memory, Started, Ends.@@ -70,19 +70,19 @@ Output: ID, Template, Status, CPU, Memory, Started, Ends.## `oc sandbox kill <id>`-Terminate and remove a sandbox. [HTTP API →](/api-reference/sandboxes/delete+Terminate and remove a sandbox. [HTTP API →](/api-reference/sandboxes/delete)---## `oc sandbox hibernate <id>`-Snapshot VM state and stop the sandbox. Displays snapshot size on success. [HTTP API →](/api-reference/sandboxes/hibernate+Snapshot VM state and stop the sandbox. Displays snapshot size on success. [HTTP API →](/api-reference/sandboxes/hibernate)---## `oc sandbox wake <id>`-Resume a hibernated sandbox. [HTTP API →](/api-reference/sandboxes/wake+Resume a hibernated sandbox. [HTTP API →](/api-reference/sandboxes/wake)<ParamField query="--timeout" type="int" default="300">Idle timeout in seconds after wake@@ -92,7 +92,7 @@ Resume a hibernated sandbox. [HTTP API →](/api-reference/sandboxes/wake## `oc sandbox set-timeout <id> <seconds>`-Update the idle timeout for a running sandbox. [HTTP API →](/api-reference/sandboxes/set-timeout+Update the idle timeout for a running sandbox. [HTTP API →](/api-reference/sandboxes/set-timeout)```bashoc sandbox set-timeout sb-abc123 600@@ -100,13 +100,13 @@ oc sandbox set-timeout sb-abc123 600----For commands that resize a sandbox or freeze its size — `scale`, `autoscale`, `lock`, `unlock`, `lock-status` — see [Scaling](/reference/cli/scaling.+For commands that resize a sandbox or freeze its size — `scale`, `autoscale`, `lock`, `unlock`, `lock-status` — see [Scaling](/reference/cli/scaling).---## `oc sandbox allowed-hosts <id>`-Show the egress allowlist + per-secret allowed hosts the sandbox's secrets proxy enforces. Useful for debugging "why is my outbound HTTP call being blocked" without having to cross-reference the [secret store](/sandboxes/secrets config separately.+Show the egress allowlist + per-secret allowed hosts the sandbox's secrets proxy enforces. Useful for debugging "why is my outbound HTTP call being blocked" without having to cross-reference the [secret store](/sandboxes/secrets) config separately.Sandboxes created without `--secret-store` return an empty allowlist — the sandbox has no per-store egress restriction.diff --git a/docs-sandbox/reference/cli/scaling.mdx b/docs-sandbox/reference/cli/scaling.mdxindex c5809d13..4eb9712c 100644--- a/docs-sandbox/reference/cli/scaling.mdx+++ b/docs-sandbox/reference/cli/scaling.mdx@@ -7,8 +7,8 @@ description: "Not available in v2"**Not available in v2.** Memory is fixed at launch in v2, so scaling calls return `501`.</Warning>-Set the size when you create the sandbox — see [Sandbox sizes](/sandboxes/sizes.+Set the size when you create the sandbox — see [Sandbox sizes](/sandboxes/sizes).This page exists so the v2 docs mirror v1 page-for-page. See-[Migrating from v1](/migrating-from-v1 for the full list of removed and changed behaviour,-and [the v1 page](/reference/cli/scaling for how this worked before.+[Migrating from v1](/migrating-from-v1) for the full list of removed and changed behaviour,+and [the v1 page](/reference/cli/scaling) for how this worked before.diff --git a/docs-sandbox/reference/cli/shell.mdx b/docs-sandbox/reference/cli/shell.mdxindex 445d00ae..0fb2f583 100644--- a/docs-sandbox/reference/cli/shell.mdx+++ b/docs-sandbox/reference/cli/shell.mdx@@ -5,7 +5,7 @@ description: "Interactive terminal access"## `oc shell <id>`-Open an interactive terminal (PTY) session via WebSocket. [HTTP API →](/api-reference/pty/create+Open an interactive terminal (PTY) session via WebSocket. [HTTP API →](/api-reference/pty/create)<ParamField query="--shell" type="string" default="/bin/bash">Shell to usediff --git a/docs-sandbox/reference/python-sdk/exec.mdx b/docs-sandbox/reference/python-sdk/exec.mdxindex 5eb7c75b..c089c014 100644--- a/docs-sandbox/reference/python-sdk/exec.mdx+++ b/docs-sandbox/reference/python-sdk/exec.mdx@@ -7,7 +7,7 @@ Accessed via `sandbox.exec`.## `await sandbox.exec.run(command, ...)`-Run a command synchronously via `sh -c`. [HTTP API →](/api-reference/exec/run+Run a command synchronously via `sh -c`. [HTTP API →](/api-reference/exec/run)<ParamField body="command" type="str" required>Shell command@@ -35,7 +35,7 @@ result = await sandbox.exec.run("npm test", cwd="/app")## `await sandbox.exec.start(command, ...)`-Start a long-running command with streaming I/O. [HTTP API →](/api-reference/exec/create-session+Start a long-running command with streaming I/O. [HTTP API →](/api-reference/exec/create-session)<ParamField body="command" type="str" required>Command@@ -171,7 +171,7 @@ Reconnect to a running exec session over WebSocket.## `await sandbox.exec.list()`-List all exec sessions. [HTTP API →](/api-reference/exec/list-sessions+List all exec sessions. [HTTP API →](/api-reference/exec/list-sessions)**Returns:** `list[ExecSessionInfo]`@@ -179,7 +179,7 @@ List all exec sessions. [HTTP API →](/api-reference/exec/list-sessions## `await sandbox.exec.kill(session_id, signal=9)`-Kill an exec session. [HTTP API →](/api-reference/exec/kill-session+Kill an exec session. [HTTP API →](/api-reference/exec/kill-session)**Returns:** `None`diff --git a/docs-sandbox/reference/python-sdk/filesystem.mdx b/docs-sandbox/reference/python-sdk/filesystem.mdxindex 14e33ad9..384bf138 100644--- a/docs-sandbox/reference/python-sdk/filesystem.mdx+++ b/docs-sandbox/reference/python-sdk/filesystem.mdx@@ -7,7 +7,7 @@ Accessed via `sandbox.files`.## `await sandbox.files.read(path)`-Read a file as a UTF-8 string. [HTTP API →](/api-reference/files/read+Read a file as a UTF-8 string. [HTTP API →](/api-reference/files/read)<ParamField body="path" type="str" required>Absolute path to the file@@ -31,7 +31,7 @@ Read a file as raw bytes.## `await sandbox.files.write(path, content)`-Write content to a file. [HTTP API →](/api-reference/files/write+Write content to a file. [HTTP API →](/api-reference/files/write)<ParamField body="path" type="str" required>Absolute path for the destination file@@ -47,7 +47,7 @@ Write content to a file. [HTTP API →](/api-reference/files/write## `await sandbox.files.list(path="/")`-List directory contents. [HTTP API →](/api-reference/files/list-directory+List directory contents. [HTTP API →](/api-reference/files/list-directory)<ParamField body="path" type="str" default="/">Directory path@@ -59,7 +59,7 @@ List directory contents. [HTTP API →](/api-reference/files/list-directory## `await sandbox.files.make_dir(path)`-Create a directory. [HTTP API →](/api-reference/files/mkdir+Create a directory. [HTTP API →](/api-reference/files/mkdir)<ParamField body="path" type="str" required>Directory path@@ -71,7 +71,7 @@ Create a directory. [HTTP API →](/api-reference/files/mkdir## `await sandbox.files.remove(path)`-Delete a file or directory. [HTTP API →](/api-reference/files/delete+Delete a file or directory. [HTTP API →](/api-reference/files/delete)<ParamField body="path" type="str" required>Path to removediff --git a/docs-sandbox/reference/python-sdk/pty.mdx b/docs-sandbox/reference/python-sdk/pty.mdxindex e3f2ba16..17fe0940 100644--- a/docs-sandbox/reference/python-sdk/pty.mdx+++ b/docs-sandbox/reference/python-sdk/pty.mdx@@ -7,7 +7,7 @@ Accessed via `sandbox.pty`.## `await sandbox.pty.create(cols=80, rows=24, on_output=None)`-Create an interactive terminal session. [HTTP API →](/api-reference/pty/create+Create an interactive terminal session. [HTTP API →](/api-reference/pty/create)<ParamField body="cols" type="int" default="80">Terminal columnsdiff --git a/docs-sandbox/reference/python-sdk/sandbox.mdx b/docs-sandbox/reference/python-sdk/sandbox.mdxindex 2ea60ecb..68826649 100644--- a/docs-sandbox/reference/python-sdk/sandbox.mdx+++ b/docs-sandbox/reference/python-sdk/sandbox.mdx@@ -7,7 +7,7 @@ description: "Create, connect, and manage sandbox lifecycle"### `await Sandbox.create(...)`-Create a new sandbox. [HTTP API →](/api-reference/sandboxes/create+Create a new sandbox. [HTTP API →](/api-reference/sandboxes/create)<ParamField body="template" type="str" default="base">Template name@@ -34,11 +34,11 @@ Create a new sandbox. [HTTP API →](/api-reference/sandboxes/create</ParamField><ParamField body="burst" type="bool">- Create a [Burst Sandbox](/sandboxes/burst-sandboxes. Disk is preserved across infrastructure restarts; processes may restart.+ Create a [Burst Sandbox](/sandboxes/burst-sandboxes). Disk is preserved across infrastructure restarts; processes may restart.</ParamField><ParamField body="image" type="Image">- Declarative image definition (see [Image](/reference/python-sdk/image)+ Declarative image definition (see [Image](/reference/python-sdk/image))</ParamField><ParamField body="snapshot" type="str">@@ -74,7 +74,7 @@ sandbox = await Sandbox.create(### `await Sandbox.connect(sandbox_id, ...)`-Connect to an existing sandbox. [HTTP API →](/api-reference/sandboxes/get+Connect to an existing sandbox. [HTTP API →](/api-reference/sandboxes/get)<ParamField body="sandbox_id" type="str" required>Sandbox ID@@ -90,7 +90,7 @@ sandbox = await Sandbox.connect("sb-abc123")### `await Sandbox.create_from_checkpoint(checkpoint_id, ...)`-Create a new sandbox from a checkpoint. [HTTP API →](/api-reference/checkpoints/fork+Create a new sandbox from a checkpoint. [HTTP API →](/api-reference/checkpoints/fork)<ParamField body="checkpoint_id" type="str" required>Checkpoint ID@@ -110,7 +110,7 @@ forked = await Sandbox.create_from_checkpoint("cp-abc123")### `await Sandbox.create_checkpoint_patch(checkpoint_id, script, ...)`-[HTTP API →](/api-reference/patches/create+[HTTP API →](/api-reference/patches/create)<ParamField body="checkpoint_id" type="str" required>Target checkpoint@@ -130,11 +130,11 @@ forked = await Sandbox.create_from_checkpoint("cp-abc123")### `await Sandbox.list_checkpoint_patches(checkpoint_id, ...)`-[HTTP API →](/api-reference/patches/list — **Returns:** `list[dict]`+[HTTP API →](/api-reference/patches/list) — **Returns:** `list[dict]`### `await Sandbox.delete_checkpoint_patch(checkpoint_id, patch_id, ...)`-[HTTP API →](/api-reference/patches/delete — **Returns:** `None`+[HTTP API →](/api-reference/patches/delete) — **Returns:** `None`---@@ -155,7 +155,7 @@ async with await Sandbox.create() as sandbox:### `await sandbox.kill()`-Terminate the sandbox. [HTTP API →](/api-reference/sandboxes/delete+Terminate the sandbox. [HTTP API →](/api-reference/sandboxes/delete)**Returns:** `None`@@ -167,7 +167,7 @@ Check if the sandbox is running.### `await sandbox.set_timeout(timeout)`-Update idle timeout. [HTTP API →](/api-reference/sandboxes/set-timeout+Update idle timeout. [HTTP API →](/api-reference/sandboxes/set-timeout)<ParamField body="timeout" type="int" required>New timeout in seconds@@ -177,7 +177,7 @@ Update idle timeout. [HTTP API →](/api-reference/sandboxes/set-timeout### `await sandbox.create_checkpoint(name, kind=None, retention_policy=None)`-Create a named checkpoint. [HTTP API →](/api-reference/checkpoints/create+Create a named checkpoint. [HTTP API →](/api-reference/checkpoints/create)<ParamField body="retention_policy" type="dict">Optional retention policy. Use `{"mode": "delete_oldest", "maxCount": 10}`@@ -190,21 +190,21 @@ Create a named checkpoint. [HTTP API →](/api-reference/checkpoints/create### `await sandbox.list_checkpoints()`-[HTTP API →](/api-reference/checkpoints/list — **Returns:** `list[dict]`+[HTTP API →](/api-reference/checkpoints/list) — **Returns:** `list[dict]`### `await sandbox.restore_checkpoint(checkpoint_id)`-Revert in-place to a checkpoint. [HTTP API →](/api-reference/checkpoints/restore+Revert in-place to a checkpoint. [HTTP API →](/api-reference/checkpoints/restore)**Returns:** `None`### `await sandbox.delete_checkpoint(checkpoint_id)`-[HTTP API →](/api-reference/checkpoints/delete — **Returns:** `None`+[HTTP API →](/api-reference/checkpoints/delete) — **Returns:** `None`### `await sandbox.download_url(path, *, expires_in=3600)`-Generate a signed download URL. [HTTP API →](/api-reference/files/generate-download-url · [Guide →](/sandboxes/signed-urls+Generate a signed download URL. [HTTP API →](/api-reference/files/generate-download-url) · [Guide →](/sandboxes/signed-urls)<ParamField body="path" type="str" required>Absolute path to the file@@ -218,7 +218,7 @@ Generate a signed download URL. [HTTP API →](/api-reference/files/generate-dow### `await sandbox.upload_url(path, *, expires_in=3600)`-Generate a signed upload URL. [HTTP API →](/api-reference/files/generate-upload-url · [Guide →](/sandboxes/signed-urls+Generate a signed upload URL. [HTTP API →](/api-reference/files/generate-upload-url) · [Guide →](/sandboxes/signed-urls)<ParamField body="path" type="str" required>Absolute path for the destination file@@ -232,7 +232,7 @@ Generate a signed upload URL. [HTTP API →](/api-reference/files/generate-uploa### `await sandbox.create_preview_url(port, domain?, auth_config?)`-[HTTP API →](/api-reference/preview/create+[HTTP API →](/api-reference/preview/create)<ParamField body="port" type="int" required>Container port (1–65535)@@ -250,15 +250,15 @@ Generate a signed upload URL. [HTTP API →](/api-reference/files/generate-uploa### `await sandbox.list_preview_urls()`-[HTTP API →](/api-reference/preview/list — **Returns:** `list[dict]`+[HTTP API →](/api-reference/preview/list) — **Returns:** `list[dict]`### `await sandbox.delete_preview_url(port)`-[HTTP API →](/api-reference/preview/delete — **Returns:** `None`+[HTTP API →](/api-reference/preview/delete) — **Returns:** `None`### `await sandbox.get_allowed_hosts()`-Return the egress allowlist + per-secret allowed hosts the sandbox's secrets proxy enforces. Useful for debugging "why is my outbound HTTP call being blocked" without having to cross-reference the [secret store](/sandboxes/secrets config separately.+Return the egress allowlist + per-secret allowed hosts the sandbox's secrets proxy enforces. Useful for debugging "why is my outbound HTTP call being blocked" without having to cross-reference the [secret store](/sandboxes/secrets) config separately.Sandboxes created without a `secret_store` option return an empty allowlist with `secretStore` omitted — the sandbox has no per-store egress restriction.@@ -292,7 +292,7 @@ Close HTTP clients. Called automatically by the context manager.## Not Available in Python-These features are TypeScript-only. Use the [HTTP API](/api-reference/overview directly:+These features are TypeScript-only. Use the [HTTP API](/api-reference/overview) directly:- `hibernate()` / `wake()`- `cpuCount` / `memoryMB` on create@@ -310,19 +310,19 @@ These features are TypeScript-only. Use the [HTTP API](/api-reference/overview d</ParamField><ParamField body="agent" type="Agent">- [Agent sessions](https://docs.opencomputer.dev/reference/python-sdk/agent+ [Agent sessions](https://docs.opencomputer.dev/reference/python-sdk/agent)</ParamField><ParamField body="exec" type="Exec">- [Command execution](/reference/python-sdk/exec+ [Command execution](/reference/python-sdk/exec)</ParamField><ParamField body="files" type="Filesystem">- [File operations](/reference/python-sdk/filesystem+ [File operations](/reference/python-sdk/filesystem)</ParamField><ParamField body="pty" type="Pty">- [Terminal sessions](/reference/python-sdk/pty+ [Terminal sessions](/reference/python-sdk/pty)</ParamField><ParamField body="commands" type="Exec">diff --git a/docs-sandbox/reference/python-sdk/scaling.mdx b/docs-sandbox/reference/python-sdk/scaling.mdxindex 0d1602a0..7756dc65 100644--- a/docs-sandbox/reference/python-sdk/scaling.mdx+++ b/docs-sandbox/reference/python-sdk/scaling.mdx@@ -7,8 +7,8 @@ description: "Not available in v2"**Not available in v2.** Memory is fixed at launch in v2, so scaling calls return `501`.</Warning>-Set the size when you create the sandbox — see [Sandbox sizes](/sandboxes/sizes.+Set the size when you create the sandbox — see [Sandbox sizes](/sandboxes/sizes).This page exists so the v2 docs mirror v1 page-for-page. See-[Migrating from v1](/migrating-from-v1 for the full list of removed and changed behaviour,-and [the v1 page](/reference/python-sdk/scaling for how this worked before.+[Migrating from v1](/migrating-from-v1) for the full list of removed and changed behaviour,+and [the v1 page](/reference/python-sdk/scaling) for how this worked before.diff --git a/docs-sandbox/reference/python-sdk/snapshots.mdx b/docs-sandbox/reference/python-sdk/snapshots.mdxindex ddb341a2..34400e7d 100644--- a/docs-sandbox/reference/python-sdk/snapshots.mdx+++ b/docs-sandbox/reference/python-sdk/snapshots.mdx@@ -27,7 +27,7 @@ snapshots = Snapshots(api_key="...", api_url="...")## `await snapshots.create(name, image, on_build_logs=None)`-Create a pre-built snapshot. [HTTP API →](/api-reference/snapshots/create+Create a pre-built snapshot. [HTTP API →](/api-reference/snapshots/create)<ParamField body="name" type="str" required>Unique snapshot name@@ -47,11 +47,11 @@ Create a pre-built snapshot. [HTTP API →](/api-reference/snapshots/create## `await snapshots.list()`-[HTTP API →](/api-reference/snapshots/list — **Returns:** `list[dict]`+[HTTP API →](/api-reference/snapshots/list) — **Returns:** `list[dict]`## `await snapshots.get(name)`-[HTTP API →](/api-reference/snapshots/get+[HTTP API →](/api-reference/snapshots/get)<ParamField body="name" type="str" required>Snapshot name@@ -61,7 +61,7 @@ Create a pre-built snapshot. [HTTP API →](/api-reference/snapshots/create## `await snapshots.delete(name)`-Delete a snapshot. Existing sandboxes are not affected. [HTTP API →](/api-reference/snapshots/delete+Delete a snapshot. Existing sandboxes are not affected. [HTTP API →](/api-reference/snapshots/delete)**Returns:** `None`diff --git a/docs-sandbox/reference/typescript-sdk/exec.mdx b/docs-sandbox/reference/typescript-sdk/exec.mdxindex ce68f6ca..adb7842c 100644--- a/docs-sandbox/reference/typescript-sdk/exec.mdx+++ b/docs-sandbox/reference/typescript-sdk/exec.mdx@@ -7,7 +7,7 @@ Accessed via `sandbox.exec`.## `sandbox.exec.run(command, opts?)`-Run a command synchronously. [HTTP API →](/api-reference/exec/run+Run a command synchronously. [HTTP API →](/api-reference/exec/run)<ParamField body="command" type="string" required>Shell command@@ -35,7 +35,7 @@ const result = await sandbox.exec.run("npm test", { cwd: "/app" });## `sandbox.exec.start(command, opts?)`-Start a long-running command with streaming. [HTTP API →](/api-reference/exec/create-session+Start a long-running command with streaming. [HTTP API →](/api-reference/exec/create-session)<ParamField body="command" type="string" required>Command@@ -180,7 +180,7 @@ Reconnect to a running exec session.## `sandbox.exec.list()`-List all exec sessions. [HTTP API →](/api-reference/exec/list-sessions+List all exec sessions. [HTTP API →](/api-reference/exec/list-sessions)**Returns:** `Promise<ExecSessionInfo[]>`@@ -188,7 +188,7 @@ List all exec sessions. [HTTP API →](/api-reference/exec/list-sessions## `sandbox.exec.kill(sessionId, signal?)`-Kill an exec session. Default signal: `9` (SIGKILL). [HTTP API →](/api-reference/exec/kill-session+Kill an exec session. Default signal: `9` (SIGKILL). [HTTP API →](/api-reference/exec/kill-session)**Returns:** `Promise<void>`diff --git a/docs-sandbox/reference/typescript-sdk/filesystem.mdx b/docs-sandbox/reference/typescript-sdk/filesystem.mdxindex 05491d5e..3cd39d1e 100644--- a/docs-sandbox/reference/typescript-sdk/filesystem.mdx+++ b/docs-sandbox/reference/typescript-sdk/filesystem.mdx@@ -7,7 +7,7 @@ Accessed via `sandbox.files`.## `sandbox.files.read(path)`-Read a file as a UTF-8 string. [HTTP API →](/api-reference/files/read+Read a file as a UTF-8 string. [HTTP API →](/api-reference/files/read)<ParamField body="path" type="string" required>Absolute path to the file@@ -31,7 +31,7 @@ Read a file as raw bytes.## `sandbox.files.write(path, content)`-Write content to a file. [HTTP API →](/api-reference/files/write+Write content to a file. [HTTP API →](/api-reference/files/write)<ParamField body="path" type="string" required>Absolute path for the destination file@@ -47,7 +47,7 @@ Write content to a file. [HTTP API →](/api-reference/files/write## `sandbox.files.list(path?)`-List directory contents. [HTTP API →](/api-reference/files/list-directory+List directory contents. [HTTP API →](/api-reference/files/list-directory)<ParamField body="path" type="string" default="/">Directory path@@ -59,7 +59,7 @@ List directory contents. [HTTP API →](/api-reference/files/list-directory## `sandbox.files.makeDir(path)`-Create a directory (recursive). [HTTP API →](/api-reference/files/mkdir+Create a directory (recursive). [HTTP API →](/api-reference/files/mkdir)<ParamField body="path" type="string" required>Directory path@@ -71,7 +71,7 @@ Create a directory (recursive). [HTTP API →](/api-reference/files/mkdir## `sandbox.files.remove(path)`-Delete a file or directory. [HTTP API →](/api-reference/files/delete+Delete a file or directory. [HTTP API →](/api-reference/files/delete)<ParamField body="path" type="string" required>Path to removediff --git a/docs-sandbox/reference/typescript-sdk/image.mdx b/docs-sandbox/reference/typescript-sdk/image.mdxindex d9703c36..683e65e0 100644--- a/docs-sandbox/reference/typescript-sdk/image.mdx+++ b/docs-sandbox/reference/typescript-sdk/image.mdx@@ -12,7 +12,7 @@ tools) on ARM64.<Note>Images are built ahead of time and started by name — see-[Templates](/sandboxes/templates. Passing an `Image` directly to `Sandbox.create()` is+[Templates](/sandboxes/templates). Passing an `Image` directly to `Sandbox.create()` isrefused, because a build takes minutes.</Note>diff --git a/docs-sandbox/reference/typescript-sdk/pty.mdx b/docs-sandbox/reference/typescript-sdk/pty.mdxindex c89bc6d1..3910e4b6 100644--- a/docs-sandbox/reference/typescript-sdk/pty.mdx+++ b/docs-sandbox/reference/typescript-sdk/pty.mdx@@ -7,7 +7,7 @@ Accessed via `sandbox.pty`.## `sandbox.pty.create(opts?)`-Create an interactive terminal session. [HTTP API →](/api-reference/pty/create+Create an interactive terminal session. [HTTP API →](/api-reference/pty/create)<ParamField body="cols" type="number" default="80">Terminal columnsdiff --git a/docs-sandbox/reference/typescript-sdk/sandbox.mdx b/docs-sandbox/reference/typescript-sdk/sandbox.mdxindex ff9663b5..c9fde0fe 100644--- a/docs-sandbox/reference/typescript-sdk/sandbox.mdx+++ b/docs-sandbox/reference/typescript-sdk/sandbox.mdx@@ -7,7 +7,7 @@ description: "Create, connect, and manage sandbox lifecycle"### `Sandbox.create(opts?)`-Create a new sandbox. [HTTP API →](/api-reference/sandboxes/create+Create a new sandbox. [HTTP API →](/api-reference/sandboxes/create)<ParamField body="template" type="string" default="base">Template name@@ -34,7 +34,7 @@ Create a new sandbox. [HTTP API →](/api-reference/sandboxes/create</ParamField><ParamField body="burst" type="boolean">- Create a [Burst Sandbox](/sandboxes/burst-sandboxes. Disk is preserved across infrastructure restarts; processes may restart.+ Create a [Burst Sandbox](/sandboxes/burst-sandboxes). Disk is preserved across infrastructure restarts; processes may restart.</ParamField><ParamField body="cpuCount" type="number">@@ -50,7 +50,7 @@ Create a new sandbox. [HTTP API →](/api-reference/sandboxes/create</ParamField><ParamField body="image" type="Image">- Declarative image definition (see [Image](/reference/typescript-sdk/image)+ Declarative image definition (see [Image](/reference/typescript-sdk/image))</ParamField><ParamField body="snapshot" type="string">@@ -86,7 +86,7 @@ const sandbox = await Sandbox.create({### `Sandbox.connect(sandboxId, opts?)`-Connect to an existing sandbox. [HTTP API →](/api-reference/sandboxes/get+Connect to an existing sandbox. [HTTP API →](/api-reference/sandboxes/get)<ParamField body="sandboxId" type="string" required>Sandbox ID@@ -110,7 +110,7 @@ const sandbox = await Sandbox.connect("sb-abc123");### `Sandbox.createFromCheckpoint(checkpointId, opts?)`-Create a new sandbox from a checkpoint. [HTTP API →](/api-reference/checkpoints/fork+Create a new sandbox from a checkpoint. [HTTP API →](/api-reference/checkpoints/fork)<ParamField body="checkpointId" type="string" required>Checkpoint ID@@ -130,7 +130,7 @@ const forked = await Sandbox.createFromCheckpoint("cp-abc123");### `Sandbox.createCheckpointPatch(checkpointId, opts)`-Create a patch for a checkpoint. [HTTP API →](/api-reference/patches/create+Create a patch for a checkpoint. [HTTP API →](/api-reference/patches/create)<ParamField body="checkpointId" type="string" required>Target checkpoint@@ -154,7 +154,7 @@ const result = await Sandbox.createCheckpointPatch("cp-abc", { script: "apt inst### `Sandbox.listCheckpointPatches(checkpointId, opts?)`-[HTTP API →](/api-reference/patches/list+[HTTP API →](/api-reference/patches/list)**Returns:** `Promise<PatchInfo[]>`@@ -162,7 +162,7 @@ const result = await Sandbox.createCheckpointPatch("cp-abc", { script: "apt inst### `Sandbox.deleteCheckpointPatch(checkpointId, patchId, opts?)`-[HTTP API →](/api-reference/patches/delete+[HTTP API →](/api-reference/patches/delete)**Returns:** `Promise<void>`@@ -172,7 +172,7 @@ const result = await Sandbox.createCheckpointPatch("cp-abc", { script: "apt inst### `sandbox.kill()`-Terminate the sandbox. [HTTP API →](/api-reference/sandboxes/delete+Terminate the sandbox. [HTTP API →](/api-reference/sandboxes/delete)**Returns:** `Promise<void>`@@ -184,13 +184,13 @@ Check if the sandbox is running.### `sandbox.hibernate()`-Snapshot VM state and stop. No compute cost while hibernated. [HTTP API →](/api-reference/sandboxes/hibernate+Snapshot VM state and stop. No compute cost while hibernated. [HTTP API →](/api-reference/sandboxes/hibernate)**Returns:** `Promise<void>`### `sandbox.wake(opts?)`-Resume a hibernated sandbox. [HTTP API →](/api-reference/sandboxes/wake+Resume a hibernated sandbox. [HTTP API →](/api-reference/sandboxes/wake)<ParamField body="timeout" type="number" default="300">Idle timeout after wake@@ -200,7 +200,7 @@ Resume a hibernated sandbox. [HTTP API →](/api-reference/sandboxes/wake### `sandbox.setTimeout(timeout)`-Update the idle timeout. [HTTP API →](/api-reference/sandboxes/set-timeout+Update the idle timeout. [HTTP API →](/api-reference/sandboxes/set-timeout)<ParamField body="timeout" type="number" required>New timeout in seconds@@ -210,7 +210,7 @@ Update the idle timeout. [HTTP API →](/api-reference/sandboxes/set-timeout### `sandbox.createCheckpoint(name, opts?)`-Create a named checkpoint. [HTTP API →](/api-reference/checkpoints/create+Create a named checkpoint. [HTTP API →](/api-reference/checkpoints/create)<ParamField body="name" type="string" required>Checkpoint name (unique per sandbox)@@ -227,17 +227,17 @@ Create a named checkpoint. [HTTP API →](/api-reference/checkpoints/create### `sandbox.listCheckpoints()`-[HTTP API →](/api-reference/checkpoints/list — **Returns:** `Promise<CheckpointInfo[]>`+[HTTP API →](/api-reference/checkpoints/list) — **Returns:** `Promise<CheckpointInfo[]>`### `sandbox.restoreCheckpoint(checkpointId)`-Revert in-place to a checkpoint. [HTTP API →](/api-reference/checkpoints/restore+Revert in-place to a checkpoint. [HTTP API →](/api-reference/checkpoints/restore)**Returns:** `Promise<void>`### `sandbox.deleteCheckpoint(checkpointId)`-[HTTP API →](/api-reference/checkpoints/delete — **Returns:** `Promise<void>`+[HTTP API →](/api-reference/checkpoints/delete) — **Returns:** `Promise<void>`### `sandbox.getPreviewDomain(port)`@@ -258,7 +258,7 @@ console.log(`https://${domain}`);### `sandbox.downloadUrl(path, opts?)`-Generate a signed download URL. [HTTP API →](/api-reference/files/generate-download-url · [Guide →](/sandboxes/signed-urls+Generate a signed download URL. [HTTP API →](/api-reference/files/generate-download-url) · [Guide →](/sandboxes/signed-urls)<ParamField body="path" type="string" required>Absolute path to the file@@ -272,7 +272,7 @@ Generate a signed download URL. [HTTP API →](/api-reference/files/generate-dow### `sandbox.uploadUrl(path, opts?)`-Generate a signed upload URL. [HTTP API →](/api-reference/files/generate-upload-url · [Guide →](/sandboxes/signed-urls+Generate a signed upload URL. [HTTP API →](/api-reference/files/generate-upload-url) · [Guide →](/sandboxes/signed-urls)<ParamField body="path" type="string" required>Absolute path for the destination file@@ -286,7 +286,7 @@ Generate a signed upload URL. [HTTP API →](/api-reference/files/generate-uploa### `sandbox.createPreviewURL(opts)`-[HTTP API →](/api-reference/preview/create+[HTTP API →](/api-reference/preview/create)<ParamField body="port" type="number" required>Container port (1–65535)@@ -304,17 +304,17 @@ Generate a signed upload URL. [HTTP API →](/api-reference/files/generate-uploa### `sandbox.listPreviewURLs()`-[HTTP API →](/api-reference/preview/list — **Returns:** `Promise<PreviewURLResult[]>`+[HTTP API →](/api-reference/preview/list) — **Returns:** `Promise<PreviewURLResult[]>`### `sandbox.deletePreviewURL(port)`-[HTTP API →](/api-reference/preview/delete — **Returns:** `Promise<void>`+[HTTP API →](/api-reference/preview/delete) — **Returns:** `Promise<void>`---### `sandbox.getAllowedHosts()`-Return the egress allowlist + per-secret allowed hosts the sandbox's secrets proxy enforces. Useful for debugging "why is my outbound HTTP call being blocked" without having to cross-reference the [secret store](/sandboxes/secrets config separately.+Return the egress allowlist + per-secret allowed hosts the sandbox's secrets proxy enforces. Useful for debugging "why is my outbound HTTP call being blocked" without having to cross-reference the [secret store](/sandboxes/secrets) config separately.Sandboxes created without a `secretStore` option return an empty allowlist with `secretStore` undefined — the sandbox has no per-store egress restriction.@@ -365,19 +365,19 @@ The returned `AllowedHostsInfo`:</ParamField><ParamField body="agent" type="SandboxAgent">- [Sandbox agent sessions](https://docs.opencomputer.dev/reference/typescript-sdk/agent+ [Sandbox agent sessions](https://docs.opencomputer.dev/reference/typescript-sdk/agent)</ParamField><ParamField body="exec" type="Exec">- [Command execution](/reference/typescript-sdk/exec+ [Command execution](/reference/typescript-sdk/exec)</ParamField><ParamField body="files" type="Filesystem">- [File operations](/reference/typescript-sdk/filesystem+ [File operations](/reference/typescript-sdk/filesystem)</ParamField><ParamField body="pty" type="Pty">- [Terminal sessions](/reference/typescript-sdk/pty+ [Terminal sessions](/reference/typescript-sdk/pty)</ParamField><ParamField body="commands" type="Exec">diff --git a/docs-sandbox/reference/typescript-sdk/scaling.mdx b/docs-sandbox/reference/typescript-sdk/scaling.mdxindex e865c567..5cb71ea4 100644--- a/docs-sandbox/reference/typescript-sdk/scaling.mdx+++ b/docs-sandbox/reference/typescript-sdk/scaling.mdx@@ -7,8 +7,8 @@ description: "Not available in v2"**Not available in v2.** Memory is fixed at launch in v2, so scaling calls return `501`.</Warning>-Set the size when you create the sandbox — see [Sandbox sizes](/sandboxes/sizes.+Set the size when you create the sandbox — see [Sandbox sizes](/sandboxes/sizes).This page exists so the v2 docs mirror v1 page-for-page. See-[Migrating from v1](/migrating-from-v1 for the full list of removed and changed behaviour,-and [the v1 page](/reference/typescript-sdk/scaling for how this worked before.+[Migrating from v1](/migrating-from-v1) for the full list of removed and changed behaviour,+and [the v1 page](/reference/typescript-sdk/scaling) for how this worked before.diff --git a/docs-sandbox/reference/typescript-sdk/snapshots.mdx b/docs-sandbox/reference/typescript-sdk/snapshots.mdxindex 5407b226..f8e7b59f 100644--- a/docs-sandbox/reference/typescript-sdk/snapshots.mdx+++ b/docs-sandbox/reference/typescript-sdk/snapshots.mdx@@ -27,7 +27,7 @@ const snapshots = new Snapshots({ apiKey: "...", apiUrl: "..." });## `snapshots.create(opts)`-Create a pre-built snapshot from a declarative image. [HTTP API →](/api-reference/snapshots/create+Create a pre-built snapshot from a declarative image. [HTTP API →](/api-reference/snapshots/create)<ParamField body="name" type="string" required>Unique snapshot name@@ -47,7 +47,7 @@ Create a pre-built snapshot from a declarative image. [HTTP API →](/api-refere## `snapshots.list()`-List all snapshots. [HTTP API →](/api-reference/snapshots/list+List all snapshots. [HTTP API →](/api-reference/snapshots/list)**Returns:** `Promise<SnapshotInfo[]>`@@ -55,7 +55,7 @@ List all snapshots. [HTTP API →](/api-reference/snapshots/list## `snapshots.get(name)`-Get a snapshot by name. [HTTP API →](/api-reference/snapshots/get+Get a snapshot by name. [HTTP API →](/api-reference/snapshots/get)<ParamField body="name" type="string" required>Snapshot name@@ -67,7 +67,7 @@ Get a snapshot by name. [HTTP API →](/api-reference/snapshots/get## `snapshots.delete(name)`-Delete a snapshot. Existing sandboxes created from it are not affected. [HTTP API →](/api-reference/snapshots/delete+Delete a snapshot. Existing sandboxes created from it are not affected. [HTTP API →](/api-reference/snapshots/delete)<ParamField body="name" type="string" required>Snapshot namediff --git a/docs-sandbox/reference/typescript-sdk/usage.mdx b/docs-sandbox/reference/typescript-sdk/usage.mdxindex 845c3f2a..ecda0738 100644--- a/docs-sandbox/reference/typescript-sdk/usage.mdx+++ b/docs-sandbox/reference/typescript-sdk/usage.mdx@@ -27,7 +27,7 @@ work.## `usage.forSandbox(sandboxId, opts?)`Return 1-minute memory points plus envelope totals for one sandbox.-[HTTP API ->](/api-reference/usage/get-sandbox-usage+[HTTP API ->](/api-reference/usage/get-sandbox-usage)<ParamField body="sandboxId" type="string" required>Sandbox ID.@@ -66,7 +66,7 @@ for (const point of r.points) {## `usage.bySandbox(opts?)`-Rank sandboxes by usage for an organization. [HTTP API ->](/api-reference/usage/get-usage+Rank sandboxes by usage for an organization. [HTTP API ->](/api-reference/usage/get-usage)<ParamField body="from" type="string">ISO date (`YYYY-MM-DD`) or RFC3339 lower bound. Default: now minus@@ -123,7 +123,7 @@ if (page.nextCursor) {## `usage.byTag(tagKey, opts?)`Group usage by the value of one tag key. Tag keys may contain `:`.-[HTTP API ->](/api-reference/usage/get-usage+[HTTP API ->](/api-reference/usage/get-usage)<ParamField body="tagKey" type="string" required>Tag key to group by, for example `"team"` or `"team:subsystem"`.@@ -174,7 +174,7 @@ const bySubsystem = await usage.byTag("team:subsystem");## `tags.set(sandboxId, tags)`Replace the full tag set for a sandbox. Partial updates are not-supported: read, modify, then write the full map. [HTTP API ->](/api-reference/sandboxes/set-tags+supported: read, modify, then write the full map. [HTTP API ->](/api-reference/sandboxes/set-tags)<ParamField body="sandboxId" type="string" required>Sandbox ID.@@ -196,7 +196,7 @@ await tags.set("sb-abc123", {## `tags.get(sandboxId)`-Read the current tag set for a sandbox. [HTTP API ->](/api-reference/sandboxes/get-tags+Read the current tag set for a sandbox. [HTTP API ->](/api-reference/sandboxes/get-tags)**Returns:** `Promise<{ tags: Record<string, string>; tagsLastUpdatedAt: string | null }>`@@ -208,7 +208,7 @@ console.log(current.tags);## `tags.listKeys()`List tag keys seen in the organization, with counts for tagged-sandboxes and distinct values. [HTTP API ->](/api-reference/usage/list-tags+sandboxes and distinct values. [HTTP API ->](/api-reference/usage/list-tags)**Returns:** `Promise<TagKeyInfo[]>`diff --git a/docs-sandbox/reserved-capacity/concepts.mdx b/docs-sandbox/reserved-capacity/concepts.mdxindex f5f0b084..feef8c77 100644--- a/docs-sandbox/reserved-capacity/concepts.mdx+++ b/docs-sandbox/reserved-capacity/concepts.mdx@@ -87,7 +87,7 @@ can change between when you read the calendar and when you submit areservation; if it does, the write returns `capacity_not_available` and youre-read.-See [Reading the calendar](/reserved-capacity/calendar for the full shape.+See [Reading the calendar](/reserved-capacity/calendar) for the full shape.## Per-org capacity capdiff --git a/docs-sandbox/reserved-capacity/overview.mdx b/docs-sandbox/reserved-capacity/overview.mdxindex f6e1a7d3..1a5df02d 100644--- a/docs-sandbox/reserved-capacity/overview.mdx+++ b/docs-sandbox/reserved-capacity/overview.mdx@@ -110,7 +110,7 @@ window.</CardGroup><Tip>- Full endpoint reference: [`/api/capacity/*`](/api-reference/capacity/get-calendar.+ Full endpoint reference: [`/api/capacity/*`](/api-reference/capacity/get-calendar).</Tip><Note>diff --git a/docs-sandbox/sandboxes/checkpoints.mdx b/docs-sandbox/sandboxes/checkpoints.mdxindex 8ced12a1..087d4180 100644--- a/docs-sandbox/sandboxes/checkpoints.mdx+++ b/docs-sandbox/sandboxes/checkpoints.mdx@@ -62,5 +62,5 @@ on v2. It is being worked on. Until then, restore into an existing sandbox.## Checkpoints outlive their sandboxA checkpoint is stored durably and is not bound to the sandbox that produced it. That makes it-the tool for surviving the [8-hour ceiling](/sandboxes/lifetime: checkpoint before the deadline,+the tool for surviving the [8-hour ceiling](/sandboxes/lifetime): checkpoint before the deadline,then restore onto a sandbox you create later.diff --git a/docs-sandbox/sandboxes/elasticity.mdx b/docs-sandbox/sandboxes/elasticity.mdxindex bfbfcd49..33e0ff17 100644--- a/docs-sandbox/sandboxes/elasticity.mdx+++ b/docs-sandbox/sandboxes/elasticity.mdx@@ -7,8 +7,8 @@ description: "Not available in v2"**Not available in v2.** A sandbox's memory is fixed by the image it launched from and cannot be changed afterwards, so there is nothing to scale. `scale()`, `setAutoscale()` and the in-VM scale endpoint all return `501`.</Warning>-Choose the size at create time instead — see [Sandbox sizes](/sandboxes/sizes. Sizes are fixed steps from 1 GB to 8 GB.+Choose the size at create time instead — see [Sandbox sizes](/sandboxes/sizes). Sizes are fixed steps from 1 GB to 8 GB.This page exists so the v2 docs mirror v1 page-for-page. See-[Migrating from v1](/migrating-from-v1 for the full list of removed and changed behaviour,-and [the v1 page](/sandboxes/elasticity for how this worked before.+[Migrating from v1](/migrating-from-v1) for the full list of removed and changed behaviour,+and [the v1 page](/sandboxes/elasticity) for how this worked before.diff --git a/docs-sandbox/sandboxes/interactive-terminals.mdx b/docs-sandbox/sandboxes/interactive-terminals.mdxindex e7bf5772..0537316e 100644--- a/docs-sandbox/sandboxes/interactive-terminals.mdx+++ b/docs-sandbox/sandboxes/interactive-terminals.mdx@@ -82,7 +82,7 @@ pty = await sandbox.pty.create(### Resize-PTY resize is available via the [HTTP API](https://docs.opencomputer.dev/reference/api#pty only (`POST /api/sandboxes/:id/pty/:sessionID/resize`). The SDKs do not expose a resize method — the CLI handles resize automatically for interactive sessions.+PTY resize is available via the [HTTP API](https://docs.opencomputer.dev/reference/api#pty) only (`POST /api/sandboxes/:id/pty/:sessionID/resize`). The SDKs do not expose a resize method — the CLI handles resize automatically for interactive sessions.## CLI@@ -93,8 +93,8 @@ oc shell sb-abc123oc shell sb-abc123 --shell /bin/zsh```-Terminal size is auto-detected and resize events are forwarded. See [`oc shell`](/cli/shell for details.+Terminal size is auto-detected and resize events are forwarded. See [`oc shell`](/cli/shell) for details.<Tip>- CLI equivalent: [`oc shell`](/cli/shell. Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#pty · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#pty · [HTTP API](https://docs.opencomputer.dev/reference/api#pty.+ CLI equivalent: [`oc shell`](/cli/shell). Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#pty) · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#pty) · [HTTP API](https://docs.opencomputer.dev/reference/api#pty).</Tip>diff --git a/docs-sandbox/sandboxes/lifetime.mdx b/docs-sandbox/sandboxes/lifetime.mdxindex 7cd3a813..7bcd0140 100644--- a/docs-sandbox/sandboxes/lifetime.mdx+++ b/docs-sandbox/sandboxes/lifetime.mdx@@ -77,10 +77,10 @@ On the current runtime, hibernating a sandbox parks it indefinitely. Here it susin place — and suspended time counts against the same 8 hours.A sandbox hibernated overnight will not be there in the morning. See-[Hibernate and wake](/sandboxes/timeout.+[Hibernate and wake](/sandboxes/timeout).## Idle timeouts are clamped to the ceilingYou can ask for an idle timeout, but not one that outlives the sandbox. A request above theceiling is reported back as not applied rather than silently accepted — see-[Idle timeout](/sandboxes/timeout.+[Idle timeout](/sandboxes/timeout).diff --git a/docs-sandbox/sandboxes/mounts.mdx b/docs-sandbox/sandboxes/mounts.mdxindex f7df22b2..f388af71 100644--- a/docs-sandbox/sandboxes/mounts.mdx+++ b/docs-sandbox/sandboxes/mounts.mdx@@ -10,5 +10,5 @@ description: "Not available in v2"To bring data into a v2 sandbox, copy it in with `files.write` or a signed upload URL, or have your code read it from object storage over the network.This page exists so the v2 docs mirror v1 page-for-page. See-[Migrating from v1](/migrating-from-v1 for the full list of removed and changed behaviour,-and [the v1 page](/sandboxes/mounts for how this worked before.+[Migrating from v1](/migrating-from-v1) for the full list of removed and changed behaviour,+and [the v1 page](/sandboxes/mounts) for how this worked before.diff --git a/docs-sandbox/sandboxes/overview.mdx b/docs-sandbox/sandboxes/overview.mdxindex 3725a8ce..e348221d 100644--- a/docs-sandbox/sandboxes/overview.mdx+++ b/docs-sandbox/sandboxes/overview.mdx@@ -82,13 +82,13 @@ curl -X POST https://app.opencomputer.dev/api/sandboxes \| `memoryMB` | number | — | Memory in MB. TypeScript and HTTP API only || `diskMB` | number | `20480` | Workspace disk size in MB (20GB–256GB). See disk sizing note below. || `secretStore` | string | — | Secret store name — resolves encrypted secrets and egress allowlist |-| `image` | Image | — | Declarative image definition (see [Templates](/sandboxes/templates) |+| `image` | Image | — | Declarative image definition (see [Templates](/sandboxes/templates)) || `snapshot` | string | — | Name of a pre-built snapshot for instant boot || `apiKey` | string | — | Defaults to `OPENCOMPUTER_API_KEY` env var || `apiUrl` | string | — | Defaults to `OPENCOMPUTER_API_URL` env var |<Note>- `cpuCount`, `memoryMB`, and `secretStore` are not available in the Python SDK. Use the [HTTP API](https://docs.opencomputer.dev/reference/api#sandbox-lifecycle directly for custom resources from Python.+ `cpuCount`, `memoryMB`, and `secretStore` are not available in the Python SDK. Use the [HTTP API](https://docs.opencomputer.dev/reference/api#sandbox-lifecycle) directly for custom resources from Python.</Note><Info>@@ -151,7 +151,7 @@ Content-Type: application/json</CodeGroup><Note>- `hibernate()` and `wake()` are available in the TypeScript SDK and [CLI](/cli/sandbox. Python SDK support is planned — use the [HTTP API](https://docs.opencomputer.dev/reference/api#sandbox-lifecycle directly.+ `hibernate()` and `wake()` are available in the TypeScript SDK and [CLI](/cli/sandbox). Python SDK support is planned — use the [HTTP API](https://docs.opencomputer.dev/reference/api#sandbox-lifecycle) directly.</Note>## Methods@@ -171,10 +171,10 @@ Content-Type: application/json| Sandbox ID | `sandbox.sandboxId` | `sandbox.sandbox_id` | Unique identifier || Status | `sandbox.status` | `sandbox.status` | Current lifecycle state || Domain | `sandbox.domain` | — | Preview URL domain for port 80 |-| Agent | `sandbox.agent` | `sandbox.agent` | [Agent sessions](https://docs.opencomputer.dev/agent-sessions/overview |-| Exec | `sandbox.exec` | `sandbox.exec` | [Command execution](/sandboxes/running-commands |-| Files | `sandbox.files` | `sandbox.files` | [Filesystem](/sandboxes/working-with-files |-| PTY | `sandbox.pty` | `sandbox.pty` | [Interactive terminals](/sandboxes/interactive-terminals |+| Agent | `sandbox.agent` | `sandbox.agent` | [Agent sessions](https://docs.opencomputer.dev/agent-sessions/overview) |+| Exec | `sandbox.exec` | `sandbox.exec` | [Command execution](/sandboxes/running-commands) |+| Files | `sandbox.files` | `sandbox.files` | [Filesystem](/sandboxes/working-with-files) |+| PTY | `sandbox.pty` | `sandbox.pty` | [Interactive terminals](/sandboxes/interactive-terminals) |<Warning>`sandbox.commands` is a deprecated alias for `sandbox.exec`. Use `sandbox.exec` in all new code.@@ -207,7 +207,7 @@ forked = await Sandbox.create_from_checkpoint("cp-abc123", timeout=600)</CodeGroup>-See [Checkpoints](/sandboxes/checkpoints for the full workflow.+See [Checkpoints](/sandboxes/checkpoints) for the full workflow.## Related@@ -233,5 +233,5 @@ See [Checkpoints](/sandboxes/checkpoints for the full workflow.</CardGroup><Tip>- CLI: [`oc sandbox`](/cli/sandbox for lifecycle management. Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#sandbox · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#sandbox · [HTTP API](https://docs.opencomputer.dev/reference/api#sandbox-lifecycle.+ CLI: [`oc sandbox`](/cli/sandbox) for lifecycle management. Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#sandbox) · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#sandbox) · [HTTP API](https://docs.opencomputer.dev/reference/api#sandbox-lifecycle).</Tip>diff --git a/docs-sandbox/sandboxes/patches.mdx b/docs-sandbox/sandboxes/patches.mdxindex 405cac24..1c5234fd 100644--- a/docs-sandbox/sandboxes/patches.mdx+++ b/docs-sandbox/sandboxes/patches.mdx@@ -7,8 +7,8 @@ description: "Not available in v2"**Not available in v2.** The checkpoint patch API is not wired up in v2.</Warning>-Capture a fresh [checkpoint](/sandboxes/checkpoints instead of layering a patch onto an existing one.+Capture a fresh [checkpoint](/sandboxes/checkpoints) instead of layering a patch onto an existing one.This page exists so the v2 docs mirror v1 page-for-page. See-[Migrating from v1](/migrating-from-v1 for the full list of removed and changed behaviour,-and [the v1 page](/sandboxes/patches for how this worked before.+[Migrating from v1](/migrating-from-v1) for the full list of removed and changed behaviour,+and [the v1 page](/sandboxes/patches) for how this worked before.diff --git a/docs-sandbox/sandboxes/preview-urls.mdx b/docs-sandbox/sandboxes/preview-urls.mdxindex 44a41ae6..db1c770d 100644--- a/docs-sandbox/sandboxes/preview-urls.mdx+++ b/docs-sandbox/sandboxes/preview-urls.mdx@@ -245,5 +245,5 @@ await sandbox.createPreviewURL({ port: 5432 });```<Tip>- CLI equivalent: [`oc preview`](/cli/preview. Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#sandbox · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#sandbox · [HTTP API](https://docs.opencomputer.dev/reference/api#preview-urls.+ CLI equivalent: [`oc preview`](/cli/preview). Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#sandbox) · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#sandbox) · [HTTP API](https://docs.opencomputer.dev/reference/api#preview-urls).</Tip>diff --git a/docs-sandbox/sandboxes/running-commands.mdx b/docs-sandbox/sandboxes/running-commands.mdxindex 77de15b8..7dcf9ec2 100644--- a/docs-sandbox/sandboxes/running-commands.mdx+++ b/docs-sandbox/sandboxes/running-commands.mdx@@ -314,5 +314,5 @@ await sandbox.exec.kill(session_id, signal=15) # SIGTERM</Warning><Tip>- CLI equivalent: [`oc exec`](/cli/exec. Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#exec · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#exec · [HTTP API](https://docs.opencomputer.dev/reference/api#commands-exec.+ CLI equivalent: [`oc exec`](/cli/exec). Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#exec) · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#exec) · [HTTP API](https://docs.opencomputer.dev/reference/api#commands-exec).</Tip>diff --git a/docs-sandbox/sandboxes/signed-urls.mdx b/docs-sandbox/sandboxes/signed-urls.mdxindex ece1efb9..bc4c88eb 100644--- a/docs-sandbox/sandboxes/signed-urls.mdx+++ b/docs-sandbox/sandboxes/signed-urls.mdx@@ -158,5 +158,5 @@ async with httpx.AsyncClient(timeout=120.0) as http:- **Path-scoped:** Each URL is bound to a specific file path. Changing the path in the URL returns `403`.<Tip>- Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#filesystem · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#filesystem · [HTTP API](/api-reference/files/generate-download-url.+ Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#filesystem) · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#filesystem) · [HTTP API](/api-reference/files/generate-download-url).</Tip>diff --git a/docs-sandbox/sandboxes/sizes.mdx b/docs-sandbox/sandboxes/sizes.mdxindex 05c258c6..25d7a11a 100644--- a/docs-sandbox/sandboxes/sizes.mdx+++ b/docs-sandbox/sandboxes/sizes.mdx@@ -30,7 +30,7 @@ and nothing in between exists.The one gap is **16 GB**. If you run 16 GB sandboxes today, that work has to fit in 8 GB or besplit before you migrate — memory cannot be raised after launch either. See-[Prepare to migrate](/migrating-from-v1.+[Prepare to migrate](/migrating-from-v1).## Disk@@ -106,4 +106,4 @@ cannot be resized.</Warning>If you size sandboxes dynamically today, that decision has to move to create time. See-[What's not supported](/migrating-from-v1.+[What's not supported](/migrating-from-v1).diff --git a/docs-sandbox/sandboxes/timeout.mdx b/docs-sandbox/sandboxes/timeout.mdxindex 5476050c..2d5c2677 100644--- a/docs-sandbox/sandboxes/timeout.mdx+++ b/docs-sandbox/sandboxes/timeout.mdx@@ -128,6 +128,6 @@ The tradeoff is latency vs cost: a lower timeout saves money but adds wake laten## See also-- [Lifecycle overview](/sandboxes/overview#lifecycle — all sandbox states-- [Set timeout API](/api-reference/sandboxes/set-timeout-- [Hibernate API](/api-reference/sandboxes/hibernate / [Wake API](/api-reference/sandboxes/wake+- [Lifecycle overview](/sandboxes/overview#lifecycle) — all sandbox states+- [Set timeout API](/api-reference/sandboxes/set-timeout)+- [Hibernate API](/api-reference/sandboxes/hibernate) / [Wake API](/api-reference/sandboxes/wake)diff --git a/docs-sandbox/sandboxes/usage.mdx b/docs-sandbox/sandboxes/usage.mdxindex 5149a2f5..e1f9389a 100644--- a/docs-sandbox/sandboxes/usage.mdx+++ b/docs-sandbox/sandboxes/usage.mdx@@ -3,13 +3,13 @@ title: "Usage Monitoring"description: "Inspect a sandbox's memory allocation and actual utilization over time"----[`GET /api/sandboxes/:id/usage`](/api-reference/usage/get-sandbox-usage+[`GET /api/sandboxes/:id/usage`](/api-reference/usage/get-sandbox-usage)returns a per-minute time series of a sandbox's memory — both thetier you provisioned and what the process actually consumed —together with envelope totals. Use it to answer "am I over-paying forthis sandbox" or "when did memory spike?" For cross-sandboxleaderboards (rank by usage, group by tag) see the aggregator at-[`GET /api/usage`](/api-reference/usage/get-usage instead.+[`GET /api/usage`](/api-reference/usage/get-usage) instead.<Note>**Preview:** Usage and tag APIs are new. Endpoints, response fields,@@ -38,7 +38,7 @@ Path carries the sandbox ID. `from` and `to` are optional and acceptISO dates (`YYYY-MM-DD`, interpreted as UTC midnight) or RFC3339timestamps; omit them for the last hour. Max window is **30 days**.Full param reference: the-[API page](/api-reference/usage/get-sandbox-usage.+[API page](/api-reference/usage/get-sandbox-usage).## Response@@ -65,7 +65,7 @@ Full param reference: the`totals` is the server-side sum of `points[]` — summing anyadditive field across the array reproduces the matching `totals.*`exactly. Full field semantics live in the-[API reference](/api-reference/usage/get-sandbox-usage.+[API reference](/api-reference/usage/get-sandbox-usage).## Allocated vs used@@ -109,7 +109,7 @@ curl -s "$OPENCOMPUTER_API_URL/api/sandboxes/sb-abc/usage?from=2026-05-27T00:00:</CodeGroup>-Full TypeScript SDK reference: [Usage & Tags](/reference/typescript-sdk/usage.+Full TypeScript SDK reference: [Usage & Tags](/reference/typescript-sdk/usage).## Bucket semanticsdiff --git a/docs-sandbox/sandboxes/webhooks.mdx b/docs-sandbox/sandboxes/webhooks.mdxindex 58a060ab..c2b22518 100644--- a/docs-sandbox/sandboxes/webhooks.mdx+++ b/docs-sandbox/sandboxes/webhooks.mdx@@ -181,7 +181,7 @@ Redelivery re-sends the **same** message to the endpoint (same `svix-id`) — fo### Verify a webhook-The SDK ships a verifier — no extra dependency, runs in Node / Cloudflare Workers / browsers — that checks the signature and returns the parsed envelope. It's the **same `verifyWebhook`** used for [session webhooks](https://docs.opencomputer.dev/agent-sessions/webhooks; pass `SandboxLifecycleEvent` to type the nested event:+The SDK ships a verifier — no extra dependency, runs in Node / Cloudflare Workers / browsers — that checks the signature and returns the parsed envelope. It's the **same `verifyWebhook`** used for [session webhooks](https://docs.opencomputer.dev/agent-sessions/webhooks); pass `SandboxLifecycleEvent` to type the nested event:```tsimport { verifyWebhook, type SandboxLifecycleEvent } from "@opencomputer/sdk";@@ -197,4 +197,4 @@ if (delivery.type === "sandbox.stopped") {Or verify with any [Standard Webhooks](https://www.standardwebhooks.com) / Svix library directly, against the raw body and the `svix-id` / `svix-timestamp` / `svix-signature` headers.-<Note>Webhooks here cover **sandbox lifecycle**. To deliver an agent's *session* events (turns, messages, results), see [Agent Sessions webhooks](https://docs.opencomputer.dev/agent-sessions/webhooks — verified with the same `verifyWebhook` helper. Session webhooks differ in a couple of specifics today: their `webhook-id` is the event id, and signing is opt-in (set a `secret`).</Note>+<Note>Webhooks here cover **sandbox lifecycle**. To deliver an agent's *session* events (turns, messages, results), see [Agent Sessions webhooks](https://docs.opencomputer.dev/agent-sessions/webhooks) — verified with the same `verifyWebhook` helper. Session webhooks differ in a couple of specifics today: their `webhook-id` is the event id, and signing is opt-in (set a `secret`).</Note>diff --git a/docs-sandbox/sandboxes/working-with-files.mdx b/docs-sandbox/sandboxes/working-with-files.mdxindex 6440b167..3c010d3c 100644--- a/docs-sandbox/sandboxes/working-with-files.mdx+++ b/docs-sandbox/sandboxes/working-with-files.mdx@@ -228,5 +228,5 @@ await sandbox.exec.run("chmod +x /tmp/setup.sh && /tmp/setup.sh")</CodeGroup><Tip>- Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#filesystem · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#filesystem · [HTTP API](https://docs.opencomputer.dev/reference/api#filesystem.+ Full reference: [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk#filesystem) · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk#filesystem) · [HTTP API](https://docs.opencomputer.dev/reference/api#filesystem).</Tip>diff --git a/docs-sandbox/self-hosting/gcp-development.mdx b/docs-sandbox/self-hosting/gcp-development.mdxindex 157a3942..50e8adf9 100644--- a/docs-sandbox/self-hosting/gcp-development.mdx+++ b/docs-sandbox/self-hosting/gcp-development.mdx@@ -10,7 +10,7 @@ QEMU/KVM sandboxes together.<Warning>This topology is for development and performance testing. It has one host, nohigh availability, an HTTP API, and ephemeral Local SSD storage. For the-production shape, start with the [self-hosting architecture](/self-hosting/overview.+production shape, start with the [self-hosting architecture](/self-hosting/overview).</Warning>## What gets createddiff --git a/docs-sandbox/self-hosting/overview.mdx b/docs-sandbox/self-hosting/overview.mdxindex b9765988..e64f5353 100644--- a/docs-sandbox/self-hosting/overview.mdx+++ b/docs-sandbox/self-hosting/overview.mdx@@ -119,7 +119,7 @@ A development cell can run every component on one VM:This is the fastest way to test real VM behavior. It is not highly available,and local storage can be ephemeral. Use the-[GCP development guide](/self-hosting/gcp-development for this topology.+[GCP development guide](/self-hosting/gcp-development) for this topology.### Scalable hostingdiff --git a/docs-sandbox/troubleshooting.mdx b/docs-sandbox/troubleshooting.mdxindex 5d74c1ce..f9fa9aa4 100644--- a/docs-sandbox/troubleshooting.mdx+++ b/docs-sandbox/troubleshooting.mdx@@ -95,4 +95,4 @@ oc exec sb-abc123 --wait -- journalctl --no-pager -n 50## Getting Help- **GitHub Issues:** [github.com/diggerhq/opencomputer/issues](https://github.com/diggerhq/opencomputer/issues)-- **API Reference:** [HTTP API](https://docs.opencomputer.dev/reference/api · [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk · [CLI](https://docs.opencomputer.dev/reference/cli+- **API Reference:** [HTTP API](https://docs.opencomputer.dev/reference/api) · [TypeScript SDK](https://docs.opencomputer.dev/reference/typescript-sdk) · [Python SDK](https://docs.opencomputer.dev/reference/python-sdk) · [CLI](https://docs.opencomputer.dev/reference/cli)