ai-chatbot
FreeNo executable scriptsNot checkedFull-featured AI chatbot with Next.js 15, Auth.js, Drizzle ORM, and multi-model support.
by diegosouzapw★ 68 GitHub starsAbout this skill
AI Chatbot
A full-featured, hackable AI chatbot with authentication, file storage, and multi-model support.
Tech Stack
- Framework: Next.js 15
- React: React 19
- AI: AI SDK, Vercel AI Gateway
- Auth: Auth.js
- ORM: Drizzle
- Database: PostgreSQL (Neon, Supabase, or Railway)
- Styling: Tailwind CSS, shadcn/ui
- Package Manager: pnpm
- Dev Port: 3000
Setup
1. Clone the Template
git clone --depth 1 https://github.com/Eng0AI/ai-chatbot-template.git .
If the directory is not empty:
git clone --depth 1 https://github.com/Eng0AI/ai-chatbot-template.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template
2. Remove Git History (Optional)
rm -rf .git
git init
3. Install Dependencies
pnpm install
4. Setup Environment Variables
cp .env.example .env
Required variables:
POSTGRES_URL- PostgreSQL connection stringAUTH_SECRET- Generate withopenssl rand -base64 32OPENAI_API_KEYorANTHROPIC_API_KEY- LLM provider key
5. Run Database Migrations
pnpm db:migrate
Build
pnpm build
Or run build without migration (if already migrated):
next build
Deploy
Vercel (Recommended)
# Pull project settings
vercel pull --yes -t $VERCEL_TOKEN
# Push env vars (first time only)
while IFS='=' read -r key value; do
"$key" =~ ^#.*$ || -z "$key" || -z "$value" && continue
for env in production preview development; do
printf '%s' "$value" | vercel env add "$key" $env -t $VERCEL_TOKEN
done
done < .env
# Build and deploy
vercel build --prod -t $VERCEL_TOKEN
vercel deploy --prebuilt --prod --yes -t $VERCEL_TOKEN
Netlify
# Import env vars (first time only)
netlify env:import .env
# Deploy
netlify deploy --prod
Critical Notes
- Database Required: Must have PostgreSQL database set up before building
- Migration Required: Run
pnpm db:migratebefore first build - Auth Secret: Generate a secure random secret for AUTH_SECRET
- Never run
pnpm devin VM environment
Install ai-chatbot in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the ai-chatbot skill do?
Full-featured AI chatbot with Next.js 15, Auth.js, Drizzle ORM, and multi-model support.
How do I install the ai-chatbot skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the ai-chatbot skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic