Documentation
Architecture & security reference
How TheOmnexOS enforces tenant isolation, handles AI context, and deploys on your own infrastructure.
Database isolation
rls.sqlEvery query to workspaces, knowledge_items, and tasks runs under PostgreSQL Row Level Security bound to auth.uid().
CREATE POLICY "tenant_iso" ON tasks
USING (auth.uid() = user_id);Server-verified JWT
server.tsAll user-facing API routes forward the authenticated session cookie. The service_role key is never used on user requests.
const { user } = await getUser();
if (!user) return json(401);Standalone Docker self-hosting
DockerfileShip TheOmnexOS on any private VPS, AWS/GCP VPC, or on-premise cluster with Next.js standalone output.
FROM node:22-alpine
COPY .next/standalone ./
CMD ["node", "server.js"]