Team permissions.
Give every member and API key the access its job needs, and no more.Permissions are enabled per organization while they roll out. Contact us to turn them on.
- Six built-in roles
- Cedar policies
- 365-day audit log
forbid (
principal is OpenRelay::ApiKey,
action,
resource in OpenRelay::Org::"<orgId>"
)
unless { context.sourceIp.isInRange(ip("10.8.0.0/16")) };Six roles, or your own.
Custom roles carry the permissions you choose, limited to chosen models and networks.
| Role | Inference | Compute | Members | Billing | Roles and guardrails | Cedar policies |
|---|---|---|---|---|---|---|
| Owner | Use | Write | Write | Write | Write | Write |
| Admin | Use | Write | Write | Write | Write | No |
| Member | Use | Write | Read | Read | No | No |
| Billing | No | Read | Read | Write | No | No |
| Inference | Use | No | No | Read | No | No |
| Viewer | No | Read | Read | Read | No | No |
No key gets more than its creator holds.
Limit a key to chosen permissions, models, dedicated endpoints and IP ranges, with an expiry.
Creating a key needs a signed-in session, so a leaked key cannot mint a replacement.
$ curl -i -X POST https://api.openrelay.inc/v1/orgs/$ORG/api-keys/create \ -H "Authorization: Bearer $SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "deploy-bot", "template": "compute_automation"}' HTTP/1.1 403 Forbidden { "error": "You cannot grant Compute: Write: your own access does not include it.", "code": "ESCALATION_REFUSED", "permission": "compute.write" }
Guardrails for the whole organization.
A guardrail that would lock you out of managing members or policies is refused before it is saved.
| Guardrail | Effect |
|---|---|
| key_networks | API keys work only from these networks |
| everyone_networks | Sessions and keys work only from these networks |
| model_allowlist | Inference runs only on these models and endpoints |
| Maximum key lifetime | Every new key expires within this many days |
Write the rules yourself.
Owners write permit and forbid rules in Cedar, validated before they are saved. No policy reaches another organization.
forbid (
principal in OpenRelay::User::"<userId>",
action,
resource in OpenRelay::Org::"<orgId>"
)
when { context.now > datetime("2026-12-31T00:00:00Z") };Every decision explained.
The access checker names the rule behind any allow or deny. Changes to keys, members, roles and policies stay in the audit log for 365 days.
$ curl -i -X POST https://api.openrelay.inc/v1/authz/check \ -H "Authorization: Bearer $SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{"principalType": "api_key", "principalId": "<keyId>", "action": "compute.create"}' HTTP/1.1 200 OK { "allow": false, "deniedBy": "key", "policies": [{ "id": "key:<keyId>:permissions", "source": "key_restriction" }] }
The detail.
Built-in roles, in full
- Owner: everything, including deleting the organization, writing Cedar policies and granting Owner.
- Admin: everything except deleting the organization, writing Cedar policies, and granting or removing Owner.
- Member: runs inference, batches, VMs, Pods, clusters and runners, and creates keys. Cannot manage billing, members, roles or policies, or transfer VMs.
- Billing: manages cards, deposits and auto-recharge, and reads compute, members and the organization. Cannot run workloads, call inference or create keys.
- Inference: calls models, runs batches and creates keys. Cannot launch GPUs, clusters or Pods.
- Viewer: reads compute, clusters, batches, keys, members, billing and the organization. Cannot change anything, call inference or create keys.
Only an owner grants, changes or removes the Owner role.
Keys created before permissions
Keys created before permissions keep their old scopes, and one with no restrictions is not held to network rules at a VM or Pod endpoint. Restrict or replace those keys before you rely on network rules.
When a change takes effect
On the next request in most cases. If a cache could not be cleared, an organization change can take up to 30 seconds and a key change up to 60.