Agents should not need a checkout page to pay for a server. They should be able to sign a request, send it over HTTP and get a useful response when the server will not serve it.
HyperBEAM already has that boundary. P4 prices a request before it runs, checks the signer's balance, and charges the final result afterwards. We built Recharging Ledger to give that balance a different shape: service credit that grows back over time.
A rate limiter that understands price
A normal rate limiter counts requests. Recharging Ledger counts whatever the node's pricing device measures, so a small read and a large bundle do not have to consume the same amount.
Each account has a capped balance and a recharge rate. The defaults give a new account 86,400 units of capacity and restore 1 unit per second. There is no refill job. When P4 asks for a balance or applies a charge, the ledger calculates how much time has passed since the last interaction and restores the corresponding credit up to the cap.
The request path stays inside HyperBEAM:
signed HTTP request
-> P4 price estimate
-> recharging balance check
-> device execution
-> final price
-> ledger charge
If the account cannot cover the estimate, P4 returns HTTP 402 with its price and current balance. A small grace allowance can absorb the difference between an estimate and the final measured cost, but it is never presented as spendable credit.
This makes the ledger a regenerative rate limiter and a payment ledger at the same time. Operators can put a free allowance, a paid service tier and usage-based pricing behind the same HTTP interface.
Rates are policy
Not every account has to recharge at the same speed. The rates router asks a configured set of devices for an account's units-per-second rate, discards invalid replies, then takes the highest rate or adds them together. If none answer, it uses the operator's default.
We built 2 providers for the first policies. AO Balance maps token holdings to a recharge rate. AO Mint reads the latest AO mint from Arweave and maps an account's share of that mint to a rate. Both change how quickly credit returns. Neither can alter the ledger balance, capacity or charges.
Rate lookups run outside the ledger's server loop, with a short timeout, a default fallback and optional caching. An unavailable provider therefore does not stop the node from accounting for requests.
Built for autonomous clients
The account comes from the signed request, not a cookie or an API key. Pricing, admission and charging are device calls, and insufficient credit has a standard HTTP response. An agent can inspect its balance, make a request, handle a 402 and try another route without a service-specific payment integration.
For a HyperBEAM operator, the same mechanism can sit in front of a bundler, an inference device or any other paid route. The pricing device decides what the work costs, the rates devices decide how quickly an account recovers, and the recharging ledger keeps those decisions separate.