DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to record a Codex CLI run that cannot be redirected with Orca Replay

Use opt-in TLS interception to capture a Codex CLI session that talks to its own backend.

Short answer: Run npm i -g orcareplay to install the package; then read the README section on when the harness will not be redirected and confirm your Codex CLI setup matches it; run orca record with the --tls-intercept option, following the README for the exact syntax of that flag. All steps.

Authorization notice. Orca Replay is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Reverse engineering. TLS interception decrypts traffic between a vendor client and its backend, so check that your use complies with the vendor's terms and your organisation's policy before recording.

Who it is forA developer using Codex CLI signed in with a ChatGPT subscription who needs a replayable record of a run.

The problemA Codex CLI session uses a credential that only its own backend accepts, so a base-URL redirect cannot capture it.

The outcomeA trace of the run captured at the process and socket boundary, which you can then replay and inspect with the same commands as other runs.

What you need first

  • Node.js and npm, to install the orcareplay package
  • A coding agent installed locally, such as Claude Code or Codex CLI, to record a run
  • A model API key and network access for recording and for live forked turns
  • A terminal with permission to install a global npm package

Steps

  1. Run npm i -g orcareplay to install the package.
  2. Read the README section on when the harness will not be redirected and confirm your Codex CLI setup matches it.
  3. Run orca record with the --tls-intercept option, following the README for the exact syntax of that flag. (inferred, check the README)
  4. Run orca show last to confirm the trace includes model turns, and orca replay last to confirm the offline replay.

Prompt for your agent

Use the OrcaReplay repo (Continuum-AI-Corp/OrcaReplay) to record a Codex CLI session with TLS interception enabled, following the README section on when the harness will not be redirected. Report whether `orca show last` lists model turns from the session. Verify that hosts not on the intercept list are listed in the trace as tunnelled.

Caveat. The README describes --tls-intercept only at a high level, so the exact flag syntax and setup must be read from the README before running this.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for Continuum-AI-Corp/OrcaReplay and "Record a Codex CLI run that cannot be redirected"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer