Skip to content

OpenRath

An open-source, PyTorch-like runtime for dynamic multi-agent and multi-session workflows.

Install

$pip install openrath

Install command taken from the project's README or registry entry. Always review code before running it.

OpenRath

English | 简体中文


OpenRath is a PyTorch-like multi-agent & multi-session framework.

It turns agent runtime state into explicit, composable Python objects:

  • Session carries conversation state and inter-agent collaboration lineage.
  • Sandbox decides where tools actually run.
  • Memory persists agent memory state across runs.
  • Tool is the operator-like callable surface exposed to the model.
  • Agent is a reusable, composable session transformation layer.
  • Workflow composes multiple agents and workflows into larger systems.
  • Selector routes between self-describing workflows at runtime, so if / while control flow stays plain Python.

OpenRath in the PyTorch Lens

PyTorch idea OpenRath idea What it means
Tensor Session The flowing runtime value: ordered chunks, placement, lineage, and usage.
Device Sandbox / Backend The execution environment where tools run: local process, OpenSandbox, or another backend.
Parameter Memory Persistent state bound to an agent or store, recalled and committed across runs.
Function Tool A callable operation with model-visible schema and runtime behavior.
nn.Linear Agent A reusable layer that maps one session to another using a prompt, provider, tools, and memory.
nn.Module Workflow A composable container for agents, tools, session transforms, and nested workflows.
control flow Selector An LLM-backed router that picks the next workflow at runtime, enabling dynamic if / while over agents.

Most agent frameworks begin with an agent loop. OpenRath begins with Session. That difference matters when one application needs multiple agents, multiple branches, durable memory, sandboxed execution, and traceable lineage at the same time.

OpenRath is designed for this: many agents collaborating across many branchable sessions, while still tracing every role, workspace, memory write, and final output.

OpenRath v2.0.0: Built for Production

The defining change in OpenRath v2.0.0 is that OpenRath moves beyond a composable Python framework and becomes a durable runtime designed for production deployment. The existing Session-first Python API remains intact; the release adds a production execution and operations layer around it.

The diagram summarizes this production path: Python definitions compile into immutable plans, durable Runs are governed by checkpoints, leases, effects, and interrupts, and PostgreSQL, Redis, and S3-compatible storage provide the operational data plane.

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…