Ory CLI
$ ory Official High RiskOry 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.
brew install ory/tap/cli Provides native --format json and jsonpath filtering plus ory tunnel for local OAuth/Kratos integration without MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --format json, --format jsonpath field filtering, --yes, and --quiet consistently across Cobra subcommands.
--format json|jsonpath|jsonpointeroutput modes--yesand--quietnon-interactive flags
Requires explicit --project targeting and supports scoped project API keys, though write/delete commands lack --dry-run.
- Explicit
--projectscoping - No
--dry-runon resource mutations
Single Go binary distributed via Homebrew tap, go install, and GitHub releases across major OSes.
brew install ory/tap/cliand cross-platform binaries
Covers identities, OAuth2, permissions, project configs, and ory tunnel in one binary.
- Unifies Ory Network API management and local tunneling
Official Ory repository (ory/cli) actively maintained under Apache-2.0.
- Official
ory/cliGitHub repository
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
Stores Ory Network session credentials in ~/.ory-cloud.json (or --config), and supports ORY_PROJECT_API_KEY / workspace API keys for headless runs.
Apache-2.0 open-source CLI; Ory Network provides a free developer tier alongside paid plans.
# 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
ory list projects --format json --quiet
Lists accessible Ory projects and IDs in machine-readable JSON.
ory list oauth2-clients --project $ORY_PROJECT_ID --format json
Retrieves OAuth2 client metadata for a project without modifying IAM state.
Controlled Writes & Previews
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 jsonand--format jsonpathfor low-token field extraction. - + Consistent
--yes,--quiet, and--projectflags across resource subcommands.
Caveats & Pitfalls
- ! Identity and OAuth2 mutations lack
--dry-runpreviews. - !
ory tunnelis a long-running proxy process not suited for one-shot tool calls.