Skip to main content
@continuous-labs/sdk is the TypeScript SDK for the Continuous Simulation API. Speakeasy generates it from the public OpenAPI contract, and it lives in the continuous-labs-ai/continuous-typescript repository. The package is published on npm. The package is an ES module only; from CommonJS, load it with await import("@continuous-labs/sdk"). The repository’s RUNTIMES.md lists the supported JavaScript runtimes. The SDK is in beta: a release may include breaking changes without a major version update, so pin the package to a specific version.

Install

pnpm add @continuous-labs/sdk, bun add @continuous-labs/sdk, and yarn add @continuous-labs/sdk work too.

Send a request

Set CONTINUOUS_API_KEY_AUTH to your API key, then list your Simulators:
Pass the key through apiKeyAuth. This example uses top-level await in an ES module. HTTP errors throw ContinuousError from @continuous-labs/sdk/models/errors. An ErrorT carries the API’s problem body in data$.code and data$.detail; see Errors for the codes. Every method is also available as a standalone function, for example simulatorsListSimulators, for bundles that need tree shaking.

Reference

The repository documents every operation with its parameters, response type, and errors: Simulators, Simulations, and Worlds. Its README also covers retries, a custom HTTP client, server selection, and debug logging. Report SDK and API problems in continuous-labs-ai/continuous-typescript.