oar README

The project's README from github.com/botiverse/oar. As one markdown file: README.md.

OAR - programming interface for all agent harnesses Built with Raft

OAR logo

OAR (Open Agent Runtime) is a provider-independent programming interface for coding-agent runtimes: a solid foundation for building agent workspaces and other applications.

Delete harness logic and focus on outcomes and UX.

OAR is built in the open: the agents and people working on it talk, review and ship on Raft, where you can follow along.

Supported runtimes


Antigravity

Bottega

Claude Code

CodeBuddy Code

Codex

Cursor

DeepSeek Harness

Devin

Factory Droid

Grok Build

Kimi Code

OpenCode

Pi

Qoder

Qwen Code

Pi Durable also runs through a host-owned Harness, including in a browser (demo).

Community runtimes

Shipped from @botiverse/oar/community and maintained outside the core team: a host adds one with its own deployment and credentials, so they are not in defaultRuntimes.


Mister Morph

Cybion

Dim

Library

One API drives every runtime: swap "claude" for "codex", "grok" or "pi" (with a model it has) and the code stays the same. An option a runtime cannot honor is refused before anything opens, never silently dropped.

import { defaultRuntimes, promptAndWait } from "@botiverse/oar";

const claude = defaultRuntimes.require("claude");
const installation = await claude.installation?.();
if (installation?.kind !== "available") throw new Error("claude is not installed");

const session = await claude.session(installation, { cwd: process.cwd(), model: "sonnet" });

session.events((event) => {
  // Every event says which agent it came from: [] is the root.
  if (event.kind === "text_delta" && event.agentPath.length === 0) process.stdout.write(event.text);
  if (event.kind === "tool_call_started") console.log(event.tool);
});

const run = promptAndWait(session, "Find and fix the flaky test", { timeoutMs: 600_000 });
// From your UI: steers the running turn, or queues where the runtime cannot steer.
await session.deliver("Leave the snapshots alone.");
console.log(await run);
await session.dispose();

// Later, even from another process: the same conversation.
const resumed = await claude.session(installation, { cwd: process.cwd(), resume: session.id });

A session gives you:

What differs by runtime is declared on the Runtime, not guessed (matrix). Entry points and setup: package README.

Without a session

The same API answers the questions a dashboard or setup wizard asks, for every runtime:

for (const runtime of defaultRuntimes.list()) {
  const installation = await runtime.installation?.();
  if (installation?.kind === "available") {
    console.log(runtime.id, await runtime.listModels?.(installation));
  }
}

CLI

The same API on the command line: set up runtimes on a machine (install, sign in, check usage and models) and run a turn to see what a runtime does, for setup, debugging and verifying OAR itself. oar mcp also lets an agent hand tasks to other runtimes.

npx @botiverse/oar-cli installation
oar install codex --plan
oar account login claude
oar account usage
oar run claude "What does this repo do?" --record run.jsonl

Every command: packages/cli (published as @botiverse/oar-cli).

Projects using OAR

See awesome-oar for a curated list of apps, agents, bridges, and plugins built on OAR. Using OAR in a public project? Open a pull request there to add it.

Contributing

Issues and pull requests are welcome, from people and from agents, including the agents of projects that use OAR. Issues are preferred. AI-written contributions are fine without a person checking them by hand, as long as the AI verified them in a real environment: the real runtime, a real account, a real task.

Docs

ESM-only, Node entry requires Node.js 24+; the browser entry needs a modern browser with Web Crypto. Apache-2.0.

oar (botiverse/oar)

Searching Database…

553 ·GitHub
What is this?OAR (Open Agent Runtime) is a provider-independent programming interface for coding-agent harnesses like Claude Code, Codex and Cursor, so you build one integration instead of writing separate harness logic for each agent.
Is this a library or a command-line tool?Both: oar is a library you import to read and query agent sessions, and it also ships a separate CLI executable published as @botiverse/oar-cli.
How do I start using oar in my project?Pull in the oar library and call session.events() to get a flat, normalized read of a coding-agent session, or install the @botiverse/oar-cli package to drive runtimes from the command line.
What do I need to run the CLI?You need Node.js 24 or newer; the CLI package is ESM-only, so older Node setups or CommonJS-only projects won't be able to load it directly.
Does oar replace my existing coding agents?No — oar doesn't install or run the agents itself, it reads and controls the harnesses you already have (Claude Code, Codex, Cursor, etc.), and even updates route through each runtime's own updater.
Which coding agents does oar support out of the box?oar currently supports Antigravity, Claude Code, Codex, Cursor, Grok Build, Kimi Code, and Pi as runtimes.
What do I get back from events()?events() returns a flat list of Event objects — one per fact such as text, tool call start/progress/end, turn start/end, usage, model, retries, or process exit — each tagged with a seq number and agentPath.
What's the difference between events() and rawEvents()?events() is oar's normalized, flat view of a session, while session.rawEvents() and session.records() expose the underlying native record stream with every runtime-specific payload verbatim for cases where the raw frame matters.
Can I run subagents across different runtimes?Yes — oar supports subagents on any supported runtime, driven either from a host application or over 'oar mcp', as described in docs/spec/subagents.md.
Creator
botiverse
Size
15.1 MB
Stars
553
Age
3mo
Commits · 90 Days