Documentation · v1.4

Documentation engineers actually finish. Six sections. None of them filler.

The doc was written by the team who built the runtime. We rewrite it whenever a customer tells us a section was confusing. The full text is open source on GitHub; pull requests welcome.

Four steps · 14 seconds ↓

From zero to a running agent in four steps.

1
Install the SDK
$ npm install @lattice/sdk
2
Set your API key
$ export LATTICE_API_KEY="lt_..."
3
Define an agent in agent.ts
$ lattice.agent.define({ name: "summarize", steps: [...] })
4
Run it
$ lattice.runs.create({ agent: "summarize", input: {...} })
The vocabulary, in order ↓

Five primitives, defined once.

Agent
A named, versioned definition of work — the steps an LLM call should perform. Defined once, invoked many times.
Run
A single invocation of an agent against a specific input. Has a unique ID, a status, a trace tree, and durable persistence.
Step
One unit of durable work inside a run. An LLM call, a tool invocation, or a persisted intermediate. The unit Lattice bills on.
Schedule
A queue + concurrency policy. Controls how many runs of an agent can be in flight, with what rate limits, against which providers.
Trace
The complete record of a run — every step, every retry, every prompt, every tool response. Native OpenTelemetry, replayable.
Pick a runtime ↓

TypeScript

v1.4 · current

First-party. Used by 70% of customers.

$ npm install @lattice/sdk

Python

v1.3 · 1 minor behind

First-party. Pinned to TS SDK for parity.

$ pip install lattice-sdk

Go

v0.9 · pre-1.0

First-party. Smaller surface, focused on runners.

$ go get github.com/lattice-run/go

REST + Webhooks

stable

Roll your own client in any language.

$ no install
API reference

Generated from source.

Every method documented with the actual TypeScript and Python types. Searchable by symbol. Includes error code listings, retry behavior, and rate-limit semantics for every endpoint.

Browse API ref →
Examples

Twelve clone-ready repos.

One reference app per agent pattern. Each one builds clean, deploys to Vercel/Modal/Render, runs against Lattice cloud, and is also runnable against the OSS runtime with no edits.

Browse examples on GitHub →

The docs are open source. PRs welcome.

Spotted a typo or a confusing sentence? Open a PR on github.com/lattice-run/docs. We merge and ship the same day if the change is right.

$git clone github.com/lattice-run/docs
Get ProposalInstant SEO Audit