← all repositories
cayu-dev/cayu

The agent framework for the parts that fail at 3 a.m.

Cayu is a Python runtime extracted from a real agent-run software factory, built around the boring contracts — durable state, approvals, recovery — that prototypes skip.

★734 stars Python Agents
Not currently ranked.
star history

What it does

Cayu is a production agent runtime: a harness that gives your application control over the full agent execution lifecycle — context assembly, model and tool invocation, state persistence, authority, failure recovery, and evaluation. It ships durable primitives like sessions, task dispatch, leased workers, resumable workflow steps, approvals, and recovery, so you don’t bolt on a separate workflow engine. It was extracted from the runtime behind an agent-operated software factory that built and deployed thousands of business applications.

The interesting bit

The framing is refreshingly honest: prototypes die at the boundaries — a process dying after a side effect but before state is recorded, a tool invoked with the wrong authority, context growing until the provider rejects the request. Cayu treats these as runtime contracts rather than things you discover in production. There’s even a runtime qualification guide mapping claims like durable continuation and approval gating to existing tests, which is more evidence than most agent frameworks offer.

Key highlights

  • Durable sessions, transcripts, events, resume, fork, and interruption for long-horizon work
  • Typed tools, effect declarations, policies, approvals, and idempotency keys for safe side effects
  • Context pressure handled explicitly: token counting, projection, compaction, overflow recovery
  • Cost attribution with usage events, budgets, and causal-budget summaries across retries and subagents
  • Multi-provider support (OpenAI, Anthropic, Bedrock, Vertex, OpenAI-compatible) plus a FastAPI control plane and dashboard
  • Scaffolded projects include hermetic runtime tests and evals, with optional coding presets that produce durable patch_ready_for_delivery evidence without committing or pushing

Caveats

  • The local workspace and runner are trusted-host development adapters, not a hostile-code sandbox — the README says so explicitly
  • Cayu Cloud is invite-only, and some provider features (OpenAI subscription login) are marked experimental
  • The surface area is large; the README leans heavily on generated scaffolds and guides rather than showing the core API directly

Verdict

If you’re running agents that do consequential, long-running work and you’ve been burned by a workflow dying mid-side-effect, Cayu is aimed squarely at you. If you just want a quick model-and-tool loop for a demo, it’s considerably more machinery than you need.

Frequently asked

What is cayu-dev/cayu?
Cayu is a Python runtime extracted from a real agent-run software factory, built around the boring contracts — durable state, approvals, recovery — that prototypes skip.
Is cayu open source?
Yes — cayu-dev/cayu is open source, released under the Apache-2.0 license.
What language is cayu written in?
cayu-dev/cayu is primarily written in Python.
How popular is cayu?
cayu-dev/cayu has 734 stars on GitHub.
Where can I find cayu?
cayu-dev/cayu is on GitHub at https://github.com/cayu-dev/cayu.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.