https://github.com/sibiraj-s/ai-chat-example
An CLI based AI chat agent built using vercel ai sdk - demo
https://github.com/sibiraj-s/ai-chat-example
ai ai-sdk anthropic claude-ai
Last synced: 6 months ago
JSON representation
An CLI based AI chat agent built using vercel ai sdk - demo
- Host: GitHub
- URL: https://github.com/sibiraj-s/ai-chat-example
- Owner: sibiraj-s
- License: mit
- Created: 2025-03-09T18:18:09.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-04-19T05:18:14.000Z (6 months ago)
- Last Synced: 2025-04-30T02:04:49.856Z (6 months ago)
- Topics: ai, ai-sdk, anthropic, claude-ai
- Language: TypeScript
- Homepage:
- Size: 228 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI Chat Demo
This is a simple AI-powered chat application that runs in the command line interface (CLI). It's built using Vercel's AI SDK and Anthropic's Claude models, providing an interactive conversational experience directly in the terminal.
The conversations are stored in a local postgres database.
## Requirements
- Node.js 18+
- npm
- docker
- Anthropic API key## Setup
Clone the repo
```bash
git clone https://github.com/sibiraj-s/ai-chat
```Install dependencies
```bash
npm install
```Copy the `.env.example` file to `.env` and add your Anthropic API key
```bash
cp .env.example .env
```Start the docker container
```bash
make db
```Run the app
```bash
npx tsx src/index.ts
```