Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Client-side Token Bucket Traffic Shaper to prevent 429 errors on rate-limited APIs (free/trial keys, local models) #1321

Cheikh-Nakamoto started this conversation in Ideas
Discussion options

Hi everyone! 👋

I've been using OpenClaude recently and absolutely love the project. However, like many others using restricted-tier APIs, evaluation accounts, or local endpoints (such as the NVIDIA NIM trial tier limited to 40 RPM, Groq, or OpenRouter free tiers), I ran into a major bottleneck: frequent 429 Too Many Requests cascades.

🔍 The Problem

Currently, OpenClaude has no client-side rate limiting or request scheduling. When multiple subagents or tools run in parallel, they dispatch a sudden burst of HTTP requests. For limited-tier users:

  1. The external API immediately rejects the burst with a 429 error.
  2. OpenClaude's retry mechanism kicks in and resends requests rapidly, amplifies the thundering herd problem, and thrashes prompt cache.
  3. This makes the tool almost unusable for anyone without high-tier, pay-as-you-go enterprise keys.

💡 The Proposal: Client-Side Token Bucket Traffic Shaper

To make OpenClaude accessible to developers on limited/free tiers, I propose adding a client-side Token Bucket Traffic Shaper with a bounded FIFO Request Queue.

Here is how the architecture looks:

You must be logged in to vote

Replies: 2 comments

Comment options

I have already fully implemented this solution locally, including: high-quality TypeScript code, a comprehensive test suite featuring 19 test cases...

You must be logged in to vote
0 replies
Comment options

Please report with more details here: https://github.com/Gitlawb/openclaude/issues

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /