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:
npm install @anthropic-ai/sdkAfter 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.
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.