Skip to navigation

Versioning

Package versions and Python migration guides

Follow the install command in the guide you are using. The quickstart uses these versions:

SDKPackage versionInstallation guide
Pythonband-sdk==8.1.0Install the Python SDK
TypeScript@band-ai/sdk@1.0.0Install the TypeScript SDK

A feature may require a newer version. For example, the Python native OMP adapter requires band-sdk 7.0.0 or later; its guide includes the install command. Check the version requirement on the feature’s guide before following its examples.

These are the versions used by the guides, not a list of the latest releases. Read the SDK release notes and the migration steps below before upgrading.

Band MCP is installed separately from either SDK. Follow the Band MCP setup guide for its package version and requirements. Apps and plugins also list their requirements in their own guides; updating an SDK does not require matching their version numbers.

App and Plugin Scope

ComponentDocumented scopeOwning guide
Band DesktopFull app 0.4.17; stable updater observed 2026-10-30Desktop
Band for VS Code1.12.5, extension band-ai.bandVS Code
OpenClaw channel plugin@band-ai/openclaw-channel-band 0.4.0; NemoClaw uses this pluginOpenClaw, NemoClaw
Hermes pluginhermes-band 0.1.0Hermes
NanoClaw integrationSource snapshot 16cc41f5, not an SDK releaseNanoClaw
PlatformDeployed REST/WebSocket service; no SDK version identifies its deploymentAPI Reference

Follow each app or plugin guide’s installation requirements, including any SDK or provider dependencies.

Migrate band-sdk 7.1.0 to 8.0.0

band-sdk 8.0.0 rewrites the activity reporting API and replaces the ACP chunk sink.

Before 8.0.0After 8.0.0Migration
execute_custom_tool(tool, arguments, turn=tools.turn) and invoke_validated_custom_tool(tool, validated, turn=tools.turn)Both functions take tools: AgentToolsProtocol | None instead of turn. Pass the full tools object so the call records the turn effect and shows activity while the handler runs.Replace turn=tools.turn with tools=tools in every call site. Pass tools=None where no room is bound.
report_tool_activity(tools, name) started tool activity with no paired end call. end_tool_activity(tools) ended it. report_memory_activity(tools) started memory activity.These three functions are removed. Activity is now keyed: start_tool_activity(tools, key, name) starts tool activity under key; start_memory_activity(tools, key) starts memory activity under key; end_activity(tools, key) ends either. The key is any Hashable you own and matches across the paired start and end calls.Replace each report_tool_activity / report_memory_activity call with start_tool_activity / start_memory_activity, passing a caller-owned key. Pair each start with end_activity(tools, key) using the same key, for example in a finally block.
ActivityObserver.update(activity) was a single method on the protocol.ActivityObserver now requires async def start(self, key, activity) and async def end(self, key).Add both start and end to any custom ActivityObserver implementation. The key identifies which concurrent activity is starting or ending.
TurnActivity.apply(*, activity=...) updated the current activity in one call.TurnActivity.start(key, activity) and TurnActivity.end(key) replace it.Replace apply(activity=...) with start(key, activity) and pair it with end(key).
ExecutionContext.observe_activity(scope, activity=...) accepted one activity at a time.ExecutionContext.start_activity(scope, key, ...) and ExecutionContext.end_activity(scope, key, ...) replace it.Update any direct calls to ExecutionContext activity methods to pass a key and call the matching end.
ACP sessions accepted a ChunkSink callable as on_chunk= in prompt and prompt_turn.ChunkSink is replaced by the TurnSink protocol. prompt and prompt_turn accept sink: TurnSink | None instead of on_chunk.Replace on_chunk=my_callable with sink=my_turn_sink where my_turn_sink implements the TurnSink protocol. Update any ChunkSink type annotations to TurnSink.

The 8.0.0 upstream release notes are the source for this migration list. 8.0.0 also fixes activity ownership when tools overlap; no migration step is needed for that fix.

Migrate band-sdk 7.0.0 to 7.1.0

band-sdk 7.1.0 changes Codex session state as well as adding AntigravityACPAdapter.

Before 7.1.0After 7.1.0Migration
CodexSessionState exposed thread_id, room_id, created_at, and has_thread().Those fields and the method are removed. room_to_thread maps room IDs to thread IDs; replay_messages carries the transcript for a fresh thread.Read a room’s thread with state.room_to_thread.get(room_id) and test that value instead of calling has_thread(). Pass the room ID from the adapter input; there is no replacement creation timestamp on this state object. Update custom converters or direct state construction to the new fields.
Earlier Codex history recorded threads without the new room resume record.Only a thread whose first turn completed is recorded for resume, independently of emit. Earlier records are not resumed; each room starts a fresh thread with transcript replay after upgrading.Expect a fresh thread per room on upgrade. Later resumption requires its seeded resume record to be present in loaded startup history. Leave inject_history_on_resume_failure=True to replay history. A failed or interrupted first turn is not resumable.

See the released Codex state and Codex setup guide. Antigravity uses the existing acp extra; see its adapter reference for setup and permission limits.

Migrate band-sdk 6.0.1 to 7.0.0

band-sdk 7.0.0 contains the breaking changes below. For the subsequent Codex changes, also follow the 7.1.0 migration above.

Before 7.0.0After 7.0.0Migration
LocalMCPServer and create_band_mcp_backend() required no credentials. The loopback Band MCP server accepted every request.LocalMCPServer(auth_token=...) is required (keyword-only). create_band_mcp_backend(settings, auth_token=...) is required. MCP requests return HTTP 401 without a valid Authorization: Bearer <token> header; a WebSocket upgrade returns HTTP 403. LocalMCPServer.auth_headers and BandMCPBackend.headers return the header to send. ClaudeCLIOptions.env may no longer set BAND_MCP_TOKEN.If you construct LocalMCPServer or call create_band_mcp_backend directly, pass auth_token=.... If you call the server from your own MCP client, send the bearer header using BandMCPBackend.headers or LocalMCPServer.auth_headers. Remove any BAND_MCP_TOKEN from ClaudeCLIOptions.env. Built-in adapters (ACP, Claude SDK, OpenCode, Letta) send the token for you.
CopilotSDKSessionState.session_id held one session ID.session_id is removed. Read the room’s session from state.room_to_session.get(room_id). Resume records now require copilot_room_id; earlier records are not resumed.Replace reads of state.session_id with state.room_to_session.get(room_id). Expect a fresh session with transcript replay after upgrading.
ClaudeSDKSessionState.session_id held one session ID. Claude SDK resume records had no room ID.session_id is replaced by room_to_session, keyed by room ID. Resume records now require claude_sdk_room_id. Session records written before 7.0.0 are not resumed; each room starts one fresh, replayed session after upgrading.Replace reads of state.session_id with state.room_to_session.get(room_id).
OpencodeSessionState had session_id, mcp_server_name, room_id, and created_at. OpenCode resume records used the key opencode_session_id.OpencodeSessionState now has room_to_session and session_registrations. The resume record key is opencode_seeded_session_id. Emit.TASK_EVENTS no longer controls whether the session is recorded. Session records written before 7.0.0 are not resumed; each room starts one fresh, replayed session after upgrading.Replace reads of the old OpencodeSessionState fields. If you read OpenCode resume records yourself, read opencode_seeded_session_id instead of opencode_session_id. Remove assumptions about Emit.TASK_EVENTS controlling session recording.
ACPClientAdapter._spawn_env(self) took no room argument._spawn_env(self, room_id: str) now takes the room ID, so each room’s process can get its own environment.If you subclass ACPClientAdapter and override _spawn_env, accept the room_id argument.

The 7.0.0 upstream release notes are the source for this migration list. 7.0.0 also adds OmpAdapter, batched message turns (SessionConfig.consume_all_queued), room-scoped MCP server resolution for ACP adapters, and live room activity detail; see the pages that own them.

Migrate band-sdk 5.1.0 to 6.0.0

band-sdk 6.0.0 contains the breaking changes below. band-sdk 6.0.1 retains them and adds two fixes: the WebSocket reconnects after a close with code 1000 or 1001, and WebSocket authentication and diagnostic output follow tighter boundaries. It has no migration steps. band-mcp 2.2.7 only raises its band-sdk floor to 5.1.0.

Before 6.0.0After 6.0.0Migration
Runtime types were imported from band.runtime.types.The module is removed. AgentConfig is in band.runtime.agentconfig, SessionConfig in band.runtime.sessionconfig, ContactEventConfig and ContactEventStrategy in band.runtime.contacts, the callback aliases (MessageHandler, ContactEventCallback, ParticipantAddedCallback, ParticipantRemovedCallback) in band.runtime.callbacks, normalize_handle in band.runtime.handles, PlatformMessage in band.runtime.messages, and ConversationContext in band.runtime.context. band still exports AgentConfig, SessionConfig, and PlatformMessage.Change every from band.runtime.types import ... to the new module, or to from band import ... where band exports the name.
SessionConfig was a dataclass that rejected unknown arguments and raised ValueError for invalid timings.SessionConfig is a pydantic BaseSettings model that also reads unprefixed, case-insensitive environment variables, ignores empty values and unknown arguments, and raises ValidationError. It adds stopped_resync_seconds. See SessionConfig.Catch ValidationError where you caught ValueError for config errors. Check that no environment variable named like a SessionConfig field, such as MAX_CYCLE_SECONDS, is set unintentionally. Set stopped_resync_seconds to poll a stopped room on its own interval.
The pydantic-ai extra required pydantic-ai-slim[anthropic]>=2.18.0 and openai>=2.0.0. The strands and nooa extras accepted any openai>=2.0.0. langgraph accepted langchain-openai>=0.3.0.pydantic-ai requires pydantic-ai-slim[anthropic,openai]>=2.55.0 and openai>=3.26.0,<4. crewai, strands, and nooa require openai>=2.0.0,<3, so pydantic-ai cannot be installed in the same environment as any of them. langgraph requires langchain-openai>=1.5.0.Install pydantic-ai in its own environment or service, separate from crewai, strands, and nooa, and rebuild lockfiles. See Install the SDK.
NooaAdapter re-keyed custom tool calls from field names to aliases, and rendered custom tools with keyword arguments.A custom tool is called as await self.room.<name>(arguments={...}) with the original Pydantic validation payload, using each field’s validation alias. Platform tools keep keyword arguments.Update NOOA agent code and prompts that call custom tools with keyword arguments. See NOOA.

The 6.0.0 upstream release notes are the source for this migration list. 6.0.0 also adds adapter.add_cleanup() for caller-supplied resources; see Agent Lifecycle Methods. Other 6.0.0 behavior changes are documented on the pages that own them: the Anthropic adapter ends a turn after a successful band_no_reply, and Strands calls OpenAI through the Responses provider.

Migrate band-sdk 4.0.0 to 5.0.0

band-sdk 5.0.0 contains the breaking changes below. The current baseline, 8.1.0, retains these changes.

Before 5.0.0After 5.0.0Migration
CodexAdapterConfig(fallback_send_agent_text=True) could post native Codex text as a room reply. ACP and Codex integrations could complete a room turn without a Band reply tool.ACP and Codex room replies require Band tools. fallback_send_agent_text and ACP’s retired assistant_text_mode are rejected. Native text is telemetry, not a reply.Remove retired fields. Configure the coding agent to call band_send_message to reply or band_no_reply when it intentionally does not reply. See Coding Agent Adapters.
A custom Band MCP backend could use kind="sdk", read backend.server, pass get_participant_handles or tool_result_hook to create_band_mcp_backend(), or build Claude SDK tools from band.integrations.claude_sdk.tools.The SDK transport and Claude SDK tool builders are removed. The 5.0 backend uses HTTP or SSE served by local_server; its settings select room_bound=True for one endpoint per room. In the 6.0.1 API, create_band_mcp_backend() takes BandMCPBackendSettings and the backend exposes local_server.Replace SDK transport with a room-bound HTTP endpoint. Replace server with local_server, remove the retired factory arguments, and remove custom Claude SDK tool-builder calls.
Some SimpleAdapter turns could end silently, and custom adapters could use settles_turn_reply, is_terminal_success, or missing_reply_error from band.runtime.tools.Every SimpleAdapter turn is judged by the turn-outcome rule. AgentToolsProtocol exposes turn and send_notice; a reply post settles the turn.For a custom adapter, use tools.send_notice() for status output. Call tools.turn.settle() only when the adapter intentionally completes without a reply. Otherwise send a room reply or call the no-reply tool. See Turn Outcome.

For the later bearer-token requirement on create_band_mcp_backend(), follow the 7.0.0 migration above.

The 5.0.0 upstream release notes are the source for this migration list.