Today, we’re releasing the Python SDK for Liveblocks, bringing powerful back end
capabilities to one of the most popular modern languages. This is especially
important as Python continues to dominate the AI ecosystem, making it a natural
choice for building intelligent, collaborative applications and
agent-driven software.
Our Python SDK introduces 85+ new methods for Liveblocks, allowing you to manage
rooms, update realtime storage, and
build agent workflows
directly in Python. Let’s look at how it can be used.
Rooms are the foundation of Liveblocks—they’re
multiplayer spaces where people and agents can collaborate. In Python, you can
use create_room to set
them up, and define permissions.
In your React front end, you can join this room using
RoomProvider.
Your multiplayer room may use
Liveblocks Storage
to store realtime data, for example shapes on a collaborative canvas. You can
use
patch_storage_document
to modify this data in realtime.
Changes are displayed in realtime for all connected clients with
useStorage.
By using
get_storage_document,
you can get the current realtime document as JSON. In combination with
patch_storage_document,
you can then use this to generate a patch with AI.
By using setPresence,
you can show AI presence in a document while it’s making changes.
In your front end, the AI’s avatar will appear in
AvatarStack.
You can also build fully custom presence UI with
useOthers.
Feeds is a new
primitive for storing realtime chat messages, AI activity logs, and more. You
can use
create_feed_message
to create a realtime message in a feed, for example to display the status of an
AI workflow, currently Thinking….
In your front end, you can show this message in your UI as soon as it’s created.
Sending new feed messages will update this UI in realtime.
We’ve only briefly touched upon uses for our new Python SDK. There are around 80
more methods to explore, allowing you to:
- Authenticate users, manage permissions, create share menus.
- List rooms, fetch connected users, send realtime events.
- Multiplayer: Fetch and modify Yjs
text document data.
- Comments: Send emails when users have
unread comments.
- Notifications: Trigger custom
notifications in notification inboxes.
- AI Copilots: Upload knowledge
sources to your chats.
To get started with the Python SDK, read our new API reference page.
Get started now
Contributors include:

2 authors