Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Ory CLI

$ ory Official High Risk
Ory · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Ory CLI (ory) manages Ory Network projects, identities, OAuth2 clients, Keto permission models, and local ory tunnel proxies. Rich formatting flags (--format json, jsonpath, yaml), --yes, and --quiet make it highly agent-friendly, though IAM mutations require strict environment scoping.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install ory/tap/cli
CLI vs MCP Decision CLI Preferred vs MCP

Provides native --format json and jsonpath filtering plus ory tunnel for local OAuth/Kratos integration without MCP.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Supports --format json, --format jsonpath field filtering, --yes, and --quiet consistently across Cobra subcommands.

  • --format json|jsonpath|jsonpointer output modes
  • --yes and --quiet non-interactive flags
Trust & Safety 20 / 25

Requires explicit --project targeting and supports scoped project API keys, though write/delete commands lack --dry-run.

  • Explicit --project scoping
  • No --dry-run on resource mutations
Setup & Portability 13 / 15

Single Go binary distributed via Homebrew tap, go install, and GitHub releases across major OSes.

  • brew install ory/tap/cli and cross-platform binaries
Utility & Efficiency 13 / 15

Covers identities, OAuth2, permissions, project configs, and ory tunnel in one binary.

  • Unifies Ory Network API management and local tunneling
Maintenance & Lineage 9 / 10

Official Ory repository (ory/cli) actively maintained under Apache-2.0.

  • Official ory/cli GitHub repository
Docs & Verifiability 8 / 10

Auto-generated CLI reference docs at ory.sh/docs/cli mirror --help flags accurately.

  • Complete CLI command reference on ory.sh/docs/cli

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores Ory Network session credentials in ~/.ory-cloud.json (or --config), and supports ORY_PROJECT_API_KEY / workspace API keys for headless runs.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source CLI; Ory Network provides a free developer tier alongside paid plans.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Ory CLI Agent Rules
- Always pass `--format json --quiet` and target an explicit `--project` ID.
- Never pass `--yes` on `delete` commands or run against production projects without human review.

Agent-Ready Command Recipes

Safe Read-Only Queries

List Ory Network projects in JSON
ory list projects --format json --quiet

Lists accessible Ory projects and IDs in machine-readable JSON.

Inspect project OAuth2 clients
ory list oauth2-clients --project $ORY_PROJECT_ID --format json

Retrieves OAuth2 client metadata for a project without modifying IAM state.

Controlled Writes & Previews

Create a test identity non-interactively
ory create identity --project $ORY_PROJECT_ID --format json --yes identity.json

Creates an identity from a local JSON file with confirmation suppressed via --yes.

Strengths for Agents

  • + Supports --format json and --format jsonpath for low-token field extraction.
  • + Consistent --yes, --quiet, and --project flags across resource subcommands.

Caveats & Pitfalls

  • ! Identity and OAuth2 mutations lack --dry-run previews.
  • ! ory tunnel is a long-running proxy process not suited for one-shot tool calls.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI