@fusedio/agentbridge-adapter-codex
v0.1.3
Published
Codex CLI adapter for agentbridge (codex exec --json).
Readme
@fusedio/agentbridge-adapter-codex
agentbridge adapter for the Codex
CLI (codex exec --json). Parses its JSON event output into agentbridge's normalized
TranscriptEntry stream and a final ExecutionResult carrying token usage (the Codex CLI does not report cost, so costUsd is always null).
Install
npm install @fusedio/agentbridge-hub @fusedio/agentbridge-adapter-codexRequires the codex CLI on your PATH.
Usage
import { createAgentHub } from "@fusedio/agentbridge-hub";
import { createAdapter } from "@fusedio/agentbridge-adapter-codex/server";
const hub = createAgentHub({ adapters: [createAdapter()] });
const run = hub.run({ adapter: "codex", prompt: "…", cwd: process.cwd() });Two entry points:
.— metadata + the pure stdout-line parser (browser-safe, no Node imports)../server— Node-only execution: thecreateAdapter()factory,execute, andtestEnvironment.
ESM-only, Node >= 20.
License
MIT © Fused
