Skip to content

Frameworks & SDKsNews

Anthropic TypeScript SDK v0.131.0 Adds Spend Limits API

Anthropic has released version 0.131.0 of its TypeScript SDK, introducing a new API endpoint for listing spend limits and deprecating the 'sonnet 4.5' model from the client.

AI Dev Hub Editorial

Automated quality gate

Published
Updated
Reading time
2 min read
  • 6 sources cited
  • 9 facts quote-verified
Listen to this article0:00 / 4:31

Narrated with an AI voice (Kore, Kokoro-82M (open-weight)).

Anthropic released version 0.131.0 of its TypeScript SDK on September 30, 2026 1. This update introduces a new API endpoint for managing spend limits and includes a client-side deprecation for the 'sonnet 4.5' model 1.

This SDK provides server-side TypeScript and JavaScript applications with access to the Claude API 4. It supports TypeScript versions 5.0 or later and is compatible with various runtimes, including Node.js 20 LTS+, Deno v1.28.0+, Bun 1.0+, Cloudflare Workers, and Vercel Edge Runtime 67.

What Changed

The Anthropic TypeScript SDK v0.131.0 includes two primary changes 1:

  • New Spend Limits API: A new API feature has been added to support listing spend limits 1. This provides developers with programmatic access to retrieve information about their usage and spending. While the specific details of this endpoint's usage are not yet available, its inclusion suggests enhanced account management capabilities.
  • 'sonnet 4.5' Deprecation: The 'sonnet 4.5' model has been deprecated from the client 1. This means developers using the SDK should anticipate its eventual removal or reduced support. The reasons for this deprecation and any recommended alternative models have not been specified.

Why it Matters for Developers

The addition of a list spend limits endpoint provides developers with greater visibility and control over their API usage and costs 1. This can be crucial for managing budgets and preventing unexpected overages, especially for applications with dynamic or high-volume interactions with the Claude API. Developers can integrate this new functionality to build custom monitoring tools or automate spending alerts.

The deprecation of 'sonnet 4.5' requires developers to review their existing applications 1. If an application currently uses 'sonnet 4.5', developers should plan to migrate to an alternative model to ensure continued functionality. Without explicit guidance on alternatives, developers will need to assess other available Claude models to find a suitable replacement.

How to Try It

To use the latest version of the Anthropic TypeScript SDK, install it via npm 5:

bash
npm install @anthropic-ai/sdk

After installation, you can initialize the client and interact with the Claude API. The SDK client automatically uses the ANTHROPIC_API_KEY environment variable for authentication, though it can also be provided explicitly 8.

javascript
import Anthropic from '@anthropic-ai/sdk';

const client = new Anthropic({
 apiKey: process.env['ANTHROPIC_API_KEY'], // This is the default and can be omitted
});

const message = await client.messages.create({
 max_tokens: 1024,
 messages: [{ role: 'user', content: 'Hello, Claude' }],
 model: 'claude-opus-5-5',
});

console.log(message.content);

This basic example demonstrates how to send a message using a specified model, in this case, 'claude-opus-5-5' 8.

Limitations and Open Questions

The release notes indicate the addition of a list spend limits endpoint 1, but specific details regarding its API signature, expected request/response structures, or example usage are not currently available. Developers will need to consult updated documentation for implementation specifics.

Regarding the deprecation of 'sonnet 4.5' 1, the underlying reasons for this decision remain unknown. There is no explicit recommendation for an alternative model, nor are there detailed migration steps or guidance for developers whose applications rely on 'sonnet 4.5'. The potential impact on existing applications and any pricing implications related to this change or the new spend limits API are also not specified in the release information.

Frequently asked questions

When was Anthropic TypeScript SDK v0.131.0 released?

Anthropic TypeScript SDK version 0.131.0 was released on September 30, 2026.

What new features are in Anthropic TypeScript SDK v0.131.0?

Version 0.131.0 introduces a new API endpoint for listing spend limits.

Which model was deprecated in Anthropic TypeScript SDK v0.131.0?

The 'sonnet 4.5' model has been deprecated from the client in version 0.131.0.

Sources

Every factual claim above cites one of these documents, retrieved and snapshotted by our research pipeline.

  1. S1
    anthropic-sdk-typescript sdk: v0.131.0
    AnthropicOfficialRetrieved Oct 6, 2026
  2. S4
  3. S6
    qwen-code SDK TypeScript Release v0.1.13
    QwenOfficialRetrieved Oct 6, 2026
  4. S7
  5. S5
    Workflow runs · anthropics/claude-agent-sdk-typescript
    AnthropicOfficialRetrieved Oct 6, 2026
  6. S8
    anthropics/anthropic-sdk-typescript — Star History
    gittrend.ioMediumRetrieved Oct 6, 2026

AI ToolsNews

Claude Code v2.1.280 Integrates Opus 5.5, Enhances UI

Claude Code v2.1.280 introduces Claude Opus 5.5 as the new default Opus model, featuring a 1 million token context window. The update also brings enhanced mouse support for navigation and configurable MCP tool descriptions.

3 min readListen · 8 min