Skip to content

CodexAgent

Codex app-server inside a sandbox, reached through the shared harness bridge.

Since v0.1.0

Bundles the bridge with Bun and creates an agent using the supplied WebSocket and Crypto services.

Signature

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

Source

Since v0.1.0

Model endpoints and the shared sandbox bridge token. Codex requires Responses endpoints.

Signature

export interface Options extends Agent.Options {
readonly token: (id: Sandbox.SandboxId) => Redacted.Redacted<string>
/** Additional Codex configuration, with dotted keys as the app-server accepts them. */
readonly config?: Readonly<Record<string, Schema.Json>>
/** Variables supplied to the sandbox's Codex processes. */
readonly env?: Readonly<Record<string, string>>
}

Source

Since v0.1.0