{
  "slug": "op-run-loads-1password-environments-with-environment-9049fcfe80ed",
  "title": "op run loads 1Password Environments with --environment",
  "tools": [
    "op"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-12T00:00:00.000Z",
  "announced_at": "2026-10-12T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a repository script needs secrets from a 1Password Environment, run it with `op run --environment <environment-uuid> -- <script> [args...]` to provide the Environment’s variables for the subprocess. CLI 2.41.0 made this flag generally available; the release notes report network requests reduced from six to four.",
    "examples": [
      "op run --environment <environment-uuid> -- <script> [args...]"
    ],
    "gotchas": [
      "Version: 2.41.0",
      "Availability: generally available",
      "--environment <environment-uuid> (required): Loads variables from a 1Password Environment by ID. Repeatable; if variables collide across Environments, the last specified takes precedence.",
      "<script> [args...] (required): Command and arguments to run in a subprocess with Environment variables available for the subprocess duration.",
      "-- (required): Separates `op run` options from the command to run; shown in the documented syntax and example.",
      "Prerequisite: Sign up for 1Password, install 1Password CLI, and store the needed secrets in your 1Password account.",
      "Prerequisite: Use the Environment ID; the docs describe finding it in the 1Password app under Developer > View Environments > View environment > Manage environment > Copy environment ID."
    ]
  },
  "why_it_matters": "Run a repository script that needs secrets from a 1Password Environment.",
  "sources": [
    "https://app-updates.agilebits.com/product_history/CLI2#v2410001",
    "https://www.1password.dev/cli/reference/commands/run",
    "https://www.1password.dev/cli/secrets-scripts"
  ],
  "rank": 0.98049,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-e9ed614f04e5ec74-0:gate",
    "evidence_hash": "781133be1fad9b597d2dbf61e1983dee7a72dbccf8d0e43c22439aabf0675eff"
  },
  "review": {
    "draft_hash": "5c55b689d75802b2f2ba429f2dbc1f311a636455eea24cf92cdbf302bda22ae2",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-12T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
