How policies work
Policy language: Rego
Anti AI uses Rego — the policy language from Open Policy Agent (OPA).stripe:customer:read if the agent is active.”
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How policies control what your agents are allowed to do.
Agent requests: scope="stripe:charge:write"
↓
Anti AI checks: does any policy allow this?
↓
Yes → issue token with that scope
No → deny with 403
package oculus.authz
default allow = false
allow {
input.action == "stripe:customer:read"
input.subject.status == "active"
}
stripe:customer:read if the agent is active.”
stripe:customer:read ← read Stripe customers
stripe:charge:write ← create Stripe charges
github:repo:read ← read GitHub repos
db:read ← read from the database
aws:s3:read ← read from S3