Tidebase Documentation
Tidebase is an open-source checkpoint layer for AI agents: wrap your steps, and failed runs resume from the last safe point — in your own Postgres, without moving execution into a new runtime.
It is not a workflow engine, queue, LLM proxy, or hosted runtime. Your code keeps running in your own app, worker, or job process. Tidebase stores checkpoints, live state, events, approval gates, and usage records around it, so the question “this run died at step 7 — is it safe to rerun?” has a reliable answer.
import { Tidebase } from '@tidebase/sdk'
const tide = new Tidebase()
await tide.run('generate-report', { runId }, async (run, input) => {
const plan = await run.step('plan', () => makePlan(input))
await run.state.set({ status: 'writing', progress: 0.7 })
return run.step('write-report', () => writeReport(plan))
})
Re-invoke the same workflow with the same runId after a crash: completed steps return their checkpointed results instantly, and execution continues at the first incomplete step.
Guides
- Quickstart — running in one command sequence, agent-executable
- How to resume a failed AI agent run
- How to checkpoint AI agent workflows in Postgres
- Is it safe to rerun? The replay contract
- Human approval gates for AI agents
- Fork, time travel, and snapshot agent runs
- Queues, cron schedules, and cancellation
- Fan out to subagents with child runs
- Track LLM token usage and cost per run
Comparisons
- Tidebase vs Temporal
- Tidebase vs Inngest
- Tidebase vs LangGraph checkpointers
- Tidebase vs DBOS and Restate
For AI assistants and agents
- /llms.txt — index of these docs for retrieval
- /llms-full.txt — all docs in one file
- MCP server — inspect runs, resolve gates, and debug replay from your assistant
- Tidebase Agent Skill — teaches coding agents when and how to use Tidebase
Status
Tidebase is an open-source (Apache-2.0), self-hosted alpha: Postgres-backed server, TypeScript and Python SDKs, and a Studio dashboard. API auth is opt-in via a shared TIDEBASE_API_KEY; without it, run in trusted local/self-hosted environments only. Repo: https://github.com/BlueprintLabIO/tidebase