Skip to content
Fourohtwo

denk.halowerk.com/v1/shared-rate-limiter

Shared token-bucket rate limiter for several agents calling the same API: take tokens and get allowed/denied with retry-after. Namespaced token buckets with capacity and refill rate defined by the caller. "take" removes n tokens if available and otherwise returns the exact retry-after time; "peek" shows the current level; "reset" refills the bucket. Bucket state is computed lazily from timestamps,

BaseAnswering
POSThttps://denk.halowerk.com/v1/shared-rate-limiter

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://denk.halowerk.com/v1/shared-rate-limiter", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"action":"take","bucket":"openai","capacity":60,"namespace":"my-agents","refill_per_second":1,"secret":"a-long-random-secret-123"}),
});
console.log(await res.json());

Example input

{
  "action": "take",
  "bucket": "openai",
  "capacity": 60,
  "namespace": "my-agents",
  "refill_per_second": 1,
  "secret": "a-long-random-secret-123"
}