-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Krishna Kishor Tirupati edited this page Jun 15, 2026
·
5 revisions
Add deny-by-default policy, PII redaction, tool governance, model routing, evaluation, and audit traces to LLM apps in minutes.
PolicyAware AI Gateway is an open-source governance and control plane for enterprise LLM, RAG, AI agent, and MCP-style tool workflows.
It enforces organizational, security, privacy, compliance, cost, routing, and tool-use policies before requests reach models or tools, then evaluates outputs for safety, quality, compliance, and auditability.
pip install policyawareUpgrade:
pip install --upgrade policyawareOptional ML/provider extras:
pip install "policyaware[presidio]"
pip install "policyaware[ml]"
pip install "policyaware[onnx]"
pip install "policyaware[providers]"from policyaware import Gateway, GatewayRequest
gateway = Gateway.from_policy_file("examples/policies/basic.yaml")
response = gateway.chat(
GatewayRequest(
tenant="acme",
app="claims-assistant",
user={"id": "u_123", "role": "claims_adjuster"},
context={"region": "us", "task_type": "summarization", "risk": "low"},
messages=[{"role": "user", "content": "Summarize claim ACME-42."}],
)
)
print(response.content)
print(response.policy.decision)
print(response.policy.reason_codes)
print(response.trace_id)- Capabilities
- Copy-Paste Examples
- Comparison: PolicyAware vs guardrails vs AI gateway vs model router
- SEO And Distribution
- Ready-To-Use YAML
- Data Protection
- Policy Enforcement
- Gateway Orchestration
- Risk Classification
- Model Routing and Providers
- Tool Governance
- Evaluation
- Audit and Observability
- ML-Assisted Signals
- PolicyAware vs Guardrails vs AI Gateways vs Model Routers
- Build a Policy-Aware AI Gateway in Python
- Stop Shipping AI Features Without Guardrails
Created and maintained by Krishna Kishor Tirupati.
Project links:
- PyPI: https://pypi.org/project/policyaware/
- GitHub: https://github.com/ktirupati/policyaware
- GitHub profile: https://github.com/ktirupati
- GitHub Pages docs: https://ktirupati.github.io/policyaware/
- License: Apache-2.0
- Home
- Capabilities
- Copy-Paste Examples
- Comparison
- SEO And Distribution
- Ready-To-Use YAML
- Data Protection
- Policy Enforcement
- Gateway Orchestration
- Risk Classification
- Model Routing and Providers
- Tool Governance
- Evaluation
- Audit and Observability
- ML-Assisted Signals
- Installation
- Quick Start
- Architecture
- CLI Reference
- ML Integrations
- Provider Adapter Examples
- YAML Policy Templates