Getting Started

Two paths to a running agent — everything in one call, or the pieces by hand — and the three adoption tiers behind them.

Latch runs at three tiers. Each is additive: moving up adds an option and changes nothing you already wrote.

TierAddInfrastructureYou get
0 — Statelesslatch-core + latch-drizzle with an in-memory SQLite (@libsql/client)nonedefineAgent + context + tools + streaming, in any serverless function
1 — Persistencea database file or Postgresa DBConversations, runs, usage and cost persisted; run-to-completion in one invocation
2 — Durabilitydurability: { enabled: true } + a cronthe DB + a scheduled tickRuns survive a crash: lease, heartbeat, reaper, resume-from-history