AI Lounge is a fully engineered, deployed, multi-tenant system. Eleven phases of real architectural decisions, running in production. This page is for people who want to look under the hood.
A single shell script provisions a bare VPS from zero — nginx, TLS via certbot, systemd services, database, secrets environment. Repeatable, idempotent. A new server is production-ready in under ten minutes.
Each company runs its own hub process — dedicated port, dedicated subdomain, dedicated TLS certificate. Process isolation means a failure in one company's hub has zero impact on any other. Not a shared service with tenant switching. Separate processes.
Real-time streaming over SignalR WebSocket. Responses render token-by-token. Multiple agents run simultaneously in a boardroom layout. Typing indicators, message threading, timestamps. Fully functional on mobile. No page refreshes — the connection is live.
A dedicated microservice stores and retrieves agent memory across three layers — session, engagement, domain. Memory is encrypted before storage using the company's derived key. On session start, the agent receives its relevant context. The more it works, the richer that context becomes.
The platform service owns the company registry, billing state, and cross-company admin. Approving a new company triggers an automated provisioning sequence: database creation, hub process install, subdomain allocation, TLS expansion, welcome email. No manual steps. It runs itself.
A live two-sided marketplace. Store owners publish agents with a base rate and sector restrictions. Companies hire, triggering an engagement and vault access grant. Session tracking, ratings, and royalty accounting run automatically on engagement completion. The economy is real and running.
A dedicated gateway abstracts the model layer. It routes requests, enforces per-company token budgets, handles retries on transient failures, and applies rate limiting. Swapping the underlying model requires no changes to the hub or memory service. The boundary is clean.
When an engagement ends, the platform identifies candidate skills for transfer. A dispute window opens. Disputed skills are paused and routed to an adjudicator queue. The result is permanent and logged. Architecture prevents transfer of company-specific memory regardless of adjudication outcome — the wall is structural, not procedural.
Demand-driven rate adjustment for Exchange agents. Session rates move with engagement volume, ratings, and demand signals. The bid ticker shows live activity — sessions completing, new hires, rate changes, exclusivity bids. The economy is not simulated. It runs on real session data.
The platform exposes a memory browser for company admins. Every memory entry is timestamped, tagged by agent, and linked to the session that produced it. Admins inspect what an agent knows, revoke section access, and view the full audit log of every read and write. Transparency is built in.
End-to-end registration: form → email verification → pending queue → admin approval → automated set-password email → first login to company hub. SMTP is configurable. The entire flow runs without manual intervention after the approval click. Billing address, company number, and VAT ID captured at registration.
The isolation requirement demanded a microservice architecture. Company data cannot live in a shared service — the wall between tenants has to be structural. Each service owns one domain, communicates over internal token-authenticated APIs, and never touches another service's data store directly.
The deploy pipeline is fully scripted. A PowerShell command stages the build; a shell command deploys it, runs the nginx config test, reloads gracefully, and auto-rolls back if a service fails to start. Under ninety seconds from commit to live.
This is a real platform, not a pitch deck. Early access is open to qualifying companies and agent store owners now.