OrcaReplay

Developer toolsData and AI

Read, replay and fork recorded coding-agent runs.

Your AI app calls the OrcaReplay MCP server, which does the developer tools and data and AI work and sends the result back to the chat.

About OrcaReplay

OrcaReplay is a community MCP server from Continuum-AI-Corp, filed in our directory under developer tools and data and ai. Read, replay and fork recorded coding-agent runs.

OrcaReplay runs on your own machine: your AI app starts it with the command npx -y orcareplay@0.5.0 and talks to it over standard input and output.

OrcaReplay is listed in the official MCP registry as io.github.Continuum-AI-Corp/orcareplay, version 0.5.0.

At a glance

Publisher
Continuum-AI-Corp (community)
Runs
Locally on your machine
Install from
Node.js package on npm: orcareplay
Written in
TypeScript
License
Apache-2.0
GitHub stars
1,269
Official MCP registry
io.github.Continuum-AI-Corp/orcareplay

How to set up OrcaReplay

  1. Install Node.js on the machine that runs your AI app, because OrcaReplay starts with npx and downloads its package on first run.
  2. Check the OrcaReplay README for keys or settings; the registry lists none that OrcaReplay requires.
  3. Add OrcaReplay to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the OrcaReplay tools to confirm the connection.
  5. Run one read-only task with OrcaReplay first, and keep your app asking before each tool call until the results look right.

OrcaReplay compared with similar servers

  • Magic Cloud by polterguy has fewer GitHub stars than OrcaReplay (1.3k against 1.3k); both are community servers, and both run locally.
  • Philschmid CLI by philschmid has more GitHub stars than OrcaReplay (1.3k against 1.3k); both are community servers, and both run locally.
  • Golang by metoro-io has fewer GitHub stars than OrcaReplay (1.2k against 1.3k); both are community servers, and both run locally.

Before you connect OrcaReplay

  • Give OrcaReplay its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each OrcaReplay tool call until you trust what it does with them.
  • Treat text that OrcaReplay fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for OrcaReplay on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for OrcaReplay

How marketing and sales teams put OrcaReplay to work, by company size. Pick the size closest to yours and start OrcaReplay on one use case.

Small business

  • A small business with a developer can use OrcaReplay to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask OrcaReplay to explain and fix a marketing site issue without context switching between tools.
  • A small team can use OrcaReplay to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • OrcaReplay runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use OrcaReplay to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect OrcaReplay to keep scripts and automations documented and versioned as they change.
  • Marketing ops can connect OrcaReplay to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Start OrcaReplay on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out OrcaReplay with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on OrcaReplay so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises can run OrcaReplay inside their own cloud and data boundary, so models and data stay where governance requires.
  • OrcaReplay is a community server, so have security review the code and pin a version before OrcaReplay touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

OrcaReplay README

From Continuum-AI-Corp/OrcaReplay on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

OrcaReplay

English · 简体中文 · 日本語 · 한국어 · Deutsch · Français · Español · العربية

Your agent broke something at 2am. Replay it at 9am, exactly, offline, as many times as you like.

Record any coding agent. Reproduce the run byte-for-byte with no model called. Fork it from any step onto a different model and see who gets it right.

Built by the team behind OrcaRouter, one API key and one endpoint for Claude, GPT, Gemini, Grok, DeepSeek, Qwen and the rest. It is what orca setup points at by default, and what makes orca compare a single command instead of four provider accounts.

Find us: OrcaRouter All model APIs

Github Repos: OrcaCode Review · OrcaRouter Lite

Connect: X · Discord · Hugging Face · Ollama


Real output from one session, a Claude Code run recorded, replayed against the recording, then forked at checkpoint 4 onto two models and graded by npx tsc --noEmit. Nothing here is mocked up.

Try it in three commands

One npm package named orcareplay, which puts one command named orca on your PATH. There is no separate tool called "orca", and nothing is installed into your agent.

npm i -g orcareplay             # the package is orcareplay; the command it installs is orca

orca record claude              # your agent, unmodified, doing whatever it does
orca replay last                # the same run again, no network, no tokens, no charge
orca replay last --from 4 --model claude-haiku-4-5 --ui

The third line is the one people stay for: same files, same conversation prefix, different model from step 4 onward. The model is the only variable, which is what makes the answer mean anything.

The three commands at the top need an agent installed, a key, a network and real tokens. If you have none of those yet, one command brings its own:

orca quickstart

It writes a small project with a genuine bug in it and a recording of an agent fixing that bug, then replays the recording against the project with no model called: two failing tests before, four passing after, three turns served from the trace and nothing spent. --full prints the whole timeline and the replay as it happened.

Read your agent's own system prompt

A proxy that sees the whole loop also sees the prompt the harness assembled before it sent anything. One command captures it, scrubs the machine out of it, and files it by model:

node capture/capture.mjs claude --model claude-opus-5

Interactive prompts and -p prompts are not the same prompt, and neither is the same across models. See capture/README.md for the measured differences, the pitfalls, and the sanitising rules.

Why this exists

Agent debugging today is archaeology. You scroll a terminal, you re-run and get a different failure, you add print statements to someone else's harness. The tools that exist are observability tools: they tell you a run cost $4.12 and used 61k tokens, which is not the question you have. The question you have is why did it delete my migration file.

OrcaReplay answers that by giving you the run back.

Observability tools OrcaReplay
Tells you what a run cost ✅ ✅
Tells you which tool call deleted the file sometimes ✅
Runs the agent again and gets the same answer ❌ ✅ from the recording, byte-for-byte
Lets you change the model and re-run from step 4 ❌ ✅
Needs you to modify your agent usually an SDK wrapper ❌ two env vars
Works after you close the terminal ❌ ✅ it is a file
Sees past the model API, shell exit codes, file writes ❌ ✅ every turn
Records an agent with no API endpoint to redirect ❌ ✅ opt-in --tls-intercept

The last two rows are the ones an SDK wrapper structurally cannot reach. Capture happens below the agent, at the process and socket boundary, so it does not matter whether the agent is yours, whether you can edit it, or whether it even holds an API key: a Codex CLI signed in with a ChatGPT subscription talks to its own backend over TLS, with a credential that only that backend accepts, so it cannot be pointed elsewhere and stay the same session, and orca can still record it. See when the harness will not be redirected.

How it works

Model APIs are stateless, so on every turn an agent resends the entire conversation, including the previous turn's tool results. A proxy in front of the model therefore sees the whole loop: each request, each streamed response, every tool call the model emitted, and every tool result the harness produced. That one property is what the tool is built on, and it is why OrcaReplay does not patch your agent, it stands up a local proxy, sets two environment variables, and gets out of the way.

What "egress blocked" means, exactly. On replay the proxy refuses to forward anything it cannot serve from the trace, so no model is called and no tokens are spent, that run prints egress=blocked. --loose lifts it deliberately: an unmatched request is then answered by the provider and recorded as a major divergence, and the same line reads egress=live-on-unmatched. A replay still executes the recorded tool calls for real, and a tool that opens its own socket, a shell command running curl, an MCP server fetching something, is outside the guarantee either way. By default it never reaches the proxy and goes to the network as usual. Under --tls-intercept it does reach the proxy, because that sets HTTPS_PROXY for the whole child: a host off the intercept list is tunnelled through untouched, though its hostname, port and byte counts still land in the trace, and a host on the list is refused there like any other unmatched call. Replay is not a sandbox; if you need one, run it inside one.

Three more layers catch what the protocol cannot see: an exit code, a real duration, which stream a byte came out of, a file written without telling anyone. A fifth exists for the agents that read no base-URL variable at all, see which agents. A sixth reads the agent's own account of its structure, for a harness that has one: which sub-agent ran, which handed off to which, whether a guardrail tripped, which graph node produced what and which of them called no model at all, none of which reaches the wire.

