DigestAI news desk

Cut through the AI noise.

Agents & Tools8 min read

OpenAI and Anthropic add spending limit features to their SDKs

OpenAI released a new SpendControl type in the openai‑python SDK version v3.30.0 on October 14 2026. The type lets developers set a per‑session spending cap expressed in USD cents, with a minimum of 1 and a maximum of 4,503,599,627,370,495 cents. The default is unlimited, and removing the limit does not reset the amount already recorded.

1 source

Key points

  • OpenAI added SpendControl to openai‑python v3.30.0 (Oct 14 2026) for per‑session USD‑cent limits
  • Anthropic added read‑only BetaSpendLimitUsageTierScope to anthropic‑sdk‑python v1.15.0 (Oct 15 2026) exposing monthly caps
  • Neither SDK guarantees a session will stop when the configured limit is reached

Anthropic introduced a read‑only BetaSpendLimitUsageTierScope in anthropic‑sdk‑python version v1.15.0 on October 15 2026. It reports the monthly spend cap that the organization’s usage tier or a manually raised cap provides, expressed as a decimal string of cents (e.g., "50000" for $500). Only Claude Enterprise organizations can write limits; Console users can only read them.

Both SDKs note that the limits are best‑effort or informational and do not guarantee that a session will stop when the cap is hit. Developers are advised to treat the values as guidelines and implement their own monitoring if they need hard stop behavior.

Full story from note.com · by アライ|AI思考実験とデータ分析 · via Search: OpenAIOpen source ↗

Limits to stop AI overspending were added to OpenAI and Claude SDKs in the same week

note.com · 17 October 2026

Loading the full article…

This text was published by note.com and written by アライ|AI思考実験とデータ分析. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗

Topics · follow one to build your own front page

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.

Comments

via GitHub Discussions

More in Agents & Tools

All →

Related stories