A local chat UI that mimics AI Studio style, backed by FastAPI and OpenRouter.
- Multi-chat workspace with local JSON persistence
- Streaming model responses (SSE)
- Provider/model settings from
static/providers.json - Attach files to prompts (image/video/audio/text/pdf)
- Search chat history (title/content/all)
pip install -r requirements.txt
python main.pyOpen: http://127.0.0.1:8765
Use the key button in the prompt bar, or set env vars in .env (for example OPENROUTER_API_KEY).
- Chats:
data/chats/{chat_id}.json - Uploaded files:
data/chats/{chat_id}/files/* - Saved key overrides:
data/keys.json
- Backend:
main.py - Frontend shell:
static/index.html - Frontend logic:
static/js/*.js - Styles:
static/css/style.css - Model registry:
static/providers.json
Built for personal use first. It is intentionally simple, and there are probably rough edges and bugs.
