Skip to content

Add configurable token / cost usage limits #438

@BardiaYaghmaie

Description

@BardiaYaghmaie

I would like to request a feature that allows users to define a cap on total token usage or monetary spend during a Strix run.

Given that Strix relies heavily on LLM-driven agents, usage costs can scale unpredictably depending on the scope and behavior of the agents. Introducing a configurable limit would provide better cost control and make the tool safer to use in both local and production environments.

Proposed functionality:

Allow users to set a maximum budget (e.g., in USD or tokens) per run
Gracefully stop or pause execution once the limit is reached
Optionally provide warnings when approaching the threshold (e.g., 80%, 90%)
Expose usage metrics during runtime (tokens consumed, estimated cost)

Use cases:

Running Strix in CI/CD pipelines with strict cost constraints
Preventing unexpected charges during large or exploratory scans
Enabling safer experimentation when testing new targets or configurations

This feature would significantly improve operational control and make Strix more predictable and production-friendly.

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