Skip to main content
Cap weekly LLM spend per evaluator to prevent a single evaluator from exceeding your budget. LangSmith tracks week-to-date evaluator spend, resetting at Monday 12AM UTC. It lets organization admins set a weekly cap on each evaluator’s attached agent environments and datasets. The cap can be a single organization-wide default or a custom override on a specific attached agent environment or dataset. This guide shows you how to view and configure weekly evaluator spend caps.
LangSmith also offers per-trace and per-model cost tracking and tracing usage limits for cost control.
Setting spend limits is available for OpenAI, Anthropic, and Gemini models. Spend limits only enforce against runs on supported models that have pricing configured in LangSmith. Verify model pricing before relying on a limit. Unsupported models cannot be used in evaluators once a limit is set.
The UI labels the week-to-date window as this week.

How enforcement works

LangSmith records spend after each evaluator run completes, then sums spend from Monday 12AM UTC to the current moment. When the total reaches the effective limit, LangSmith pauses the evaluator on that attached agent environment or dataset. In-flight runs may push the total slightly above the cap before they finalize, so spend can briefly overshoot by a small amount. The agent and the trace are unaffected. Only the evaluator stops producing scores until the spend limit resets or the limit is manually increased.

Spend views and controls

Set your first limit

Open organization Settings and define a single weekly cap that applies to all evaluator attachments to every agent environment and dataset across all workspaces in the organization.

Override for one environment or dataset

Customize the limit for a specific agent environment or dataset attached to an evaluator.

View evaluator spend

You can find spend in the following UI locations:

Evaluators page dashboard

Navigate to the Evaluators page from the left sidebar. The top of the page shows a weekly view across the workspace:
  • Daily evaluator spend: Stacked bar chart of spend per day, broken down by evaluator.
  • Evaluator spend this week: Total USD spend across all evaluators, with the change versus the previous week.
  • Evaluator traces this week: Total trace count across all evaluators, with the change versus the previous week.
  • Weekly evaluator spend limits: Sorted list of top spenders. Each row shows an evaluator, the agent environment or dataset it is attached to, and a progress bar against its $ spent / $ limit. The header counts the attachments that have hit their limit (Limit hit) or are On pace to hit limit.
Use the Prev week and Next week controls in the page header to move the weekly view. The same widgets appear on two tabs, scoped to one dataset or environment: a dataset’s Evaluators tab in Datasets & Experiments, and an agent environment’s Online Evaluators tab on the Tracing page.

Evaluators table

The Evaluators table on the same page includes:
  • Spend (this week): Total LLM cost for the evaluator across all attached agent environments and datasets since Monday 12AM UTC. Evaluators that do not call an LLM (for example, code evaluators), disabled evaluators, and evaluators without an attached agent environment or dataset show no value.
  • Spend Status: One of the following:
    • Under limits: At least one attached agent environment or dataset has a limit, and none are at the cap.
    • N limit hit: The evaluator has reached its limit in one or more agent environments or datasets it is attached to. The number reflects how many are paused.
    • Unlimited: No limits have been set.
    • No value is shown for evaluators that do not call an LLM (for example, code evaluators) and evaluators without an attached agent environment or dataset.

Environments & Datasets tab on an evaluator

Open an evaluator and select the Environments & Datasets tab to see per-environment or dataset spend and limits:
  • Spend (this week): Total LLM cost for the evaluator on that environment or dataset since Monday 12AM UTC.
  • Percent of Spend Limit: Progress bar showing spend against the limit since Monday 12AM UTC.
  • Weekly Limit: Effective weekly limit for that environment or dataset, either the organization default or a custom override.
For attachment management, refer to Manage evaluators.

Set an organization default spend limit

Organization admins set a single weekly cap that applies to every evaluator’s attached agent environments and datasets across every workspace in the organization. There is one default per organization, not one per workspace.
Setting and editing the organization default requires the organization:manage permission.
  1. Open organization Settings and navigate to Usage Configuration.
  2. For Evaluator spend limit, enter a USD amount. The unit is / week. Leave blank for no limit.
  3. Click Save.
If no organization default is set, attached agent environments and datasets are unlimited unless a custom override is configured. Clearing the default removes the cap from every attached agent environment or dataset that currently inherits it. Changing the default updates only attached agent environments and datasets that inherit it. Custom overrides are preserved.

Override the default for an attached environment or dataset

Organization admins can override the default for a specific agent environment or dataset attached to an evaluator.
  1. Navigate to Evaluators in the left sidebar and open the evaluator.
  2. Click the Edit evaluator icon at the top right.
  3. Under Source, select the specific agent environment or dataset.
  4. Scroll past Filters and Sampling Rate, then expand Advanced.
  5. In the Spend limit field, set a custom USD amount. The unit is / week.
  6. Save the evaluator configuration.
The hint text below the field shows whether the current value is the organization default or a custom limit. To revert an override back to the organization default, click Reset to organization default. Members without organization:manage see the limit but cannot change it. The read-only view shows one of:
  • Unlimited / week (organization default)
  • $<amount> / week (organization default)
  • $<amount> / week (custom limit)

When a limit is reached

When weekly spend on an attached agent environment or dataset reaches its effective limit:
  • LangSmith stops running the evaluator on new runs from that environment or dataset.
  • The Evaluators table Spend Status column shows N limit hit, and the Weekly evaluator spend limits widget surfaces the affected agent environment or dataset.
  • Skipped runs are not backfilled. Evaluation resumes automatically on new runs once the spend limit resets or the limit is manually increased.

Configure model pricing

When a spend limit is set, evaluators can only be run on supported models (OpenAI, Anthropic, and Gemini), and the models need to have pricing configured. Models without pricing configured cannot be used in evaluators. Configure pricing for the models your evaluators use under Model pricing.

Troubleshooting

Trouble creating an evaluator: When a limit is set, evaluators must use a supported model (OpenAI, Anthropic, or Gemini) with a pricing entry in Model pricing. LangSmith spend does not match my LLM provider invoice: LangSmith computes spend from the per-model rates configured in Model pricing, not from your provider’s billing. Differences are expected if your provider applies discounts, custom contracts, or model variants you have not added to LangSmith.