opendevops
Reference

CLI reference

Commands for workspace setup, configuration, chat, grants, audit verification, and version inspection.

CommandPurpose
opendevops init [directory]scaffold configuration and Kubernetes bootstrap files
opendevops chatrun the streaming local REPL
opendevops config checkvalidate runtime-critical configuration
opendevops config grantslist control-plane revision and capability proposals
opendevops config propose-grantpropose a typed, expiring dangerous capability
opendevops config approve-grantapprove a proposal
opendevops config activate-grantactivate an approved proposal
opendevops config revoke-grantimmediately revoke a grant
opendevops audit verify --dir <dir>strictly verify audit chain structure and completion
opendevops audit verify --allow-incompleteinspect structurally valid crashed or active runs
opendevops versionprint the installed version

Capability grants

Grants are typed, expiring authority. They cannot override a policy deny. Full lifecycle and limits: capability grants.

opendevops config propose-grant \
  --environment prod \
  --capability kubernetes_deploy \
  --target kind-prod/web \
  --reason "Deploy reviewed release 2026.07.26"

opendevops config approve-grant <proposal-id> --actor change-approver
opendevops config activate-grant <proposal-id> --actor platform-admin
opendevops config grants
opendevops config revoke-grant <proposal-id> --actor platform-admin
Flag / argDefaultNotes
--capabilityrequiredkubernetes_deploy, github_write, aws_deploy, gcp_deploy, azure_deploy, or ssh_mutation
--targetrequiredrepeatable; explicit only — wildcards (*, all) and duplicates are refused
--reasonrequired8 to 500 characters
--environmentstagingstaging or prod only
--ttl3600seconds; 60 to control_plane.max_grant_ttl_s (default 86400)
--max-executions101 to 100
--actorOS useridentity used for the role check
<proposal-id>positional on approve / activate / revoke

Propose needs operator, approve needs approver, activate and revoke need admin. In production, approval must come from a different identity than the requester.

Chat options

opendevops chat \
  --environment staging \
  --profile interactive \
  --principal operator@example.com

--environment selects the policy overlay. --profile selects stop-losses. --principal attributes daily spend and audit events.

OptionDefaultMeaning
--environmentstagingpolicy environment overlay
--profileinteractiveper-run budget profile
--principalOS useraudit and per-principal daily budget attribution

Inside the REPL:

  • /cost shows current session and day totals;
  • /quit, /exit, or /q exits;
  • Ctrl-C cancels the active run.

If a rule escalates, the REPL renders an approval panel and prompts approve / edit / reject; a non-interactive session auto-rejects. See interfaces.

Scripting guidance

Prefer HTTP or registered scheduler jobs for automation. The interactive CLI is designed for a human-in-the-loop terminal and may add presentation or approval behavior unsuitable for parsing. See interfaces.

On this page