Skip to content

ClaudeAgent

Claude Agent SDK in a sandbox, reached through the shared authenticated bridge. The template installs pinned Bun and Claude binaries and bundles the SDK with the bridge.

Since v0.1.0

Builds the agent and its installation template using Bun.build on the host.

Signature

declare const make: (
options: Options
) => Effect.Effect<Agent.Agent, HarnessError.HarnessError | PlatformError, Crypto.Crypto | Socket.WebSocketConstructor>

Source

Since v0.1.0

Options for the Claude agent.

Signature

export interface Options extends Agent.Options {
/** Derive a stable bridge token from the sandbox id using a secret shared by hosts. */
readonly token: (id: Sandbox.SandboxId) => Redacted.Redacted<string>
/** Additional environment variables for Claude. Explicit model settings take precedence. */
readonly env?: Readonly<Record<string, string>>
}

Source

Since v0.1.0