Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

README.md

15 lines483 Bytes

1# Basic Chat
2​
3You want a streaming chat with one OpenRouter key. Paste a key, send a message, and watch the reply stream in.
4​
5## Run it
6​
71. From the repo root, run `pnpm install`.
82. Run `pnpm --filter basic-chat dev`.
93. Open http://localhost:3100.
104. Paste an OpenRouter key from https://openrouter.ai/keys.
115. Type a message and click Send.
12​
13The key stays in this tab only. A reload clears it.
14​
15The server route is `src/routes/api.chat.ts`. The chat UI is `src/routes/index.tsx`.