Orchvia runs Claude Code and Codex agents as a team from your own application, including the Codex CLI already signed in on your machine: one local engine, with TypeScript and Python SDKs.
- Agents stay warm. Each agent is a long-lived session that keeps its history, so follow-up work reuses it instead of starting over, or forks it to try another direction.
- Nothing is lost or silently repeated. Tasks, messages, approvals and token usage are stored in SQLite before anything runs. After a crash, work whose outcome is unknown waits for you instead of being retried.
- You stay in charge. Your code and the limits you configure decide what runs next, not a manager model. A result counts as done only after a person or a check you registered accepts it.
You need Node.js 22.18 or later, on macOS or Linux. Orchvia uses Node's built-in SQLite, which prints an experimental warning.
git clone https://github.com/masonlee39/orchvia.git
cd orchvia
node examples/typescript/quickstart.tsThe example uses a fake runtime, so it needs no account, no installed dependencies, and calls no model. It runs two tasks, accepts each result, and the second task reuses the first agent's session:
1. "Draft the release notes": completed, session <id>
2. "Tighten the draft you just wrote": completed, session <id>
The second task reused the first agent's session: true
From Python 3.11 or later, the same quickstart runs through a Node host that Python starts, and prints the same three lines:
PYTHONPATH=python/src python3 examples/python/quickstart.pyWith real Claude, the same two tasks run on one Claude Code session. You need Claude Code signed in (claude auth login); the example makes two small model calls. It needs the repository's dependencies, which include the Claude Agent SDK:
npm ci --ignore-scripts
node examples/typescript/quickstart-claude.tsTo use Orchvia in your own project, install it from npm (Node.js 22.18 or later):
npm install @orchvia/sdk @orchvia/engine @orchvia/adapter-claudeUse @orchvia/adapter-codex for Codex, including your own signed-in Codex CLI, and add @orchvia/cli for a separate host. For Python 3.11 or later, pip install orchvia installs the Python SDK, which starts or connects to the Node host of @orchvia/cli. To let agents edit files, run Codex, or wire the engine into your application, follow the integration guide.
Orchvia runs coding agents. It is not a framework for building agents out of model calls, and it can sit next to one.
| Orchvia | LLM agent frameworks1 | Claude Code subagents2 | Several sessions by hand | |
|---|---|---|---|---|
| An agent is | a Claude Code or Codex session that stays open across tasks | model calls and tools that your code defines | a helper with its own context window, inside one Claude Code session | a terminal window |
| The next step is chosen by | your code and the limits you configure | your graph or code, or a model: a manager LLM in CrewAI's hierarchical process, or handoffs that the model calls as tools in the OpenAI Agents SDK | the main Claude agent, when a task matches a subagent's description | you |
| Scope | many agents and tasks in one engine, with a durable mailbox between them | whatever your graph, crew or workflow defines | one session | sessions that do not know about each other |
- Sessions: open, reuse, fork, compact, pause, resume and stop agents; each keeps its native history.
- Your own Codex CLI: the Codex CLI installed and signed in on your machine joins the team with its sign-in untouched. Each task gets its own mode, network setting and paths it can read and write, and your application can check each command before it runs.
- Scheduling: dependencies between tasks, queues for busy agents, limits on how many run at once, and no two writers on the same files.
- Messages and handoffs: a durable mailbox between agents; delegation and handoffs that your host approves.
- Acceptance: human review of each result, or verification commands you register.
- Accounting: token usage recorded per task, with cost estimates from prices you register.
- Recovery: after a crash, nothing is resent or marked done by guesswork; you settle unknown outcomes explicitly.
- Routing (optional): a judge you choose, a model or plain rules, proposes which agent takes a request; nothing is submitted without you.
Orchvia is alpha software.
- Tested offline on macOS and Linux, with Node 22 and 24 and Python 3.11 and 3.14.
- The real Claude Code and Codex programs are tested in CI against a scripted local gateway, with no model calls. The Codex CLI as a local member is tested with versions 0.153.4, 0.157.1 and 0.158.0.
- Not verified yet: runs with real models, operating-system sandbox enforcement, Windows, and speed or cost compared with other approaches. Measurements will be published with their raw data.
Status lists what each check covered, the specifications and their evidence.
- Integration guide: wire the engine into your application, step by step.
- Reference: installation, the CLI, configuration and handling failures.
- Concepts: the terms these documents use, in plain words.
- Design: why the engine works the way it does.
- Status: what is verified, specifications and evidence.
- Stability: what an upgrade may change.
- Python SDK and contributing.
MIT. Third-party SDKs and native runtimes keep their own licenses.
Footnotes
-
LangGraph, CrewAI processes, OpenAI Agents SDK handoffs and Microsoft Agent Framework, the successor to AutoGen. Checked on 2026-09-23. ↩
-
Claude Code subagents, checked on 2026-09-23. ↩