Skip to content

[FEATURE]: Make rate limit handling configurable with custom request limits #26314

Closed as not planned

Description

@HackerX7889

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem

When using OpenCode with certain LLM providers (for example, services with stricter rate limits like NVIDIA NIM), I quickly hit 429 rate limit errors. It seems the current implementation uses a fixed or inflexible limit (around 40 requests), which doesn't work well across different backends that enforce lower concurrency or RPM limits.

This leads to frequent failures and poor user experience on providers with more conservative quotas.

Proposed Solution

Add support for a user-configurable request limit / concurrency setting. This would allow setting any custom number (e.g., 10, 15, 20, etc.) instead of being restricted to the current fixed value.

Ideally this could be set via:

  • Command line flag/argument

  • Environment variable

  • Project-level config file (if applicable)

This small addition would greatly improve compatibility with a wide range of LLM providers and deployment setups.

Additional Context

  • The feature should be optional with a sensible default for users who don't need to tweak it.

  • It would help both local/self-hosted models and various cloud providers with differing rate limit policies.

Thanks for considering this! OpenCode is otherwise working great.

Activity

  1. github-actions commented on May 8, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If this is indeed a duplicate, please consider closing this issue and adding your input to the existing one.

  2. github-actions commented on Jul 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions