Skip to content

Feature: Agent-Level Rate Limiting Support #9812

@MarcoFPO

Description

@MarcoFPO

Problem Statement

Currently, clawdbot does not support configuring rate limits at the agent level in the configuration file. While global commands settings and other agent-specific configurations exist, there is no way to apply rate limiting restrictions to individual agents.

Desired Behavior

I would like to add support for rateLimits configuration on individual agents, similar to how commands, sandbox, and tools are configured:

{
  "id": "discord-egon",
  "model": {
    "primary": "mistral/mistral-large-latest"
  },
  "rateLimits": {
    "requestsPerMinute": 20,
    "tokensPerMinute": 100
  },
  "tools": {
    "deny": ["group:web", "browser", "exec"]
  },
  "sandbox": {
    "mode": "all"
  }
}

Use Cases

  1. Cost Control: Limit tokens per minute for expensive models
  2. Rate Limiting: Prevent aggressive API usage for specific agents
  3. Discord Bot Management: Control bot response frequency
  4. Multi-Agent Systems: Different rate limits for different agents

Technical Context

Currently, commands, tools, sandbox can be configured per-agent. rateLimits should follow the same pattern for consistency.

Environment

  • clawdbot version: 2026.1.24-3
  • Use case: Discord bot with Mistral model and Groq fallback

Additional Notes

Agent-level rate limiting would provide fine-grained control over resource usage in multi-agent deployments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions