---
title: "Zeitlich - An opinionated AI agent implementation on top of Temporal"
description: "Zeitlich is a lightweight framework for building reliable, stateful AI agents. It provides the building blocks for creating multi-turn agents. Think OpenClaw, but durable, with long-term state, and enterprise-ready."
canonical: "https://temporal.io/code-exchange/zeitlich-an-opinionated-ai-agent-implementation-on-top-of-temporal.md"
source: "https://temporal.io/code-exchange/zeitlich-an-opinionated-ai-agent-implementation-on-top-of-temporal"
published: "2026-03-05"
authors:
  - "Bead AI Team"
languages:
  - "TypeScript"
tags:
  - "ai"
  - "agents"
reviewed_by_temporal: false
community_contribution: true
---

# Zeitlich - An opinionated AI agent implementation on top of Temporal

Zeitlich is a lightweight framework for building reliable, stateful AI agents. It provides the building blocks for creating multi-turn agents. Think OpenClaw, but durable, with long-term state, and enterprise-ready.

- [View repo](https://github.com/bead-ai/zeitlich)

Building production AI agents is hard. Agents need to:

- __Survive failures__ — What happens when your agent crashes mid-task?
- __Handle long-running work__ — Some tasks take hours or days
- __Coordinate__ — Multiple agents often need to work together
- __Maintain state__ — Conversation history, tool results, workflow state

Temporal solves these problems for workflows. Zeitlich brings these guarantees to AI agents.

### Features
- __Durable execution__ — Agent state survives process restarts and failures
- __Thread management__ — Redis-backed conversation storage with automatic persistence
- __Type-safe tools__ — Define tools with Zod schemas, get full TypeScript inference
- __Lifecycle hooks__ — Pre/post tool execution, session start/end
- __Subagent support__ — Spawn child agents as Temporal child workflows
- __Filesystem utilities__ — In-memory or custom providers for file operations
- __Model flexibility__ — Framework-agnostic model invocation with adapters for LangChain (and more coming)

### Examples
https://github.com/bead-ai/zeitlich-examples
