Frontal est en ligne.Lire l'annonce
Développeurs
Se connecter

TypeScript SDK

Embed the Frontal coding agent in a Node.js application with a typed client.

The TypeScript SDK wraps the frontal CLI from @frontal/sdk. It starts the CLI and exchanges JSONL events over stdin/stdout. It requires Node.js 18+.

Start and continue a thread

Stream events

run() buffers until the turn finishes. Use runStreamed() for progress, tool calls, file changes, and usage:

Resume a thread

Threads persist in ~/.frontal/sessions. Save the thread ID and resume it later:

Structured output and images

Pass a JSON Schema for machine-readable output:

Attach local images with structured input entries:

Configuration

Codex accepts env, config, and configOverrides. A thread can set workingDirectory and skipGitRepoCheck. The SDK inherits the Node.js process environment by default; supply env when the child process must receive a restricted environment. See the SDK README for the complete options and item types.

Mis à jour le 17 sept. 2026

© 2026 Frontal Labs, Inc. ou ses sociétés affiliées.

Nous utilisons par défaut une mesure sans cookies. Acceptez les cookies pour nous aider à suivre vos visites d'une session à l'autre et obtenir des données plus précises.