Developer reference
Connect your agent.
Current VM API, supported operations and the contracts that still need integration.
Tabs implementation reviewed 2026-11-27. Host availability is checked separately.
Choose the execution path
The dashboard and compatibility API use operator-approved templates. A template can select a bhv virtual machine or a runc container; read the runtime field on the image and environment. AMD’s current development templates select bhv VMs. Docker is the management interface for that path.
Full native SDK creation is a different contract. POST /tabs/v1/sandboxes returns an authenticated 501 until the SDK adapter can establish guest readiness and policy/grant guarantees. No VM is created by that refusal. Native commands, files, guest access tokens, fork, info and connect are not enabled on this compatibility path.
Check the contract, then the host
GET /tabs/v1/capabilities requires a workspace API key. It describes supported gateway routes and fixed create options. hostReadiness is always not-checked: a supported create route is not a promise of available capacity, an online VM runtime or a healthy guest.
Then read GET /v2/templates for approved IDs, runtime, CPU, memory and readiness. A missing image, unsupported image and unavailable runtime have separate reason codes. Older hosts may omit readiness diagnoses. A historical dashboard snapshot is not current readiness.
curl --fail --silent --show-error \
-H "X-API-Key: $TABS_API_KEY" \
https://api.runtabs.dev/tabs/v1/capabilities
curl --fail --silent --show-error \
-H "X-API-Key: $TABS_API_KEY" \
https://api.runtabs.dev/v2/templatesCreate with the compatibility API
The current workspace defaults to an Ubuntu bhv VM with a writable filesystem and administrator login; sudo runs inside that VM. Use an approved template ID, metadata containing only name (1–50 characters), timeout exactly 300 seconds, and autoPause true. Arbitrary environment variables, runtime overrides, policy, trust and grant options are not accepted by this route. Template runtime and image are pinned for the accepted operation.
Generate a new idempotency key for each logical mutation. Repeat an unchanged request with its original key after transport uncertainty; do not issue a new create key just because a response was lost. Reusing a key with a changed request is a conflict. Keep the complete returned sandboxID, including its host prefix.
curl --fail --silent --show-error \
-X POST https://api.runtabs.dev/v2/sandboxes \
-H "X-API-Key: $TABS_API_KEY" \
-H "Idempotency-Key: $CREATE_ATTEMPT" \
-H "Content-Type: application/json" \
--data '{"templateID":"ubuntu","metadata":{"name":"my-agent"},"timeout":300,"autoPause":true}'Use the SDK’s explicit low-level interface
The current @tabs/sdk build can call the compatibility create, list and delete routes through tabs.api.request. This is an explicit choice of API, not an automatic fallback from tabs.sandboxes.create. The creation acknowledgement is not a connected envd guest descriptor. Keep the original createAttempt for any uncertain retry; applications that need restart-safe retries must persist it before sending.
This example deletes an acknowledged VM in finally. If create has an uncertain outcome, replay the unchanged request with createAttempt before deciding whether cleanup is needed. It does not call asE2B, commands or files, and does not claim that the native SDK adapter is ready. Use your configured secret manager or environment for TABS_API_KEY; the example never prints it.
import { Tabs } from '@tabs/sdk';
const apiKey = process.env.TABS_API_KEY;
if (!apiKey) throw new Error('Set TABS_API_KEY.');
const tabs = new Tabs({
apiKey,
baseUrl: 'https://api.runtabs.dev',
maxRetries: 0,
});
const createAttempt = crypto.randomUUID();
let sandboxID;
try {
const result = await tabs.api.request('post', '/v2/sandboxes', {
body: {
templateID: 'ubuntu', metadata: { name: 'my-agent' },
timeout: 300, autoPause: true,
},
}, { idempotencyKey: createAttempt });
sandboxID = result.sandboxID;
const running = await tabs.api.request('get', '/v2/sandboxes', {});
// This is control-plane access, without guest command/file credentials.
} finally {
if (sandboxID) await tabs.api.request('delete', '/sandboxes/{sandboxID}', {
path: { sandboxID },
}, { idempotencyKey: crypto.randomUUID() });
}Manage lifecycle without changing API contracts
List with GET /v2/sandboxes. Sleep with POST /tabs/v1/sandboxes/{sandboxID}/sleep and {"keepMemory":true}. Wake with POST /tabs/v1/sandboxes/{sandboxID}/wake and {}. Delete with DELETE /sandboxes/{sandboxID} and no body. Supply a separate idempotency key for each mutation. Confirm state through the list route.
Native SDK box.info() and box.wake() use different info/connect routes that this compatibility deployment does not provide. Do not substitute an operation after an uncertain result. Pause/resume preserves the current environment on its host; it is not verified host-restart recovery or a portable snapshot.
Terminals, auditing and secrets
Dashboard terminals open the configured guest shell: administrator login for the Ubuntu VM profile, or a non-root shell for restricted profiles. Input, resize, interrupt, reconnect and close have been tested on AMD bhv VMs. The dashboard protocol is not envd or a public SSH server. Guest internet access and network isolation are not yet verified. The Ubuntu administrator profile has a writable guest filesystem; files remain with the environment until deletion. Other restricted profiles can use RAM-backed workspaces.
The audit page reads native SDK observations and retained records. Dashboard OCI VM and container PTY commands are not included in those records. Do not treat those records as a complete trace of shell commands or child processes. Missing terminal outcomes remain unknown.
The workspace vault stores encrypted write-only secrets. Saving a value does not inject it into a guest or establish broker delivery. Native SDK guest bootstrap, ingress isolation, policy/broker wiring and production restart recovery still require verification.
Interpret failures before retrying
401 means workspace authentication failed. 403 means the credential is not allowed to perform the operation. 404 can mean an unavailable environment, template or route. 409 is a conflict or changed state; inspect the current list before proceeding. 422 means an outcome is uncertain. 429 indicates quota or request limits.
The explicit native-create 501 means the native SDK contract is not enabled; it is not a compute outage and is not permission to fall back to another create API. An unavailable runtime can prevent placement while the Cloudflare gateway, host agent, image storage and other platform services remain online. Restore or release the shared test runtime through the operator procedure; the dashboard does not start bhvd.
Direct answers
Questions worth asking.
Does using the Docker API mean my environment is a container?
The runtime field determines execution. Approved bhv-vm templates use the bhv OCI shim to launch VMs while Docker remains the management API. Templates using docker select the container runtime.
Does the native SDK create method work on this deployment?
Full native SDK creation is not enabled. Its authenticated endpoint returns 501 without creating a sandbox. The explicit low-level compatibility API has separately passed VM creation and lifecycle testing.
Does a supported capability mean a host is available?
No. The capabilities endpoint describes gateway routes and reports hostReadiness as not-checked. Read current image readiness and attempt admission with a stable idempotency key; capacity and runtime readiness are checked separately.
