better-chat
Verified Safeby Chris31372
Overview
An AI chat application focused on interacting with technical documentation, featuring multi-model support and per-user data isolation via Cloudflare Durable Objects.
Installation
bun a:devEnvironment Variables
- ALCHEMY_STATE_TOKEN
- CORS_ORIGIN
- BETTER_AUTH_URL
- BETTER_AUTH_SECRET
- RESEND_API_KEY
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- GH_CLIENT_ID
- GH_CLIENT_SECRET
- API_ENCRYPTION_KEY
- OPENAI_API_KEY
- GOOGLE_GENERATIVE_AI_API_KEY
- VITE_SERVER_URL
- VITE_WEB_URL
- CUSTOM_WEB_DOMAIN
- API_ROUTE_PATTERN
- CLOUDFLARE_ACCOUNT_ID
- CLOUDFLARE_DATABASE_ID
- CLOUDFLARE_API_TOKEN
Security Notes
The provided server-side source code demonstrates strong security practices. Sensitive user API keys are encrypted at rest using AES-GCM with a user-specific PBKDF2-derived key, and secrets are properly managed via environment variables. User sessions are secured with Cloudflare KV, and rate limiting is implemented. The authentication system, Better Auth, uses email OTP and OAuth securely. However, the accompanying README's instructions to download and execute a `.zip` file for the client application from GitHub (`better-chat.zip`) represent a critical security risk for end-users, as the contents of this client binary are not provided for audit. Users should exercise extreme caution and ideally build the client from source if provided, or verify its integrity through trusted channels.
Similar Servers
better-chatbot
An advanced open-source AI chatbot supporting multiple LLMs, extensive tools (web search, code execution, data visualization, MCP protocol), image generation, and workflow automation for individuals and teams.
memory-mcp
Provides persistent memory and intelligent context window caching for LLM conversations within AI coding environments.
codearchitect-mcp
Automatically saves and retrieves AI conversation sessions from IDEs (Cursor, VS Code) to provide context continuity and build a searchable knowledge base for developers.
mcp-chat-client
A modern chat client that integrates with Model Context Protocol (MCP) servers to provide AI-powered conversations with access to various tools and resources.