Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cloud

БесплатноБез исполняемых скриптовНе проверен

Adds AssistantCloud backed persistence, authorization, and telemetry to assistant-ui apps. Use when wiring cross-session thread and message history…

assistant-uiот 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

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
Полный SKILL.md на GitHub

Установить cloud в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/auth-integrations.mdreferences/authorization.mdreferences/custom-persistence.mdreferences/persistence.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить cloud с