npm.io
1.0.0 • Published 1 month ago

@tanstack/ai-sandbox-local-process

Licence
MIT
Version
1.0.0
Deps
1
Size
150 kB
Vulns
0
Weekly
0
Stars
3.4K
TanStack AI

@tanstack/ai-sandbox-local-process

Local-process sandbox provider for TanStack AI

Runs the harness directly on your host through the uniform SandboxHandle, so you can develop an agent without provisioning anything.

There is no isolation. The harness inherits your host environment and there is no boundary between the agent and your machine. Use this for trusted or dev work only; reach for one of the cloud providers when the code is not yours.

Installation

npm install @tanstack/ai-sandbox-local-process
# or
pnpm add @tanstack/ai-sandbox-local-process
# or
yarn add @tanstack/ai-sandbox-local-process

Usage

import { localProcessSandbox } from '@tanstack/ai-sandbox-local-process'

const dev = localProcessSandbox()

Hand the provider to a sandboxed run the same way as any other; see the sandbox docs for the surrounding wiring.

  • Auth / env: inherits the host environment. Which credentials the harness uses is set by authMode on the harness ('host' or 'api-key'), not by the provider.
  • Snapshot / resume: none. Each run re-creates and re-bootstraps under the same identity, and the snapshot step is skipped silently.

Documentation

License

MIT

Keywords