cloud
БесплатноБез исполняемых скриптовНе проверенAdds AssistantCloud backed persistence, authorization, and telemetry to assistant-ui apps. Use when wiring cross-session thread and message history…
от assistant-ui★ 30 звёзд на GitHubОб этом скилле
assistant-ui Cloud
Always consult assistant-ui.com/llms.txt for the latest API.
Assistant Cloud is a hosted service that adds thread persistence, message history, auto-generated titles, message feedback, and file uploads to any React chat UI. One AssistantCloud client backs the assistant-ui runtime, AuiConfig thread integration, and LangGraph Cloud.
Contents
- References | Install | Quick start: useChatRuntime | AuiConfig hosts: AISDKThreads | Migrate from Cloud AI SDK | LangGraph | Message feedback | Authentication | Client API | Environment variables | Common Gotchas | Related Skills
References
- ./references/persistence.md -- the thread, message, file, and run client API in full, verified against source
- ./references/authorization.md -- the three auth modes and direct provider integrations (Clerk, Auth0, Supabase, Firebase)
- ./references/custom-persistence.md --
CloudMessagePersistenceandcreateFormattedPersistence, for a customThreadHistoryAdapterbacked by cloud message storage - ./references/auth-integrations.md -- non-cloud auth gating with Auth.js (next-auth), Clerk, and better-auth, plus pairing AssistantCloud with a backend token endpoint
Install
npm install @assistant-ui/react @assistant-ui/ai-sdk
assistant-cloud ships as a dependency of @assistant-ui/react, which re-exports AssistantCloud for browser code. Server-side code (API routes, token endpoints) that has no reason to depend on @assistant-ui/react imports AssistantCloud from assistant-cloud directly.
Quick start: useChatRuntime
useChatRuntime({ cloud }) from @assistant-ui/ai-sdk wraps AI SDK's useChat and adds persistence. It creates a cloud thread on the first message, persists messages as they stream, generates a title after the first response, loads history on thread switch through <ThreadList />, and submits message feedback against the stored message.
"use client";
import { useMemo } from "react";
import { AssistantCloud, AssistantRuntimeProvider } from "@assistant-ui/react";
import { useChatRuntime } from "@assistant-ui/ai-sdk";
import { Thread } from "@/components/assistant-ui/elements/thread.aui";
import { ThreadList } from "@/components/assistant-ui/elements/thread-list.aui";
export default function ChatPage() {
const cloud = useMemo(
() =>
new AssistantCloud({
baseUrl: process.env.NEXT_PUBLIC_ASSISTANT_BASE_URL!,
anonymous: true,
}),
[],
);
const runtime = useChatRuntime({ cloud });
return (
<AssistantRuntimeProvider runtime={runtime}>
<div className="grid h-dvh grid-cols-[250px_1fr] gap-x-2">
<ThreadList />
<Thread />
</div>
</AssistantRuntimeProvider>
);
}
anonymous: true is for demos; see Authentication for production auth. useChatRuntime also accepts adapters.history (a ThreadHistoryAdapter, must implement withFormat to combine with AI SDK), adapters.feedback (defaults to the cloud feedback adapter when cloud is set), adapters.attachments, toCreateMessage, transport (defaults to AssistantChatTransport calling /api/chat), and onResumeError.
AuiConfig hosts: AISDKThreads
AISDKThreads({ cloud }) from @assistant-ui/ai-sdk is the AuiConfig equivalent for a host that is not AssistantRuntimeProvider (Vue, or a hand-rolled AssistantClient). With cloud set, the thread list is a RemoteThreadList with background threads: every visited thread keeps running and its own history after a switch, and a freshly created thread titles itself.
import { AuiConfig, AuiProvider } from "@assistant-ui/react";
import { AISDKThreads } from "@assistant-ui/ai-sdk";
const config = AuiConfig({
threads: AISDKThreads({ cloud }),
});
Migrate from Cloud AI SDK
@assistant-ui/cloud-ai-sdk is deprecated. For new code, use the cloud option of useChatRuntime from @assistant-ui/ai-sdk; for an AuiConfig host, use AISDKThreads({ cloud }). See Migrate from Cloud AI SDK for the migration details.
LangGraph: useLangGraphRuntime
useLangGraphRuntime from @assistant-ui/react-langgraph takes cloud alongside stream, create, load, and delete for cloud-backed thread management over a LangGraph Cloud backend.
"use client";
import { AssistantCloud, AssistantRuntimeProvider } from "@assistant-ui/react";
import { useLangGraphRuntime, type LangChainMessage } from "@assistant-ui/react
Установить cloud в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cloud?
Adds AssistantCloud backed persistence, authorization, and telemetry to assistant-ui apps. Use when wiring cross-session thread and message history, multi-device chat, message feedback, file uploads, or auth: passing `cloud` to `useChatRuntime` from `@assistant-ui/ai-sdk`, `AISDKThreads({ cloud })` for `AuiConfig` hosts, or `cloud` on `useLangGraphRuntime`. Covers constructing `AssistantCloud` with `authToken` (JWT), `apiKey` plus `userId`/`workspaceId` (server-side only), or `anonymous`; Clerk, Auth0, Supabase, and Firebase integrations and a backend token endpoint; the `cloud.threads`, `cloud.files`, `cloud.runs`, and `cloud.telemetry` client surface; and a custom `ThreadHistoryAdapter` on `CloudMessagePersistence`. Route here for threads that do not persist, 401s against the cloud API, or feedback buttons that do not save. For the `<ThreadList />` sidebar UI use thread-list; for the general adapter contracts use runtime.
Как установить скилл cloud?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cloud запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic