Rath-Team/OpenRath
Session-first Python runtime for traceable, resumable multi-agent workflows
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
Python teams building multi-agent workflows that branch, share context, and need traceable outputs, restart recovery, or human approval before consequential actions.
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.
Quick Start & Installation
pip install "openrath[server,postgres]" openrath-migrate openrath-migrate --check
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| OpenRath ★ | 955 | +1 | Python | BSD-3-Clause | Session-first Python runtime for traceable, resumable multi-agent workflows |
| rocketride-server | 19.9k | +22 | Python | MIT | C++ workflow engine for building and running extensible AI pipelines |
| langchain | 150.4k | +290 | Python | MIT | Modular Python framework for building agents across model providers |
| agentscope | 37.2k | +322 | Python | Apache-2.0 | Python 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.
curl -sL https://repoforai.com/repo/Rath-Team/OpenRath.md
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?
Do workers need a GPU, and what should I size?
Can we self-host it commercially, and does that keep data on our network?
Why choose OpenRath over a graph-first framework or a hosted agent service?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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