Shared AI Infrastructure for Control Planes and Products
Shared providers, memory, RAG, discovery, and observability for higher-level AI systems and products
Nexus is the shared infrastructure layer for products that need:
- Multi-model routing - Provider selection, orchestration, and ensemble execution
- Memory and RAG primitives - Shared context, retrieval, and storage services
- Discovery and observability - Resource discovery, monitoring, and health telemetry
- Execution primitives - Reusable APIs, pipelines, and interoperability bridges
Nexus does not own organizational strategy, executive decision-making, or company direction. Those concerns belong in an external control plane of your own.
Nexus should be read as infrastructure, not the boardroom:
- It owns reusable AI services.
- It can publish context, health, and execution primitives.
- It can interoperate with higher-level systems.
- It should not be the final authority on strategy or executive governance.
- Multiple ensemble strategies (voting, weighted, hybrid, adaptive, meta-learning)
- Multi-provider support (OpenAI, Anthropic, and extensible)
- Async execution with intelligent aggregation
- Quality scoring and cost optimization
- Factual and skill memory engines
- Pattern recognition and knowledge validation
- Knowledge expansion with gap detection
- Memory analytics and optimization
- Large context window support via RAG
- Adaptive orchestration and context management
- Learning pathways and domain knowledge base
- Meta-reasoning for self-improvement
- Chain-of-thought reasoning
- Pattern-based inference
- Dynamic adaptive learning
- GitHub, HuggingFace, ArXiv, PyPI integrations
- Local model management (Ollama)
- Web search (DuckDuckGo, Serper, Brave)
- API key authentication with RBAC
- Memory + Redis caching with TTL
- Prometheus metrics and health checks
- Budget management and usage analytics
- Rate limiting and quota management
- Docker and Kubernetes deployment
# Clone the repository
git clone https://github.com/GozerAI/nexus.git
cd Nexus
# Install dependencies
pip install -r requirements.txt
# Install Nexus
pip install -e .# config/default.yaml
ensemble:
strategy: "adaptive"
models:
- provider: "openai"
model: "gpt-4"
weight: 0.5
- provider: "anthropic"
model: "claude-3-opus"
weight: 0.5
memory:
enabled: true
backend: "postgresql"
rag:
enabled: true
vector_store: "faiss"from nexus.core import EnsembleCore
from nexus.core.strategies import AdaptiveStrategy
from nexus.memory import KnowledgeBase
from nexus.rag import RAGVectorEngine
# Initialize ensemble
ensemble = EnsembleCore(
strategy=AdaptiveStrategy(),
config_path="config/default.yaml"
)
# Initialize memory system
knowledge_base = KnowledgeBase()
# Initialize RAG
rag_engine = RAGVectorEngine()
# Query with RAG augmentation
query = "Explain quantum computing"
context = await rag_engine.retrieve_context(query)
response = await ensemble.query(query, context=context)
print(f"Answer: {response.answer}")
print(f"Confidence: {response.confidence}")# Start the Nexus API
nexus-api --config config/default.yaml
# API available at http://localhost:5000# Ensemble inference
curl -X POST http://localhost:5000/api/v1/ensemble/query \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"query": "What is consciousness?",
"strategy": "adaptive",
"use_rag": true
}'
# System health
curl http://localhost:5000/api/v1/health# Build image
docker build -t nexus:latest -f infrastructure/docker/Dockerfile .
# Run container
docker run -p 5000:5000 \
-e OPENAI_API_KEY=your-key \
-e ANTHROPIC_API_KEY=your-key \
nexus:latest# Install Nexus with Helm
helm install nexus infrastructure/helm/nexus/ \
--set api.replicas=3 \
--set redis.enabled=true \
--set postgresql.enabled=true
# Check status
kubectl get pods -l app=nexusNexus is dual-licensed:
-
Open Source: GNU Affero General Public License v3.0
- Free for non-commercial use
- Requires source disclosure for network services
-
Commercial License: For proprietary use without AGPL obligations
- Visit gozerai.com/pricing
- Contact: sales@gozerai.com
- See LICENSING.md for tier details
Some features require a commercial license. Unlicensed usage defaults to the Community tier.
- Shared Infrastructure Role
- Getting Started Guide
- Architecture Overview
- API Reference
- Deployment Guide
- Configuration Reference
- Contributing Guide
We welcome contributions! Please see our Contributing Guide for details.
Important: All contributions require signing our Contributor License Agreement (CLA). This is handled automatically when you submit your first pull request.
# Clone repo
git clone https://github.com/GozerAI/nexus.git
cd Nexus
# Install dev dependencies
pip install -r requirements-dev.txt
# Run tests
pytest tests/ -v
# Run linters
black src/
flake8 src/
mypy src/If you use Nexus in your research, please cite:
@software{nexus2025,
title = {Nexus: Advanced AI Ensemble, Orchestrator \& Consciousness Framework},
author = {Arsenault, Christopher R.},
year = {2025},
url = {https://github.com/GozerAI/nexus}
}- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: chris@gozerai.com
Nexus - Advancing towards sentient AGI
Copyright (c) 2025 Christopher R. Arsenault. All rights reserved.