Azora OS

January 9, 2026 ยท View on GitHub

Azora OS Banner

The World's First Constitutional AI Operating System

Version License Build Status Constitutional AI Ubuntu Philosophy Discord

"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

  1. Vercel (Recommended for quick deployment)

    • One-click deployment from the Vercel dashboard
    • Automatic CI/CD integration
    • Global CDN and edge network
  2. Kubernetes (For enterprise/self-hosted)

    • Docker images with multi-stage builds
    • K8s manifests in apps/azora-buildspaces/k8s/
    • Helm charts available
  3. Docker Compose (For local/testing)

    • docker-compose.yml at 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.example to .env and fill provider keys
  • Run pnpm install then pnpm run dev for 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

  1. Clone the repository:

    git clone https://github.com/Azora-OS/azora.git
    cd azora
    
  2. Install dependencies:

    # Install pnpm globally if you haven't
    npm install -g pnpm@9
    
    # Install project dependencies
    pnpm install --frozen-lockfile
    
  3. Set up environment variables: Copy .env.example to .env and configure your keys.

    cp .env.example .env
    # For BuildSpaces specifically:
    cp apps/azora-buildspaces/.env.example apps/azora-buildspaces/.env.local
    
  4. Run database migrations (if using PostgreSQL):

    npx prisma generate
    npx prisma migrate dev
    
  5. Run the development server:

    # Start all apps and services
    pnpm run dev
    
    # Or start only BuildSpaces
    pnpm run dev --filter=azora-buildspaces
    

    Access BuildSpaces at http://localhost:3002.

๐Ÿš€ Deployment

Azora BuildSpaces is optimized for Vercel deployment with zero-configuration setup.

Quick Deploy

Deploy with Vercel

Manual Deployment Steps

  1. Install Vercel CLI:

    npm install -g vercel
    
  2. Navigate to BuildSpaces directory:

    cd apps/azora-buildspaces
    
  3. Deploy to Vercel:

    vercel
    
  4. Configure Environment Variables in Vercel Dashboard:

    • DATABASE_URL - PostgreSQL connection string
    • NEXTAUTH_SECRET - Generate with openssl rand -base64 32
    • NEXTAUTH_URL - Your production URL
    • OPENAI_API_KEY - OpenAI API key (optional)
    • REDIS_URL - Redis connection string (optional)

    See apps/azora-buildspaces/.env.example for complete list.

  5. 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:

  1. Build Docker Image:

    docker build -f apps/azora-buildspaces/Dockerfile -t azora-buildspaces:latest .
    
  2. Run Container:

    docker run -p 3000:3000 \
      -e DATABASE_URL="postgresql://..." \
      -e NEXTAUTH_SECRET="your-secret" \
      azora-buildspaces:latest
    
  3. 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.

  1. Read our Contributing Guidelines.
  2. Ensure your code adheres to the Constitution.
  3. Run npm run test before submitting a Pull Request.
  4. 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.