%%{init: {'theme':'neutral'}}%%
flowchart LR
    A["<b>your agent</b><br/><i>unmodified</i>"]

    subgraph orca["orca · six capture layers"]
        direction TB
        P["<b>proxy</b><br/>base-URL env var"]
        SH["<b>PATH shim</b><br/>exit code · timing · streams"]
        MC["<b>JSON-RPC tee</b><br/>MCP config rewrite"]
        FS["<b>shadow git index</b><br/>workspace per turn"]
        FH["<b>fetch hook</b><br/>for a hardcoded origin"]
    end

    A --> P & SH & MC & FS & FH
    P -->|"forwarded, auth intact"| U["<b>the model API</b><br/><i>or OrcaRouter · any gateway</i>"]
    orca ==> T[("<b>one trace</b><br/>.orca/runs/run_a1b2c3")]

They all land in the same timeline, ordered by when they actually happened rather than when orca got around to reading them.

Exact, fork and compare are one thing

They are not three subsystems. They are the same proxy with a cursor, the position in the recorded stream where it stops answering from disk and starts answering from the network.

%%{init: {'theme':'neutral'}}%%
flowchart LR
    subgraph disk["from disk · byte-for-byte · network blocked"]
        direction LR
        T1["turn 1"] --> T2["turn 2"] --> T3["turn 3"] --> T4["turn 4"]
    end
    T4 ==> CUR{{"<b>cursor</b>"}}
    CUR ==> T5
    subgraph net["from the network · any model you name"]
        direction LR
        T5["turn 5"] --> T6["turn 6"] --> T7["…"]
    end
command where the cursor sits what you get
orca replay last at the end the whole run again, network blocked, no tokens, no charge, no variance
orca replay last --from 4 --model X at checkpoint 4 turns up to 4 identical, then a different model takes over
orca compare last --from 4 --models a,b at checkpoint 4, several times one table, one variable, the model

A checkpoint is not recorded; it is derived, any point where the conversation prefix is complete and the workspace was snapshotted. Every fork therefore starts from a state that provably existed.

What a bug hunt actually looks like

Your agent was supposed to fix a failing auth test. It exited 0 and the test still fails. Start with what it actually did:

$ orca show last
run_6473f858b59e  generic-openai@0.1.0  14 events  exit 0

SEQ  KIND   WHAT                                            DETAIL
0    RUN    run started                                     generic-openai
1    SNAP   tree 919d32ba037537b43814c83779963b2cc3023db7   0 changed
2    MODEL  claude-opus-5                                   1 messages
3    MODEL  claude-opus-5                                   stop: tool_use · 100 in · 20 out
4    TOOL   edit_file                                       {"path":"auth.ts",…}
5    SNAP   tree c6af62b75c0c8b8938bd6087328b5148f3dcd534   1 changed
6    FILE   auth.ts                                         modified +1 −3
7    TOOL   edit_file                                       ok
8    MODEL  claude-opus-5                                   3 messages
9    MODEL  claude-opus-5                                   stop: end_turn · 101 in · 5 out
10   SNAP   tree c6af62b75c0c8b8938bd6087328b5148f3dcd534   0 changed
11   SHELL  ["sh","-c","node --check nonexistent-file.ts"]  /tmp/hunt
12   SHELL  shell result                                    exit 1 · 43ms
13   RUN    run ended                                       exit 0

info usage input=201 output=25 cost=$0.004890

Three facts the model's own transcript could not have told you, and the run's exit code hid: the file really changed (seq 6, +1 −3), the check the agent ran failed (seq 12, exit 1), and it finished anyway. The run exited 0 because the agent exited 0.

That last fact is the one worth a command of its own. orca show gives you the order things happened in; orca graph gives you what produced what:

$ orca graph last
FROM              TO               KIND      WHY
3 model.response  4 tool.call      recorded  tool_use block in the response
4 tool.call       6 fs.change      inferred  changed path appears in tool input, same or previous turn
4 tool.call       7 tool.result    recorded  tool result answers its call
7 tool.result     8 model.request  recorded  tool_result block in the request
11 shell.exec     12 shell.result  recorded  shell result answers its exec

  1 inferred, derived from this trace, not recorded in it

Two kinds of edge, and the difference matters. A recorded edge was written when the run happened, because a tool_use block is physically inside the response that emitted it. An inferred edge was worked out just now by the rule it names, a filesystem snapshot is taken once per turn rather than once per tool call, so attributing a file change to a particular call is a good guess and not a fact. Inferred edges are never written back into the trace, the same way checkpoints are derived and never recorded, so a field a third-party reader trusts never contains something orca made up.

--graph-card draws the whole run that way, time left to right, kind of thing top to bottom, with the chain that produced the failure lit against everything else:

The shape is the point. A run is one motif repeated, request, response, call, effect, result, so anything that breaks it is worth a look, and an event with no edge leaving it is an absence a list cannot show at all.

orca export last --card bug.svg draws just that chain, which is the version that fits in an issue or a message:

Nothing picked the subject by hand, --to was not passed. The card carries its own legend because a dashed line travelling without its trace would otherwise launder a guess into a fact, and it prints the command that reproduces it.

SVG renders in a GitHub issue and almost nowhere else that matters, X will not take it as an upload, and Slack and Discord give it no preview, so name the file .png and you get one, or .gif and the chain builds a hop at a time. That path needs a browser, and orca does not depend on one: docs/media/README.md keeps the render toolchain out of package.json so nobody running npm ci pays for a Chromium download, and a picture command is not a reason to reverse that. Ask for a raster without it and orca says the one line that fixes it; orca doctor reports it either way, and .svg never needs anything.

orca export last --card bug.png       # the chain, ready to post
orca export last --card bug.gif       # the same chain, one hop per frame
npm i --no-save playwright-core pngjs gifenc   # only needed for the two above

Now reproduce it as often as you like, for nothing:

$ orca replay last
info replay.done reused=2/2 exact=2 divergences=0 unmatched=0 exit=0

No network, no tokens, no variance. Then ask the question you actually have, would a different model have got this right?

$ orca compare last --from 5 --models claude-opus-5,claude-haiku-4-5 --verify "npm test"
MODEL             VERDICT  TOKENS  COST       WALL  RUN
claude-opus-5     pass     201/25  $0.004890  0.3s  run_1457b35062ba
claude-haiku-4-5  pass     201/25  $0.000326  0.3s  run_b8ee08479fb6

Both pass. One costs 15× less. Same files, same conversation prefix, same checkpoint, the model is the only thing that changed, which is the only reason that number means anything.

The timeline

orca replay last --ui (or orca ui) opens the run as one self-contained HTML file, no server to keep running, no network, nothing to install. Filter it, step it, or press space and watch the run play back at the pace it actually happened.

Every layer lands in the same timeline, so you can read the run as one story rather than four: the model turns and their token counts, each tool call with its arguments and result, the shell commands with their exit codes and timing, and the filesystem changes with the tree they produced.

orca export last -o bug.html writes exactly that page to a single file you can attach to an issue. It carries no external reference of any kind, CI asserts that, so it renders from a download folder, on a plane, in five years.

Same task, different model

orca compare forks one recorded run onto several models from the same checkpoint, with the same files and the same conversation prefix, and grades each one with a command you choose. The model is the only variable, which is what makes the answer mean anything.

orca compare last --from 4 \
  --models claude-sonnet-5,claude-haiku-4-5 \
  --verify "npm test" \
  --share verdict.svg          # the card above, ready to paste into an issue
Pointing it at several models

Comparing models means reaching several providers, and doing that by hand means knowing that --upstream-anthropic and --upstream-openai exist, that one gateway can serve both wire formats, and where the key goes. All of that is real and none of it is discoverable, so there is a command that asks instead:

