Skip to Content
Platform
SDKs & CLIOverview

SDKs & API

Choose the library or command-line tool that fits where your application runs.

Introspection ships SDKs for JavaScript, Python, and Rust, plus a CLI. Use an SDK for application traffic and production evidence. Use the CLI or dashboard to create runtimes, choose versions, configure bindings, and route environments.

Choose a surface

You are buildingStart with
A Node.js or TypeScript service, or a browser applicationJavaScript & TypeScript SDK
A Python service or notebookPython SDK
A Rust serviceRust SDK
Local development or platform operationsCLI
A custom client without an SDKAPI reference

If you do not have a recipe yet, begin with the Quickstart.

What each surface owns

The SDKs work around a runtime. Your application embeds them, so they cover the work a running agent does and the evidence it produces: tasks and runs, files, shares, conversations, events, and metrics. They also resolve the runtime, recipe, or experiment the code is running under, and can bracket their own execution with an experiment’s start, end, and cancel. The SDK pages below cover the run-and-evidence path; for the experiment resource itself, read the API reference alongside the client’s generated types, and see Experiments for what the arms mean.

The CLI is the operator inside a project. It authors and edits runtimes, recipes, and experiments; enables, disables, and calibrates judges; manages API keys, applications, and service-account credentials; configures bindings, endpoints, and variables; and drives local development, deployment, and environment routing.

OperationSDKCLI
Run tasks, stream runs, read evidenceYesYes
Files, shares, conversations, events, metricsYesYes
Resolve a runtime, recipe, or experimentYesYes
Experiment start / end / cancelYes (see API reference)Yes
Create, edit, or delete a recipe or experimentNoYes
Create runtimes, or change a judge’s stateNoYes
API keys, applications, service accountsNoYes
Bindings, endpoints, variablesNoYes
Local development, deploy, environment routingNoYes

Packages

SDKPackageNotes
JavaScript / TypeScript@introspection-sdk/introspection-node, @introspection-sdk/introspection-browserNode.js opens runners and reads production evidence. The browser package has separate Data Plane and product-signal entrypoints.
Pythonintrospection-sdkAsync-first AsyncIntrospectionClient and a synchronous IntrospectionClient twin.
Rustintrospection-sdkAsync client and typed runner resources, with optional Arrow telemetry reads.

Every SDK reads INTROSPECTION_TOKEN from the environment. See Authentication for service accounts, browser token brokering, and token exchange.

Point an application at your own machine

While introspection dev is attached, an application built on any SDK can send its tasks to your local recipe instead of the deployed one. Run the application with a development-scoped credential and it reaches the overlay through its ordinary calls; when several developers share the runtime, set INTROSPECTION_DEV_TARGET to the target printed by the session you want. The selector is development-only: leave it unset in production. See introspection dev for the attachment side and Development lifecycle for the routing and failure rules.

Last updated on