Oloyid Guardrails Documentation
Enterprise AI guardrails middleware that sits between your applications and LLM providers. Enforce policies, scan for sensitive data, route models, and maintain audit trails — all through a unified API and admin portal.
Architecture
Understand the request lifecycle, pipeline stages, and system components.
View architecture →Guardrails & Policies
Input, runtime, and output guardrails plus YAML policy engine.
Learn guardrails →API Reference
REST endpoints for auth, inference, HealthShield, FinanceShield, and more.
Browse API →What is Oloyid?
Oloyid is an open-source AI guardrails platform designed for production workloads. Every inference request flows through a deterministic pipeline: authentication, input guardrails, policy evaluation, model routing, LLM proxying, runtime guardrails, and output guardrails — with short-circuit on violation and full audit logging.
Key Capabilities
| Capability | Description |
|---|---|
| Multi-phase guardrails | Input, runtime, and output scanning with configurable actions (block, flag, redact) |
| Policy engine | YAML-based policies with OPA-like symbolic rules and tenant policy chains |
| Industry packs | HealthShield (HIPAA/PHI) and FinanceShield for regulated data protection |
| Model routing | Route requests to OpenAI, Anthropic, Azure OpenAI, or local SLMs based on rules |
| Audit & compliance | Immutable audit logs, consent tracking, and human approval workflows |
| Admin portal | React/MUI dashboard for policies, guardrails, models, and approvals |
Technology Stack
- API — FastAPI (Python 3.11+), async SQLAlchemy, Alembic migrations
- Admin Portal — React 18, TypeScript, Material UI
- Data — PostgreSQL 15, Redis 7
- Infrastructure — Docker Compose for local dev and MVP deployment
Live API docs: When running locally, interactive Swagger UI is available at http://localhost:8000/docs and ReDoc at http://localhost:8000/redoc.
Default Access Points
| Service | URL |
|---|---|
| Admin Portal | http://localhost:3000 |
| API (Swagger) | http://localhost:8000/docs |
| API Base | http://localhost:8000/api/v1 |
| Health Check | http://localhost:8000/health |