Ai Room — Architecture
One question to ChatGPT, Claude, Gemini, Grok, DeepSeek, Mistral, OpenRouter, and a local model: compare side by side, or discuss until a judge approves the best answer
Browser / phone PWA · Add to Home Screen · T icon · Outside Ai Room
Browser / phone PWA
Add to Home Screen · T icon
CLI · hub.py main · --ask / --mode · Ai Room on your machine or host
CLI
hub.py main · --ask / --mode
Web server · ThreadingHTTPServer · /api/ask · Ai Room on your machine or host
Web server
ThreadingHTTPServer · /api/ask
Hub core · ask_all · run_discussion · Ai Room on your machine or host
Hub core
ask_all · run_discussion
Per-user API keys · SQLite · never sent to browser · Ai Room on your machine or host
Per-user API keys
SQLite · never sent to browser
Judge + verdict · WINNER: <name> · final answer · Ai Room on your machine or host
Judge + verdict
WINNER: <name> · final answer
Provider clients · OpenAI · Anthropic · Gemini · xAI · DeepSeek · Mistral · OpenRouter · Ai Room on your machine or host
Provider clients
OpenAI · Anthropic · Gemini · xAI · DeepSeek · Mistral · OpenRouter
Transcripts · Markdown · per-user dirs · Ai Room on your machine or host
Transcripts
Markdown · per-user dirs
Cloud AI APIs · ChatGPT · Claude · Gemini · Grok · DeepSeek · Mistral · OpenRouter · Outside Ai Room
Cloud AI APIs
ChatGPT · Claude · Gemini · Grok · DeepSeek · Mistral · OpenRouter
Local Ollama model · qwen2.5:7b · localhost:11434 · Ai Room on your machine or host
Local Ollama model
qwen2.5:7b · localhost:11434
Google / Apple sign-in · Google live · verified ID tokens · Outside Ai Room
Google / Apple sign-in
Google live · verified ID tokens
sign-in + question
OAuth code flow
verified ID token
this user's keys
ask with user keys
answers + verdict
question + --mode
rounds 1-2: answer + critique
HTTPS, key in header
localhost /api/chat
round 2 answers
WINNER + final answer
Markdown transcript
Ai Room on your machine or host
Outside Ai Room
Legend
Frontend
Backend
Database
External
Diagram guide
Explore this system
×
Inspecting compiled semantics
01
Find any node Search labels, responsibilities, kinds, and stable IDs.
/
02
Trace a route Ask how two semantic nodes connect in authored direction.
R
03
See the whole system Open Semantic Radar with a live viewport and stable nodes.
M
04
Compare semantic kinds Count roles, reveal their traffic, and compare direct authored links.
L
05
Enter Presentation Stage Give the live diagram the viewport without changing export.
F
E ExportT ThemeS Style0 Reset+ Zoom in- Zoom outEsc Close
Find Archify useful? A star on GitHub helps Star ↗
Find a node
×
⌕
/
No matching nodes
Semantic passport
Authored reach
Upstream 0
Downstream 0
×
Copy link
Relations
Path
Click where the path starts
Find start
Copy link
Clear
Click two nodes on the diagram
←
▶
Journey
→
Overview
Click a start, then an end. Paths follow the arrows.
Semantic lens
Compare system roles
×
Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.
Choose a kind to inspect its nodes and touching relationships.
Copy link
Clear
Semantic radar
Building overview
Open radar
×
Click node Drag to pan
Semantic radar needs more MAP space.
Notes & index
ROUTE
MAP
LENS
READ 100%