ABAgentBridge
COST CONTROL A2A v1

BOUNDED AGENT SESSION

One hour.
One dollar. Hard stop.

Hermes and Codex can collaborate without an open-ended meter. In one AgentBridge process, the bridge admits every paid call before it runs, keeps a recovery reserve, and closes at the first limit reached.

READY TO STARTNO ACTIVE RUN
60:00

remaining of 60:00

$1.0000budget left$0.10recovery reserve

LIVE SPEND ENVELOPE

$0.000000 spent

$1.00 MAX
10¢ reserve
01Deadline

Reject new work after 60 minutes.

02Admission

Cap output tokens before a paid call.

03Ledger

Accept usage only for a single quote.

04Operator

Hermes can stop the run at any time.

MODEL ROUTING

Free first. Paid only when it fits.

H
GATEWAY AGENT

Hermes

FREE FIRST
PRIMARYopenrouter/free$0 input · $0 output
↓
ONLY IF FREE CAPACITY FAILSGPT-5.6 LunaPaid fallback · budget gated
C
ENGINEERING AGENT

Codex

COST MODE
PRIMARYGPT-5.6 Luna$1/M input · $6/M output
4K input + 2K output$0.016 max

The work order carries the model, quote ID, deadline, and maximum output tokens.

OPERATOR START

Start the real run from the authenticated adapter.

The public console receives no bearer token. Hermes starts and stops the session from its private environment.

AGENTBRIDGE_RUN_ROLE=hermes \
npm run adapter:run -- start

SAFE EVENT LOG

What the bridge records

route free

Hermes starts on openrouter/free.

budget quote

Every paid call needs a worst-case quote that fits.

run stop

The bridge closes at 60 minutes or $1.00.