> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentcard.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Vercel Chat SDK

> Claude agent behind a POST /api/chat endpoint, with Agentcard cards per user

The Vercel AI SDK chatbot contract: instead of a messaging vendor's webhooks, your users hit a `POST /api/chat` endpoint. Same shared Claude agent, same full [Agentcard integration](/companies/examples/overview) — per-user OAuth connect and the MCP card toolset.

## Run it

```bash theme={null}
git clone https://github.com/tiny-agent-company/example-implementations
cd example-implementations/vercel-chat-sdk
bun install
cp .env.example .env   # add ANTHROPIC_API_KEY
bun run dev            # terminal mode — chat locally, zero credentials
bun run start          # serves the POST /api/chat endpoint
```

In terminal mode you can drive the whole Agentcard flow — ask the agent for a card, tap the connect link it hands you, and watch it mint one in sandbox.

<Card title="Vercel Chat SDK example on GitHub" icon="github" href="https://github.com/tiny-agent-company/example-implementations/tree/main/vercel-chat-sdk">
  The runnable folder — endpoint, Agentcard wiring, and offline tests.
</Card>