$ orca setup
Gateway URL (serves the model APIs) [https://api.orcarouter.ai]:
  get a key at https://www.orcarouter.ai/console/token, OrcaRouter keys start sk-orca-
API key (stored 0600; leave blank for none):
  info config.saved path=~/.config/orca/config.json mode=0600 gateway=https://api.orcarouter.ai auth=stored

  6 models available:
    anthropic/claude-opus-5
    anthropic/claude-haiku-4-5
    openai/gpt-5.2
    ...

$ orca models
MODEL                      $/MTOK IN  $/MTOK OUT
anthropic/claude-opus-5    15         75
anthropic/claude-haiku-4-5 1          5
openai/gpt-5.2             1.25       10
some-local-model, , 

orca setup asks the gateway what it actually serves rather than just writing the file, so a wrong URL or a dead key is an answer now instead of a 401 in the middle of a comparison. It also stores the models you picked, so after that orca compare last --verify "npm test" needs no model list and no upstream flags at all. orca models prices what it recognises and shows a dash for what it does not, because inventing a number for an unknown model is how a comparison table ends up quoting a cost that was never real.

OrcaRouter is the default answer to that first question, press Enter and you have one origin and one key serving Claude, GPT, Gemini, Grok, DeepSeek, Qwen and the rest, which is exactly the shape orca compare wants. Its model ids are namespaced by provider (anthropic/claude-sonnet-4.6, openai/gpt-4o-mini), which orca handles: the namespace picks the wire format and is stripped before pricing.

It is a default, not a destination: type over it, or pass --gateway <url>, and anything that speaks the OpenAI-compatible /v1/models and chat endpoints works just as well, another hosted gateway, or something you run yourself.

It is also only ever a default for traffic you asked to send somewhere. With no gateway configured, orca record proxies your agent's own calls straight to whatever provider it was already talking to, on the agent's own key. Orca does not reroute a recording you never configured: that would post your source code to a third party as a side effect of pressing record.

Non-interactive: orca setup --key <k> takes the default, orca setup --gateway <url> --key <k> names another, and --key-env <VAR> reads the key from the environment rather than keeping a credential on disk.

The key never reaches a trace. It is attached to the outbound request only, while what gets recorded is built from the incoming request with auth stripped, so it is invisible to the recording by construction, not by a rule someone has to remember. It is withheld entirely if a flag sends that traffic somewhere other than the gateway that issued it.

The other half of the run: orca push and orca pull

A local recording and a gateway recording see different things, and neither is the whole picture. orca record sits on your machine, so it sees the shell, the filesystem and MCP, the side effects. An OrcaRouter gateway sits on the wire, so it sees what no laptop can: every key, every colleague, every CI job, and the routing decision behind each call. Both write the same orca-trace v0, so the interesting direction was never one or the other. It was moving a run between them.

Until now that round trip was a browser download and a form upload. Three commands:

$ orca list --remote  # what the gateway is holding
$ orca push [run]     # this machine  ->  the gateway
$ orca pull <run>     # the gateway   ->  this machine

Real output. The card is generated by scripts/render-sync-card.mjs from docs/media/sync-transcript.txt, a captured round trip, orca record, then push, then pull into a different workspace, then orca show reading the pulled copy. No line is written by hand. The gateway there is a local stub speaking the same two endpoints, which is why its address is a loopback one.

push defaults to the last run, like every other run-taking command. pull will not: "last" means nothing on a machine that has not seen the run yet, so it takes an id.

Which is what orca list --remote is for. An id you do not have is not a default you can supply, and the only place to read one used to be the console in a browser, so the command that needs an id lived on a tab the terminal could not open. --remote asks the gateway the same question orca list asks this directory, over the GET on the path push already POSTs to:

$ orca list --remote --limit 3
RUN                           STARTED           SOURCE   APP             TURNS  TOOLS  LAYERS       MODELS                           OUTCOME
run_3d9e61a07b52              2026-09-21 09:36  upload   generic-openai  1      0      model,fs     m                                exit 0
run_8c14f2e9a07d3b6150e2c49a  2026-09-20 04:21  gateway  Unknown         1      0      model,route  deepseek/deepseek-v4-flash-free  end_turn
run_f07a5c2e91d4468bb3e0a17c  2026-09-20 02:02  gateway  curl            1      0      model,route  deepseek/deepseek-v4.1-flash     error

  orca pull <run>      # fetch one into this machine’s store

LAYERS is the column to read. It is what the two halves of this page are about: model and route come from the gateway, which sees the routing decision no laptop can; fs, shell, mcp and net come from a run recorded here. It says what is in a run before you spend a download on it. SOURCE sits beside it because where a run came from is a different question from what it holds.

STARTED is the run's first event, not the moment the gateway stored it, for a pushed run those differ by however long you waited before pushing. OUTCOME is the gateway's word for a run it recorded (end_turn, error) and the exit for one pushed from here. Anything the gateway does not report reads , rather than blank; an older deployment sends no timestamp at all, and STARTED is left unset rather than dated 1970. --source gateway narrows to what the gateway recorded; --source upload to what was pushed to it, those two, and a typo is refused rather than answered with an empty list; without the flag you get both. --limit sets how many (20 by default). --gateway stays what it is for push and pull, an optional override of which host, rather than doubling as the switch, so a destination you have already named needs no url typed at it. All three belong to --remote: given without it they are refused, not ignored, because orca list --gateway <url> answering with this directory's runs would read as that host's answer.

--json asks the same question: orca list --remote --json emits the gateway's runs as one document on stdout, which is where the id in orca pull <run> wants to come from when nobody is reading a table.

What it needs

A key with the replay scope, from Console → API Keys → replay. That scope can read and push Sessions runs and cannot relay, so it is not a model-traffic credential wearing another hat, a replay key is refused on the relay routes outright. Uploads are also off per workspace by default and turned on under Settings → request logs; a gateway that is only recording, not accepting, is the normal state.

$ export ORCA_GATEWAY_URL=https://api.orcarouter.ai   # or your own gateway
$ read -rs ORCA_GATEWAY_KEY && export ORCA_GATEWAY_KEY   # not typed on the command line
$ orca push last

Both exports persist for the shell session, which is the point of the rule above: a later orca push --gateway <somewhere-else> in that same shell is refused rather than quietly handed the key you exported for your own gateway.

What it will not do
  • Never a default destination. orca setup may default the model gateway to OrcaRouter, because proxying a call your agent was already making is not a disclosure. A run is: it holds source, shell output and workspace snapshots, which travel with it as content-addressed blobs. So push has no default host. A gateway counts as a destination only when you NAMED it, --gateway, ORCA_GATEWAY_URL, or a URL you typed at orca setup, and the one orca setup fills in for you when you press Enter does not count, however well it serves your model traffic. Running plain orca setup and then orca push last is refused, and says why. push.packed also reports the file count and byte size before the request goes out rather than after.
  • Never the workspace snapshots, unless you ask. orca scrub rewrites events.jsonl and the blobs, but it cannot rewrite the shadow git store under fs/, its objects are deflated and addressed by the hash of their contents, so it searches them, tells you what is still in there, and offers --drop-fs. Push therefore leaves fs/ at home by default: a scrub that reports "objects still hold the material" must not be followed by a push that ships them anyway. --fs sends them for the case that needs them, a teammate reproducing against the tree, and says so on the way out, because that is the one part of the payload the scan on either end cannot read (the objects are compressed, so a plaintext scan sees nothing).
  • Never a key to a host it was not set up for. Every credential has a home, the stored key's is orca setup's gateway, an exported key's is ORCA_GATEWAY_URL, and a key exported with no URL beside it has no home at all, and it is attached only when the destination matches that home. --gateway changes where the run goes, not what the key was issued for, so pointing it elsewhere refuses the push rather than authenticating it with someone else's credential. The one case left through is a key whose only destination is the one this invocation names: nothing earlier associated it with a host, which is the CI shape.
  • Never anonymously. None of the three is attempted without a key. An unauthenticated request is exactly what a misconfigured public endpoint answers, and a 200 is a poor way to learn either that your run went somewhere with no owner, or that what a listing showed you was never scoped to you.
  • Never a partial replace. pull --force writes the new copy beside the old one and swaps by rename, so a crash leaves a complete run either way, and the next pull finishes or rolls back whatever the last one left behind. --force asks to replace a recording, which is not a licence to destroy it and then fail.
What the gateway does on arrival

It re-computes the integrity root over events.jsonl and refuses a push whose root does not match its manifest, which is why push sends the bytes already on disk and converts nothing. It also scans the archive for plaintext secrets and refuses it on a hit. That refusal is the point of --force, and why --force is opt-in: the default is what stops a key reaching a shared server.

Redaction itself is not re-run here. TraceWriter puts every event through spill, redact, validate, append on its way to disk precisely so no caller can bypass it, so the bytes push reads are already redacted; re-scrubbing them would rewrite the bytes the integrity root covers, which is the one thing that makes an archive unpushable. The gateway's scan is a second, independent line, not a repeat of the first.

Which agents

Two things decide whether a harness can be recorded: whether it can be pointed at the proxy, and whether orca understands the wire format it speaks once it arrives.

Agent How it is captured State
Claude Code ANTHROPIC_BASE_URL works, validated against a real bug fix, in detail
Codex CLI (API key) OPENAI_BASE_URL → Responses API works
Codex CLI (ChatGPT login) --tls-intercept → Responses API works, with a decision to make
OpenAI Agents SDK OPENAI_BASE_URL → Responses API works, the SDK itself, on the Responses API it defaults to, records and replays at exact=1, in CI; its own tracing is a second egress
Vercel AI SDK OPENAI_BASE_URL via @ai-sdk/openai (since 2.0.41), orca record generic-openai --; fetch hook (orca record node --) when the origin is compiled in works, env-aware SDK clients via generic-openai at exact=1, in CI; an agent posting to an origin compiled into its source records and replays at exact=1
grok-cli (and its Telegram bot) orca record grok, GROK_BASE_URL, plus the hook for its sub-agents works
OpenClaw orca record openclaw, the hook for the gateway, inherited variables for the agents it spawns works
opencode orca record opencode adapter shipped, both origins redirected
goose (Block) orca record goose, OPENAI_HOST and OPENAI_BASE_URL, ANTHROPIC_HOST → Responses API works, driven end to end against goose 1.49.0, what is different about it
LangGraph / LangChain OPENAI_BASE_URL, ANTHROPIC_BASE_URL works, a two-node graph, streaming and with a tool, records and replays at exact=2 and forks live, in CI; pip install orcareplay-langgraph also records the graph, which node ran, in which superstep, including the ones that call no model
Haystack orca record generic-openai -- python your_pipeline.py, its OpenAIChatGenerator leaves base_url to the OpenAI SDK, which reads OPENAI_BASE_URL works, a Pipeline with ChatPromptBuilder and OpenAIChatGenerator records and replays at exact=1, in CI
OpenHands orca record generic-openai -- python your_agent.py, its SDK wraps LiteLLM and reads OPENAI_API_BASE works, the SDK's own LLM layer records and replays at exact=1, in CI
CrewAI orca record generic-openai -- python your_crew.py, since 1.x its own provider, reading OPENAI_API_BASE and OPENAI_BASE_URL works, a real Agent, Task and Crew records and replays at exact=1, in CI; what 1.x changed
Aider orca record generic-openai -- python your_agent.py, routes through LiteLLM, which reads OPENAI_API_BASE works, the LiteLLM layer records and replays at exact=1, in CI
browser-use orca record generic-openai -- python your_task.py, its ChatOpenAI passes an unset base_url straight through works, records and replays at exact=1, in CI; LLM layer only, the browser is not driven
Hermes (Nous Research) ORCA_BASE_URL_VARS=… orca record generic-openai -- hermes … should work, it overrides per provider; name the variable
IndexRAG orca record indexrag -- --data-dir dataset/<name>/documents, the whole pipeline as one run: OPENAI_BASE_URL for chat, INDEXRAG_EMBEDDING_BASE_URL for a second origin works, driven end to end against the real pipeline: indexing, embeddings and answering replay offline at exact=11/11 retrieval=3/3, and a fork keeps the recorded index, what is different about a pipeline
a RAG pipeline (LlamaIndex, GraphRAG, LightRAG) orca record generic-openai -- <cmd>, embeddings and rerank replay without a dialect works, a concurrent index build plus an embedding batch records and replays at exact=5 retrieval=2, in CI
Codex-in-the-IDE orca record exec --tls-intercept -- code . works, the extension spawns the agent, and it inherits the capture
a bot with a hardcoded origin orca record exec --tls-intercept -- <cmd> works, a Grok bot posting to a URL in its own source, in detail
an agent in a sandbox or on another machine orca attach works, orca is reachable and prints what to export, in detail
anything else orca record generic-openai -- <cmd> works if it reads a base-URL variable; orca record node -- <cmd> if it does not

Claude Code, Hermes and goose have been driven end to end against the real harness, and each of them broke something. Claude Code broke four things; Hermes found a streaming exchange the proxy was dropping entirely; goose broke two more, and neither was in the adapter, one was the replay matcher, one was a run reporting success over a trace of nothing but errors. The rest are held to the adapter contract and to fixtures that record the exact variables each one sets, so a harness that renames the variable it reads turns a check red instead of producing an empty trace.

The harness that reads different variables

Every other OpenAI-shaped client in this table reads OPENAI_BASE_URL. goose reads it too, but it reads OPENAI_HOST first, and for Anthropic it reads ANTHROPIC_HOST and nothing else.

That combination is worse than it sounds, because both halves fail silently:

  • Setting only OPENAI_BASE_URL works right up until the user already has OPENAI_HOST exported for something else. Then their value wins, the run goes to their origin, and orca prints a clean recording over an empty trace.
  • ANTHROPIC_BASE_URL, the variable generic-openai sets, and the one the rest of the ecosystem reads, does nothing at all here. A sink addressed only by it receives no request.

So the adapter sets OPENAI_HOST, OPENAI_BASE_URL and ANTHROPIC_HOST, all at the same proxy, and the fixture pins all three. The traffic that arrives is the Responses API, POST /v1/responses plus one GET /v1/models on start-up, which the proxy's openai-responses dialect already claims.

GOOSE_PROVIDER=openai GOOSE_MODEL=<model> orca record goose -- run -t "fix the failing test"

GOOSE_PROVIDER and GOOSE_MODEL are passed through, never invented: goose has no default for a custom endpoint, and choosing one for you would launch a different agent than goose does.

Two limits worth knowing before you rely on it. goose runs its shell without going through orca's PATH shim, so shell tool calls are in the trace with their output but without the real exit code, duration or stdout/stderr split, record with --no-shell to claim nothing rather than that. And goose asks a second model for a session title while the conversation is already under way, so that call and the first real turn race; the replay matcher handles them arriving in either order, which it did not before goose was the first harness to do this.

A gateway that launches the coding agent

OpenClaw does not do the coding: it runs Claude Code, Codex or opencode as child processes and drives them from a chat app, so one run carries two kinds of model traffic. The gateway's own calls are caught by the fetch hook. The coding agent's calls are caught by the ordinary variables, not because OpenClaw reads them, but because a child process inherits its parent's environment, so the Claude Code it spawns sees ANTHROPIC_BASE_URL exactly as it would if you had run it yourself.

orca record openclaw

That inheritance is a property of the operating system rather than of orca, which is the kind of thing that stays obviously true right up until some layer in between sanitises the environment. So it has a test: a gateway fixture that makes no model call of its own, spawns an agent that does, and is recorded and replayed offline through the grandchild's traffic.

Read the rest of the OrcaReplay README on GitHub

Questions about OrcaReplay

What is the OrcaReplay MCP server?

Read, replay and fork recorded coding-agent runs. OrcaReplay is maintained by Continuum-AI-Corp on GitHub at Continuum-AI-Corp/OrcaReplay, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the OrcaReplay MCP server?

Add OrcaReplay to your AI app's MCP config with the command npx -y orcareplay@0.5.0. In Claude Code, run claude mcp add --transport stdio orcareplay -- npx -y orcareplay@0.5.0. To run OrcaReplay this way you need Node.js installed.

Does OrcaReplay need an API key?

The registry lists no required keys for OrcaReplay. Check the OrcaReplay README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is OrcaReplay an official MCP server?

No. OrcaReplay is a community server maintained by Continuum-AI-Corp. Community servers can be excellent; read the code and the open issues before you give OrcaReplay access to company data.

What license is OrcaReplay under?

OrcaReplay is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of OrcaReplay; the service it connects to has its own terms.