← Back to Leaderboard
ORath-Team

Rath-Team/OpenRath

Session-first Python runtime for traceable, resumable multi-agent workflows

Engineering Health (Methodology)
B+ · 67/100
Maintenance Activity
● Updated 2mo ago
Latest Release
v2.0.0
Commercial License Check
BSD-3-Clause · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance20/35
Fork Adoption13/25
Release Cadence14/20
License Clarity20/20
DockerSelf-Hosted
Total Stars
★ 955
24h Growth
+0
7d Growth
+1
Forks
51

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

Rath-Team/OpenRath Star History (2026-05-11 - 2026-12-03) ALL-TIME STAR HISTORY (2026-05 – 2026-12) +954 in 206d · avg +5/day 1k 505 0 2026-05-11: ★ 12026-05-30: ★ 1492026-06-13: ★ 2982026-06-27: ★ 4942026-07-11: ★ 7052026-07-25: ★ 7272026-08-08: ★ 7332026-08-22: ★ 8762026-09-05: ★ 9332026-09-19: ★ 9392026-10-03: ★ 9442026-10-17: ★ 9482026-10-31: ★ 9492026-11-13: ★ 9542026-11-26: ★ 9542026-12-03: ★ 955 ★ 955 2026-05 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

OpenRath is a Python SDK and durable runtime built around Session rather than per-agent chat history. A Session holds ordered message and tool-result chunks alongside execution placement, lineage, and token usage. Agents map Session to Session; Workflows compose those transforms, and an LLM-backed Selector can choose a child workflow inside a normal Python loop. For durable execution, explicit @step and @router boundaries compile into an execution plan with an immutable revision.

The core package depends on openai>=1.0.0, anthropic>=0.40.0, Pydantic>=2.0.0,<3, and mcp>=1.28.1,<2. FlowToolCall couples the model-facing name, description, and JSON schema with a Python callable that receives the Session. Stdio MCP tools can be adapted to the same interface. Sandbox backends determine where operations run; memory is a separate store, not part of tool execution.

Key Capabilities & Differentiators

Sessions can fork, detach from parent lineage, merge compatible branches, and serialize to JSONL. This makes it possible to trace which branch and workspace contributed to an output, rather than reconstructing that path from transcripts. The local backend runs tools against the host workspace; optional OpenSandbox moves that work into a containerized runtime. The built-in memory store under .openrath/memory/ supports BM25 recall and optional embeddings; OpenViking is an alternative backend. OpenAI-compatible endpoints can be set through OPENAI_BASE_URL.

Durable Runs, Events, and Checkpoints survive worker restarts. Leases and fencing guard against stale commits, while retries, deadlines, and cancellation govern execution. The Effect Ledger records outcomes and idempotency keys; if a non-idempotent action has an uncertain outcome, the run enters NEEDS_REVIEW rather than repeating it blindly. Durable Interrupts handle deliberate pauses for approval or input. Agent Server adds explicit action grants, tenant and project scope, policy checks, secret references, trust labels, and audit.

Trade-offs & Limitations

Compared with a graph-first orchestrator, OpenRath makes it natural to pass context through ordinary Python and preserve its lineage across branches. The trade-off is that an LLM-routed path is less predictable than a fixed transition table. Durability also takes explicit design: an embedded loop does not become resumable just because it uses Session. A hosted agent service may reduce operational work; self-hosting OpenRath gives the team control over deployment and integrations but leaves migrations, recovery, access policy, and review queues in its hands.

The Effect Ledger is not an exactly-once guarantee for external APIs: prefer idempotent operations and plan for manual resolution where outcomes can be ambiguous. The local sandbox runs against the host workspace, so use it only for trusted workloads and evaluate isolation for model-driven tools. BSD-3-Clause permits commercial use with notice and non-endorsement conditions; external providers and optional backends have separate terms.

Hardware & Deployment Guide

