AI Transport SDK

AI Chat Transport

Stream AI responses over MQTT. Multi-device sync. Offline resume. Drop-in Vercel AI SDK compatible.

Why MQTT for AI Chat

HTTP streaming breaks on reconnect. MQTT was built for unreliable networks β€” your AI chat should be too.

Drop-in Transport

Replace HTTP streaming in the Vercel AI SDK with a single line. Same useChat hook, faster delivery over MQTT.

Multi-Device Sync

The same conversation streams to phone, laptop, and tablet simultaneously. No extra code required.

Offline Resume

Reconnect after a network drop and get the complete AI response via retained messages. No lost tokens.

Broker-Level ACL

Each chat session gets its own topic with access control. Users can only read their own conversations.

Drop-in Replacement

One Line to Switch Transports

Keep using the Vercel AI SDK hooks you already know. Just swap the transport layer and get multi-device sync, offline resume, and broker-level security for free.

Token Streaming
AI tokens stream over MQTT as they are generated β€” lower latency than HTTP
Session Persistence
Retained messages store the latest response for instant reconnection
Automatic Reconnect
Built-in reconnection logic with exponential backoff and message replay
Framework Compatible
Works with Next.js, Remix, SvelteKit, and any Vercel AI SDK integration
chat.tsx
import { useChat } from 'ai/react'
import { CloudSignalChatTransport
} from '@cloudsignal/ai-transport'
const { messages, sendMessage } = useChat({
transport: new CloudSignalChatTransport({
api: '/api/chat',
authEndpoint: '/api/auth/mqtt',
wssUrl: 'wss://connect.cloudsignal.app',
})
})

Start Building with AI Transport

Replace HTTP streaming with MQTT in under 5 minutes. Free tier included.