chat
Universal chat layer for building bots and agents.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
It has changed since its scan on 11 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/vercel/chat with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/vercel/chat'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/vercel-chat)HTML
<a href="/listings/vercel-chat"><img src="/api/listings/vercel-chat/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
npm i chat
Install one or more adapters for your platforms:
npm install @chat-adapter/slack @chat-adapter/teams @chat-adapter/gchat
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 135 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.
- # Chat SDK
- [](https://vercel.com/kb/agent-stack)
- [](LICENSE)
- Unified TypeScript SDK for building chat bots across Slack, Microsoft Teams, Google Chat, Discord, Telegram, GitHub, Linear, WhatsApp, and more. **Write your bot logic once, deploy everywhere.**
- ## Installation
- ```bash
- npm i chat
- ```
- Install one or more adapters for your platforms:
- ```bash
- npm install @chat-adapter/slack @chat-adapter/teams @chat-adapter/gchat
- ```
- ## CLI
- Scaffold a minimal Next.js bot app with `create-chat-sdk`:
- ```bash
- npx create-chat-sdk@latest my-bot
- ```
- The CLI generates your `Chat` configuration, webhook route, `.env.example` file, dependencies, and optional Web adapter route from the [adapter catalog](#adapter-catalog). See the [CLI docs](https://chat-sdk.dev/docs/create-chat-sdk) for options and non-interactive usage.
- ## Usage
- ```typescript
- import { Chat } from "chat";
- import { createSlackAdapter } from "@chat-adapter/slack";
- import { createRedisState } from "@chat-adapter/state-redis";
- const bot = new Chat({
- userName: "mybot",
- adapters: {
- slack: createSlackAdapter(),
- },
- state: createRedisState(),
- });
- bot.onNewMention(async (thread) => {
- await thread.subscribe();
- await thread.post("Hello! I'm listening to this thread.");
- });
- bot.onSubscribedMessage(async (thread, message) => {
- await thread.post(`You said: ${message.text}`);
- });
- ```
- See the [Getting Started guide](https://chat-sdk.dev/docs/getting-started) for a full walkthrough.
- ## Adapters
- Browse official, vendor-official, and community adapters on [chat-sdk.dev/adapters](https://chat-sdk.dev/adapters). Learn how to [build your own adapter](https://chat-sdk.dev/docs/contributing/building).
- ## Adapter catalog
- [`@chat-adapter/catalog`](packages/catalog) lists every adapter on chat-sdk.dev with its npm package, maintainer, and supported capabilities. Official and vendor-official entries also include the factory export, peer dependencies, and environment variables needed to set them up. It has no dependencies and imports no adapter code, so you can use it in websites, setup screens, build scripts, and CLIs. chat-sdk.dev and `create-chat-sdk` both read from it.
- ```bash
- npm i @chat-adapter/catalog
- ```
- ```typescript
- import {
- getFeatureSupport,
- getSecretEnvVars,
- listAdapters,
- } from "@chat-adapter/catalog";
- const streamingAdapters = listAdapters({ type: "platform" }).filter(
- (adapter) => getFeatureSupport(adapter, "streaming").status === "yes"
- );
- const slackSecrets = getSecretEnvVars("slack").map((envVar) => envVar.key);
- ```
- See the [Adapter Catalog docs](https://chat-sdk.dev/docs/adapter-catalog) for the full API.
- ## Features
- - [**Event handlers**](https://chat-sdk.dev/docs/usage) — mentions, messages, reactions, button clicks, slash commands, modals
- - [**AI streaming**](https://chat-sdk.dev/docs/streaming) — stream LLM responses with native Slack streaming, Telegram private chat draft previews, and post+edit fallback
- - [**Cards**](https://chat-sdk.dev/docs/cards) — JSX-based interactive cards (Block Kit, Adaptive Cards, Google Chat Cards)
- - [**Actions**](https://chat-sdk.dev/docs/actions) — handle button clicks and dropdown selections
- - [**Modals**](https://chat-sdk.dev/docs/modals) — form dialogs with text inputs, dropdowns, and validation
- - [**Slash commands**](https://chat-sdk.dev/docs/slash-commands) — handle `/command` invocations
- - [**Emoji**](https://chat-sdk.dev/docs/emoji) — type-safe, cross-platform emoji with custom emoji support
- - [**File uploads**](https://chat-sdk.dev/docs/files) — send and receive file attachments
- - [**Direct messages**](https://chat-sdk.dev/docs/direct-messages) — initiate DMs programmatically
- - [**Ephemeral messages**](https://chat-sdk.dev/docs/ephemeral-messages) — user-only visible messages with DM fallback
- - [**Overlapping messages**](https://chat-sdk.dev/docs/concurrency) - burst, queue, debounce, drop, or process concurrent messages on the same thread
- ## AI Coding Agents
- If you use an AI coding agent such as OpenAI Codex, Claude Code, or Cursor, install the Chat SDK skill so it knows the SDK APIs, adapter patterns, and project conventions before writing code.
- ```bash
- npx skills add vercel/chat
- ```
- The skill references bundled documentation in `node_modules/chat/docs`, plus adapter guides and starter templates in the published package.
- You can also install the [Vercel Plugin](https://vercel.com/plugin) for a broader agent toolkit. It includes the Chat SDK skill alongside specialist agents, slash commands, and more:
- ```bash
- npx plugins add vercel/vercel-plugin
- ```
- For agent-readable documentation, see [chat-sdk.dev/llms.txt](https://chat-sdk.dev/llms.txt) (page index) or [chat-sdk.dev/llms-full.txt](https://chat-sdk.dev/llms-full.txt) (full text).
- ## Documentation
- Full documentation is available at [chat-sdk.dev/docs](https://chat-sdk.dev/docs) and guides are available in the [Vercel Knowledge Base](https://vercel.com/kb/chat-sdk).
- ## Contributing
- See [CONTRIBUTING.md](./.github/CONTRIBUTING.md) for guidance on contributing to Chat SDK.
- ## Support
- For help or questions, see [SUPPORT.md](./.github/SUPPORT.md).
- To report a security vulnerability, see [SECURITY.md](./.github/SECURITY.md).
- ## License
- MIT
- [](https://vercel.com)
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.