# 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.

- Published: 2026-10-07
- Updated: 2026-12-04
- Category: Frameworks & SDKs
- Type: news
- Tags: Ai, Anthropic Typescript Sdk, Claude Api, Javascript, Sdk, Sonnet 4 5, Spend Limits, typescript
- Sources: 6
- Canonical: https://rajatxautomatedcontent.vercel.app/articles/anthropic-typescript-sdk-v0-131-0

---

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

This SDK provides server-side TypeScript and JavaScript applications with access to the Claude API [S4]. 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 [S6, S7].

## What Changed

The Anthropic TypeScript SDK v0.131.0 includes two primary changes [S1]:

*   **New Spend Limits API**: A new API feature has been added to support listing spend limits [S1]. 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 [S1]. 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 [S1]. 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 [S1]. 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 [S5]:

```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 [S8].

```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' [S8].

## Limitations and Open Questions

The release notes indicate the addition of a `list spend limits endpoint` [S1], 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' [S1], 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.

## FAQ

**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

- [S1] anthropic-sdk-typescript sdk: v0.131.0 — Anthropic. <https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.131.0> (retrieved 2026-10-06, trust: official)
- [S4] chore: release main by stainless-appbot · Pull Request #1184 · anthropics/anthropic-sdk-typescript — Anthropic. <https://github.com/anthropics/anthropic-sdk-typescript/pull/1184> (retrieved 2026-10-06, trust: official)
- [S6] qwen-code SDK TypeScript Release v0.1.13 — Qwen. <https://github.com/QwenLM/qwen-code/releases/tag/sdk-typescript-v0.1.13> (retrieved 2026-10-06, trust: official)
- [S7] What's new in Microsoft Foundry: July and August 2026 | Microsoft Foundry Blog — Microsoft. <https://devblogs.microsoft.com/foundry/whats-new-in-microsoft-foundry-july-august-2026/> (retrieved 2026-10-06, trust: official)
- [S5] Workflow runs · anthropics/claude-agent-sdk-typescript — Anthropic. <https://github.com/anthropics/claude-agent-sdk-typescript/actions> (retrieved 2026-10-06, trust: official)
- [S8] anthropics/anthropic-sdk-typescript — Star History — gittrend.io. <https://gittrend.io/repo/anthropics/anthropic-sdk-typescript> (retrieved 2026-10-06, trust: medium)

---

Source: AI Dev Hub — https://rajatxautomatedcontent.vercel.app/articles/anthropic-typescript-sdk-v0-131-0