The openrath package supports Python 3.10–3.13 and installs with pip install openrath; code imports from rath. Embedded mode fits a trusted Python process. OpenAI-compatible model calls can use OPENAI_API_KEY, OPENAI_BASE_URL, and OPENAI_DEFAULT_MODEL, with environment variables taking precedence over ~/.openrath/config.json. Local BM25 recall and session lineage inspection do not require a model API, but a local tool backend does not make model inference offline. No GPU is inherently needed for API-backed orchestration.

For production, use Agent Server and run schema migration as a separate operation. PostgreSQL is the durable source of truth; Redis can accelerate signaling, S3-compatible storage holds artifacts, and OpenTelemetry supports observability. The tree includes docker/ and deploy/, with container and Kubernetes references. Size workers for concurrent sessions and tool processes, and plan storage around retained history and artifacts. v1.3.0 introduced static Workflow.compile() and hardened persistence and configuration; v2.0.0rc1 targeted integration and operator validation, and v2.0.0 added the durable runtime and Agent Server.

Session provenance: Ordered chunks carry token usage and sandbox placement; fork and compatible merge preserve lineage, detach drops parent lineage, and sessions can be exported as JSONL.
Dynamic composition: Agents and nested Workflows share a Session-to-Session interface; an LLM-backed Selector routes among workflows inside ordinary Python control flow.
Tool and memory backends: Python tools and stdio MCP adapters use FlowToolCall; tool execution can target the host or optional OpenSandbox, while local memory offers BM25 recall without a model call.
Durable execution: @step and @router definitions compile into immutable revisions; checkpoints, worker leases, and fencing support recovery and guard against stale commits.
Side-effect handling: The Effect Ledger records outcomes and idempotency keys; ambiguous non-idempotent effects enter NEEDS_REVIEW, while durable Interrupts support planned approval or input.
Self-hosted operations: Agent Server supports action grants and tenant/project scoping; PostgreSQL holds durable state, Redis can accelerate signaling, and S3-compatible storage holds artifacts.
Best For

Python teams building multi-agent workflows that branch, share context, and need traceable outputs, restart recovery, or human approval before consequential actions.

Skip If

A single prompt-and-response loop is enough, or you need a fully managed platform without taking on database operations, tool isolation, and approval handling.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-Hosted
pip install "openrath[server,postgres]"
openrath-migrate
openrath-migrate --check

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
OpenRath ★955+1PythonBSD-3-ClauseSession-first Python runtime for traceable, resumable multi-agent workflows
rocketride-server19.9k+22PythonMITC++ workflow engine for building and running extensible AI pipelines
langchain150.4k+290PythonMITModular Python framework for building agents across model providers
agentscope37.2k+322PythonApache-2.0Python ReAct SDK and FastAPI service for observable, interruptible agent workflo

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/Rath-Team/OpenRath.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Rath-Team/OpenRath Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about OpenRath

How do I integrate OpenRath, and when do I need durable execution?

Embed an Agent or Workflow in your Python process and pass a Session through it. For restart recovery and approval pauses, define explicit @step and @router boundaries and use the durable runtime. A Selector in an ordinary Python loop handles routing; it does not make the loop checkpointable.

Do workers need a GPU, and what should I size?

Not for OpenRath itself when models are served over an API. Size the Python workers for concurrent runs, session state, and tool processes; size the database and artifact store for execution history and retained artifacts. If you self-host a model, size its GPU and VRAM separately for that model and its serving concurrency.

Can we self-host it commercially, and does that keep data on our network?

Yes. BSD-3-Clause permits commercial use and self-hosting. Redistributions must retain the required copyright notice, license conditions, and disclaimer, and you may not imply endorsement using the names of the copyright holder or contributors without permission. Model APIs, MCP servers, and optional services have their own terms. Self-hosting the runtime does not keep data local if workflows call external services.

Why choose OpenRath over a graph-first framework or a hosted agent service?

Choose OpenRath when branch and merge lineage, tool placement, and agent memory need to travel with the same session. A graph-first framework may be easier to review when a predefined transition map is the main deliverable. A hosted agent service can take infrastructure off your team's plate if its data, access-control, and side-effect policies fit your requirements.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Rath-Team/OpenRath? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Rath-Team/OpenRath on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare