ChatAI

Settings

Connections and agents are stored locally. Requests go directly from your browser to the API endpoint you configure.

Connections

Agents & prompts

Usage

Voice

Browser speech uses your device. API-based voice sends audio or text to the configured provider.

Danger zone

Wipe all conversations and settings from this browser. This cannot be undone.

Add connection

Choose a provider and enter its details.

Add agent

Create a custom system prompt. The agent is sent as the system message for every request.

Link location

File preview


  
README Tech Doc Contact

About ChatAI

ChatAI is a minimal, trustworthy, offline-first AI chatbox PWA you can self-host on GitHub Pages or any static host. Add your own API connections and agents/prompts, then switch between them from the composer — or let the app pick automatically based on your first message.

Key Features

Voice Input & Output

Use the mic button in the composer to start voice recording — click to start, click again to stop. Uses the free browser Web Speech API by default (Chrome/Edge), with optional Whisper API. A speaker button appears on assistant messages when text-to-speech is enabled, supporting browser speech, OpenAI TTS, or ElevenLabs.

Image Generation & Web Search

Ask for an image (e.g. "draw a cat") and the app automatically routes to an enabled DALL·E or Stability AI connection. Select the Web Researcher agent (or ask a search-style question) and the app calls Tavily, Brave Search, or SerpApi, then asks your chat model to answer with source citations.

RAG Knowledge Base

In Settings → Knowledge base, choose an embedding provider and upload PDF, DOCX, TXT, MD, CSV, or HTML documents. The app chunks, embeds, and stores vectors locally in IndexedDB. Ask the Knowledge Base Researcher agent to retrieve relevant excerpts and answer from your uploaded files.

Agentic Folder/File Coding

Link a folder or file in the composer and the autonomous agent loop can read, write, search, and patch files using the browser File System Access API (Chrome/Edge desktop). The agent runs an autonomous loop — read, plan, write, verify — until it emits a final answer, with a live stop button to interrupt.

Supported Providers

OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, AWS Bedrock, Google Cloud Vertex AI, Ollama, Moonshot Kimi, Zhipu GLM, MiniMax, NVIDIA, Alibaba Qwen, OpenRouter, Groq, Together AI, Fireworks AI, Cohere, Mistral AI, DeepSeek, Perplexity, xAI Grok, AI21 Labs, Anyscale, Replicate, Hugging Face, Cloudflare Workers AI, and any OpenAI-compatible endpoint.

Privacy

API keys, conversations, and settings are stored locally in your browser only. Requests go directly from your browser to the endpoint you select. There is no server, no analytics, no accounts, no tracking. Clearing your browser data deletes everything — use export to back up.

License

MIT — do whatever you want. Attribution appreciated.