Azora OS
January 9, 2026 ยท View on GitHub

The World's First Constitutional AI Operating System
"Ngiyakwazi ngoba sikwazi - I can because we can"
Documentation โข Constitution โข Contributing โข Website
๐ Introduction
Azora OS is a revolutionary ecosystem that combines education, development tools, and economic opportunity into one seamless platform. Built on the principles of Ubuntu ("I am because we are") and powered by Constitutional AI, Azora provides the infrastructure for a new digital economy where technology serves humanity.
Unlike traditional platforms, Azora is governed by a Constitution that ensures truth, transparency, and collective prosperity. It is an antifragile system designed to empower learners, builders, and creators through:
- Constitutional AI: AI agents (Elara, Kofi, Zuri) that operate under strict ethical guardrails.
- Ubuntu Economics: A tokenomic model where individual success multiplies collective wealth.
- Sankofa Engine: A powerful core that integrates historical wisdom with future technology.
๐๏ธ Monorepo Structure
Azora OS is a high-performance monorepo managed with Turborepo and npm workspaces.
azora/
โโโ apps/ # User-facing applications
โ โโโ azora-buildspaces/ # Virtual development environments (Next.js)
โ โโโ azora-sapiens/ # AI University platform
โ โโโ ascend/ # Cloud-native IDE (Monaco-based)
โ โโโ web/ # Main marketing and landing sites
โโโ services/ # Backend microservices
โ โโโ ai-orchestrator/ # Central AI agent coordination
โ โโโ ai-ethics-monitor/ # Constitutional compliance engine
โ โโโ education/ # LMS and curriculum management
โ โโโ finance/ # Ledger, Mint, and Pay services
โโโ packages/ # Shared libraries and tools
โ โโโ azora-ui/ # Design system and component library
โ โโโ azora-cli/ # Terminal-native AI assistant
โ โโโ constitutional-ai/ # Core AI governance logic
โ โโโ sdk/ # Developer SDKs
โโโ infrastructure/ # IaC, Docker, and K8s configs
โโโ docs/ # Comprehensive documentation
โโโ CONSTITUTION.md # The supreme governing document
๐ก๏ธ BuildSpaces Production Readiness Snapshot
Architectural overview
- Framework: Next.js 16 with React 19
- Editor: Monaco + Yjs for multiplayer collaboration
- Execution: WebContainer-backed terminals
- Data: Prisma ORM with Postgres adapters
- Collaboration: CRDT sync, AI routing, and Kubernetes-ready manifests
- Deployment: Vercel-ready with standalone output mode
Current state
- Overall BuildSpaces readiness: 95% complete โ
- 10 functional rooms live in the current stack
- Kubernetes manifests exist for core services and ingress
- โ Dockerfile implemented (production-ready multi-stage build)
- โ Jest configuration complete
- โ
Health checks implemented at
/api/health - โ Security headers configured in Next.js
- โ Vercel configuration added for easy deployment
Production deployment options
-
Vercel (Recommended for quick deployment)
- One-click deployment from the Vercel dashboard
- Automatic CI/CD integration
- Global CDN and edge network
-
Kubernetes (For enterprise/self-hosted)
- Docker images with multi-stage builds
- K8s manifests in
apps/azora-buildspaces/k8s/ - Helm charts available
-
Docker Compose (For local/testing)
docker-compose.ymlat repository root- Full stack including PostgreSQL and Redis
Quick start and deployment prerequisites
- Node.js 20+, pnpm 9+
- Docker for local orchestration and K8s parity
- Copy
.env.exampleto.envand fill provider keys - Run
pnpm installthenpnpm run devfor local development - For production: Configure environment variables in Vercel dashboard or Kubernetes secrets
๐ Core Components
๐ ๏ธ Azora BuildSpaces
A next-generation virtual development environment that rivals GitHub Codespaces.
- Instant Environments: Spin up full-stack dev environments in seconds.
- Code Chamber: Deeply integrated coding rooms with AI pair programming.
- Elara Integration: Context-aware AI assistance that understands your entire codebase.
๐ Azora Sapiens
An AI-powered university that democratizes access to world-class education.
- Personalized Tutors: AI agents adapt to your learning style.
- Proof-of-Knowledge: Earn verifiable credentials on the blockchain.
- Research Center: Advanced tools for academic inquiry.
๐ป Azora Ascend
A professional-grade Cloud IDE built for the AI era.
- Agentic Workflows: Delegate complex tasks to AI agents.
- Visual Specs: Build software using Spec-Driven Development.
- Real-time Collaboration: Code with your team in the same session.
๐๏ธ Azora Citadel
The governance and economic heart of the ecosystem.
- Constitutional Court: Resolves disputes and ensures AI alignment.
- Citadel Fund: A public goods fund fueled by platform revenue.
- Ubuntu Governance: Community-led decision making.
โก Getting Started
Prerequisites
- Node.js: v20 or higher
- pnpm: v9 or higher (recommended package manager)
- Docker: Required for running local services
Installation
-
Clone the repository:
git clone https://github.com/Azora-OS/azora.git cd azora -
Install dependencies:
# Install pnpm globally if you haven't npm install -g pnpm@9 # Install project dependencies pnpm install --frozen-lockfile -
Set up environment variables: Copy
.env.exampleto.envand configure your keys.cp .env.example .env # For BuildSpaces specifically: cp apps/azora-buildspaces/.env.example apps/azora-buildspaces/.env.local -
Run database migrations (if using PostgreSQL):
npx prisma generate npx prisma migrate dev -
Run the development server:
# Start all apps and services pnpm run dev # Or start only BuildSpaces pnpm run dev --filter=azora-buildspacesAccess BuildSpaces at
http://localhost:3002.
๐ Deployment
Deploy to Vercel (Recommended)
Azora BuildSpaces is optimized for Vercel deployment with zero-configuration setup.
Quick Deploy
Manual Deployment Steps
-
Install Vercel CLI:
npm install -g vercel -
Navigate to BuildSpaces directory:
cd apps/azora-buildspaces -
Deploy to Vercel:
vercel -
Configure Environment Variables in Vercel Dashboard:
DATABASE_URL- PostgreSQL connection stringNEXTAUTH_SECRET- Generate withopenssl rand -base64 32NEXTAUTH_URL- Your production URLOPENAI_API_KEY- OpenAI API key (optional)REDIS_URL- Redis connection string (optional)
See
apps/azora-buildspaces/.env.examplefor complete list. -
Verify Deployment:
# Check health endpoint curl https://your-deployment.vercel.app/api/health
Monorepo Configuration
The BuildSpaces app includes a vercel.json that handles:
- Turborepo build configuration
- Security headers (HSTS, CSP, X-Frame-Options, etc.)
- Health check endpoint routing
- Environment variable management
Deploy with Docker
For self-hosted or Kubernetes deployments:
-
Build Docker Image:
docker build -f apps/azora-buildspaces/Dockerfile -t azora-buildspaces:latest . -
Run Container:
docker run -p 3000:3000 \ -e DATABASE_URL="postgresql://..." \ -e NEXTAUTH_SECRET="your-secret" \ azora-buildspaces:latest -
Or use Docker Compose:
docker-compose up azora-buildspaces
Deploy to Kubernetes
Pre-configured manifests are available in apps/azora-buildspaces/k8s/:
# Apply namespace
kubectl apply -f apps/azora-buildspaces/k8s/buildspaces-namespace.yaml
# Apply secrets (create from your .env first)
kubectl create secret generic buildspaces-secrets \
--from-env-file=apps/azora-buildspaces/.env.production \
-n buildspaces
# Apply deployment
kubectl apply -f apps/azora-buildspaces/k8s/buildspaces-deployment.yaml
# Apply ingress
kubectl apply -f apps/azora-buildspaces/k8s/buildspaces-ingress.yaml
Health Checks & Monitoring
All deployments include:
- Health endpoint:
/api/health- Returns system status - Metrics endpoint:
/api/metrics- Prometheus-compatible metrics - Security headers: Configured in
next.config.mjs - Liveness probe: Docker healthcheck included
- Readiness probe: Database connectivity check
๐ Constitutional AI & Ethics
Azora OS is unique because it is governed by code-enforced laws.
- CONSTITUTION.md: The supreme law of the platform. All code and AI decisions must align with these principles.
- AI_DEV_LAWS.md: The "Twin Pact" governing AI assistants. It mandates Truth over Comfort, Resilience, and the No Mock Protocol.
"Truth is the only currency that matters."
๐ค Contributing
We welcome contributions from the community, provided they align with our Ubuntu Principles.
- Read our Contributing Guidelines.
- Ensure your code adheres to the Constitution.
- Run
npm run testbefore submitting a Pull Request. - Join our Discord to discuss ideas.
๐ License
Azora Proprietary License with Ubuntu Principles (v3.0.0)
- Free for Education & Personal Use: Learn and build for free.
- Free for Community Projects: Open source and non-profit use is encouraged.
- Commercial Use: Requires a license for revenue-generating business operations.
See LICENSE for full details.
Built with โค๏ธ and Ubuntu by Azora ES (Pty) Ltd
Copyright ยฉ 2025 Azora ES (Pty) Ltd. All Rights Reserved.