Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
CLICommands

orl authz policy create

Create a guardrail or a custom Cedar policy (needs `orl auth login`), part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing.

orl authz policy create --kind <kind> --name <name>

Saves a guardrail (key networks, everyone networks or a model allowlist) or a custom Cedar policy and returns it, enabled unless you send enabled: false. Requires a signed-in session. Guardrails that apply to API keys only need guardrail.manage; the everyone_networks guardrail and every custom policy can block sessions and need policy.manage (owners). A policy that would take policy.manage or member.manage from the saving owner is refused with 409 WOULD_LOCK_OUT.

Flags

FlagTypeRequired
--cedar-textstringno
--descriptionstringno
--enabledboolnoDefaults to true.
--endpoints[]stringno
--guardrailkey_networks, everyone_networks, model_allowlistno
--ip-ranges[]stringno
--kindguardrail, customyes
--models[]stringno
--namestringyes
--bodystringnoa JSON object of request body fields, merged under any of this command's own flags that are also set, e.g. {"key":"value"}
--body-filestringnoread the --body JSON object from a file (- for stdin)

This wraps the createPolicy API operation.

On this page