packages/ai-sandbox-blaxel
Alem TuzlakMerge commit 'a5fce7f95b8b9c6eb57697aa1e3f587bf27483b9' into fix/anthropic-thinking-replay
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
@tanstack/ai-sandbox-blaxel#
Blaxel sandbox provider for TanStack AI
Runs harness adapters inside isolated Blaxel cloud sandboxes through the uniform SandboxHandle.
Installation#
npm install @tanstack/ai-sandbox-blaxel
# or
pnpm add @tanstack/ai-sandbox-blaxel
# or
yarn add @tanstack/ai-sandbox-blaxel
Usage#
import { blaxelSandbox } from '@tanstack/ai-sandbox-blaxel'
const blaxel = blaxelSandbox({
apiKey: process.env.BL_API_KEY,
workspace: process.env.BL_WORKSPACE,
})
Hand the provider to a sandboxed run the same way as any other; see the sandbox docs for the surrounding wiring.
- Auth / env: pass
apiKeyandworkspace, or setBL_API_KEYandBL_WORKSPACE.@blaxel/coreauthentication is process-global, so the provider records the resolved workspace at construction and rejects a later provider asking for a different one. - Image / size / region:
image(defaultblaxel/base-image:latest),memory(default 2048 MB), andregion(orBL_REGION). - Lifetime: created sandboxes carry a
1hTTL so an abandoned run cannot strand a paid sandbox. Override withttl, or passttl: nullto manage it yourself. - Snapshot / resume: resume-by-id reconnects to the named sandbox. Blaxel's snapshot/fork API is a private preview today, so this provider advertises
snapshotsandforkasfalserather than claiming a guarantee it cannot meet.
Documentation#
- Sandbox overview: what a sandbox run is and how the pieces fit
- Providers: every provider side by side, with the capability matrix
- Harnesses and Harness auth: what runs inside, and how it signs in
License#
MIT