OpenAICloudflare Developer PlatformJul 23, 2026, 12:00 AM

Agents - Agents SDK packages support AI SDK v6 and v7

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

Agents SDK packages support AI SDK v6 and v7

Key Points

  • Supports AI SDK v6 and v7
  • Match AI SDK major with @ai-sdk/react major
  • Think normalizes streaming and telemetry

Summary

Cloudflare Agents packages (agents, @cloudflare/ai-chat, @cloudflare/codemode, @cloudflare/think) now support both AI SDK v6 and v7. Existing applications can remain on AI SDK v6 when updating these packages, or adopt v7 without changing Cloudflare Agents APIs.

Key Points

  • Supported peer ranges: ai@^6 || ^7 and @ai-sdk/react@^3 || ^4.
  • Match major versions: pair AI SDK v6 with @ai-sdk/react v3, or AI SDK v7 with @ai-sdk/react v4.
  • Think normalizes streaming, tool completion events, and telemetry across both SDK versions; v6 apps do not need to migrate integrations before updating Think.
  • Existing Cloudflare Agents APIs remain stable when upgrading the packages.

Installation (install latest packages with AI SDK v7)

npm i agents@latest @cloudflare/ai-chat@latest @cloudflare/codemode@latest @cloudflare/think@latest ai@^7 @ai-sdk/react@^4

yarn add agents@latest @cloudflare/ai-chat@latest @cloudflare/codemode@latest @cloudflare/think@latest ai@^7 @ai-sdk/react@^4

pnpm add agents@latest @cloudflare/ai-chat@latest @cloudflare/codemode@latest @cloudflare/think@latest ai@^7 @ai-sdk/react@^4

bun add agents@latest @cloudflare/ai-chat@latest @cloudflare/codemode@latest @cloudflare/think@latest ai@^7 @ai-sdk/react@^4

Action for engineers

  • Choose the AI SDK major you want (v6 or v7) and install the matching @ai-sdk/react major.
  • Update package versions; no API changes required for Cloudflare Agents usage.
  • See the Think documentation for setup and usage details.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

Agents - Agents SDK パッケージが AI SDK v6 と v7 をサポート

概要

2026-07-23 — agents, @cloudflare/ai-chat, @cloudflare/codemode, @cloudflare/think の各パッケージは、AI SDK v6 と v7 の両方をサポートするようになりました。

  • 既存のアプリケーションは、これらのパッケージを更新しても v6 のままにできます。
  • アプリケーションは、Cloudflare Agents の API を変更せずに v7 を採用することもできます。

ピア依存関係と互換性

サポートされるピア範囲:

  • ai@^6 || ^7
  • @ai-sdk/react@^3 || ^4

メジャーバージョンを合わせて使用してください:

  • AI SDK v6 は @ai-sdk/react v3 と組み合わせる
  • AI SDK v7 は @ai-sdk/react v4 と組み合わせる

AI SDK v7 で最新パッケージをインストールする例

npm:

npm i agents@latest @cloudflare/ai-chat@latest @cloudflare/codemode@latest @cloudflare/think@latest ai@^7 @ai-sdk/react@^4

yarn:

yarn add agents@latest @cloudflare/ai-chat@latest @cloudflare/codemode@latest @cloudflare/think@latest ai@^7 @ai-sdk/react@^4

pnpm:

pnpm add agents@latest @cloudflare/ai-chat@latest @cloudflare/codemode@latest @cloudflare/think@latest ai@^7 @ai-sdk/react@^4

bun:

bun add agents@latest @cloudflare/ai-chat@latest @cloudflare/codemode@latest @cloudflare/think@latest ai@^7 @ai-sdk/react@^4

Think に関して

@cloudflare/think は、ストリーミング、ツールの完了イベント、テレメトリを両方の AI SDK バージョンで正規化します。既存の v6 アプリケーションは、Think を更新する前にこれらの統合を移行する必要はありません。

セットアップと使用方法の詳細は Think ドキュメントを参照してください。