Skip to content
New in 0.18: sealed delivery with no 1Password call at runtime, opv provision

Secrets in 1Password.
Apps that just run.

opv syncs secrets and settings from 1Password into the places your apps run, without ever printing, logging or writing a value. No server, no state, no encryption of its own.

$ npm install -g @matthew-cochran/opv
~/myapp
$ opv propose key api/OPENAI_API_KEY --kind secret --env dev
# the contract diff and a plan id; nothing written

$ opv apply
# you review it once, in your own terminal; the empty field is added

$ opv set api/OPENAI_API_KEY --env dev
# masked prompt; only the key's new value state is printed

$ opv run dev -- npm run dev
# your app, with dev's settings as env vars

$ opv plan prod
plan 412a5b23 (1Password item v7)
$ opv sync prod --deploy --expect-plan 412a5b23
opv bridges secrets from a 1Password vault to local development (shell, IDE, Docker), Fly.io, Azure and an app's own secret store over HTTPS, with AWS and GCP planned. Example command: opv run dev -- npm run dev

How it works

1Password owns the values. Your runtime consumes them. opv connects the two.

Values travel only on stdin to the official op and target CLIs, or to your app: in its environment, or, if you choose, as files in a private, RAM-only directory removed when it exits. They never land in argv, logs, errors, CI output or files on disk.

1Password vault · myapp-prod

  • DATABASE_URL••••••••
  • OPENAI_API_KEY••••••••
  • STRIPE_SECRET_KEY••••••••
  • LOG_LEVEL••••••••
  • Your shell (opv run)
  • Fly.io
  • GitHub Actions
  • Azure Key Vault + Container Apps
  • Kubernetes
  • HTTPS (an app's own secret store)
  1. 01

    Propose

    You or your assistant propose a change: a key, an environment, a target, or the whole setup from a .env's names. A proposal writes nothing and returns the contract diff and a plan id. The contract holds names, kinds and rules, never values.

    opv propose setup --names-from .env
  2. 02

    Apply

    A person runs the plan in their own terminal: vaults, items, empty fields and bindings, after one confirmation. Values go in at a masked prompt (opv set) or by a write-only import, never through a proposal; a file key (file = "<path>") is stored exactly with opv set <KEY> --env <env> --from-file <PATH> in your own terminal, not by pasting a multi-line value into the 1Password app.

    opv apply <plan_id>
  3. 03

    Sync

    CI, or you, delivers exactly the plan reviewed, or nothing. Nothing is deployed without --deploy and nothing is deleted without --prune. Locally, opv run starts your app with the values.

    opv sync prod --deploy --expect-plan <id>
  4. 04

    Gate

    Promotion is a gate: it passes only when every present key is set and delivered at the item version 1Password has now. Every finding names who acts next and the one command to run.

    opv ready prod --gate

Security model

Values stay out of your tooling.

The configuration says where each value lives and the rules it must pass. Only 1Password ever holds a stored value, typed by a person in the 1Password app or at opv's masked prompt. Assistants see value states (set, empty, placeholder, malformed), never a value.

# a failing CLI's stderr, as opv shows it (illustrative)

error: token ******** was rejected

# what a status row looks like

api STRIPE_SECRET_KEY secret saved ••••

The model, and its documented limits, are in the usage guide. Report vulnerabilities privately per SECURITY.md.

  • No command prints a secret

    Values are held in redacting, zeroizing types. --json documents hold names, states and counts only.

  • stdin or your app, nothing else

    Never argv, logs, errors, Debug output or files on disk. opv run passes op:// references, so op run masks values in your app's output; opt-in secret files live only in a private RAM directory.

  • Scrubbed failures

    When a CLI fails, its last few stderr lines are shown with every known value and secret-shaped token masked as ********, and every byte opv writes passes the same scrubbing.

  • Least privilege by default

    Deploy credentials are a least-privilege identity per target. opv access lists who can write each vault and warns when a deployed vault has a single writer; opv doctor warns when this session can read a production vault.

Features

Explicit, never surprising.

No prompts in automation, --json on every reporting command, stable error codes, and every failure ends with one runnable Next: command.

  • Sealed delivery: no 1Password at runtime

    new in 0.18

    A sealed target makes opv sync write one opv-sealed/1 bundle per product at release: age-encrypted to the runtime's recipient and SSH-signed with the target's deploy key, its signer bound to the environment. The runtime runs opv unseal <bundle> --exec -- <command> with no 1Password call, no op and no network, and stock age and ssh-keygen can check each part.

  • Values only the owner can produce

    new in 0.18

    opv provision <set> --env <env> runs a producer you name in the contract (an OAuth consent helper, say) over a private pipe, or builds a matched set from templates, checks every value and writes the set in one checked edit. No value is printed, written to a file or passed in argv; CI and assistants never run it, and an assistant gets only --dry-run.

  • Account choices, never guesses

    new in 0.18

    When several accounts could apply, opv ready, opv account list and the MCP server return a typed choose step, one choice per account, and opv never picks one. opv run checks sign-in before it starts and, at a terminal, signs you in and runs the same command once more; a .opv can name the configuration with config = "<path>".

  • Reviewed operations with the target's own credentials

    opv target op lists a Fly app's Machines, moves one to a new image, and pushes an image to the app's own registry, signed in with that target's deploy credentials only: never your login or an organisation token. Every check runs before 1Password is read, the app is always the target's own, and flyctl starts with a cleared environment.

  • Your app's own secret store

    1Password stays the source of truth while opv delivers to an application's own encrypted store through its admin API. The value goes in exactly one pinned field, the destination needs both a vault write and a reviewed configuration change, and drift is reported like any target.

  • Sign in once per terminal

    With the 1Password desktop app integration, opv reuses the app's unlock across commands and holds nothing itself. Without it (WSL, headless), eval "$(opv login --shell)" hands the session to an opv shell function in that shell only: assistants, scripts and editors started from it never inherit it, and the token never reaches disk, argv or logs. Fish is supported too.

  • config check shows only what changed

    opv config check and opv config edit print the differing lines as unified hunks with three lines of context, instead of every line of both files.

  • Infrastructure values, never stored

    A key declared source = "infrastructure" (a database URL from Terraform) is piped by the deploy job that produced it to opv sync --supply-stdin. opv checks it against the key's rules and delivers it with evidence; it is never written to 1Password, and an assistant cannot supply one.

  • Retire a key, end to end

    opv propose retire marks a key retiring; CI prunes it with opv sync --prune --retire in tier order, never while the deployed code still reads it; a person's opv apply archives its fields. No value is deleted.

  • Same keys in every environment

    A key is present everywhere unless an except says why. opv ready reports an environment_gap where an explicit list leaves one out, and one extend proposal adds the environment to every such key.

  • The inventory, key by key

    opv inventory is the key-by-environment matrix of value states. Each key row also carries its attributes, where it lives in 1Password, its delivery state on each target and its own next step.

  • Code and contract agree

    opv needs scans the code for the names it reads: declared keys with their value state, undeclared ones with a suggested declaration. opv needs --gate fails a pull request that adds an undeclared name.

  • Propose, then apply

    Every configuration change is a proposal (opv propose key, env, target, setup, structure, retire) that writes nothing and returns a diff and a plan id. A person runs opv apply <plan_id> in their own terminal; it refuses CI and agent mode.

  • Five MCP tools, value states only

    opv_state, opv_next, opv_propose, opv_explain and opv_import_local. An assistant inspects and proposes; only opv_import_local writes, and only into a local-tier environment. Each tool has the same command on the CLI. opv mcp install registers the server.

  • One next action

    opv next names the one action this session can take (bind, fill a value, sync), queues the rest, and lists what waits on someone who can write the vault. Every document carries a typed next: kind, actor and command.

  • A gate for promotion

    opv ready --gate fails unless every present key is set and delivered at the item version 1Password has now, so a value typed in 1Password reaches its platform before the environment counts as ready.

  • Values typed by people, only

    opv set enters one value at a masked prompt. opv import writes a .env or a readable target into 1Password and reports imported or skipped per key, never whether a value differs. A key declared with file = "<path>" is stored exactly with opv set <KEY> --env <env> --from-file <PATH> in your terminal, never by pasting a multi-line value into the 1Password app, which turns its line breaks into spaces.

  • Secrets nobody sees

    opv propose generate, applied by a person, puts self-made keys straight into 1Password. opv access --create makes a CI identity and stores its token as a GitHub secret; opv target credentials --create mints a deploy token into 1Password. No token is ever shown or pasted.

  • CI in one command

    opv ci workflow prints a GitHub Actions workflow for one target, with the pull-request checks for needs, contract and ready --gate. Nothing for an assistant to write by hand.

  • Secret files, not .env files

    opv run can hand an app only its declared keys and deliver keys as files in a private, RAM-only directory removed when the app exits. Secret-store apps and Cloudflare Workers need no .env or .dev.vars.

  • Serve and migrate roles

    Keys can be scoped to a process role, so migration-owner credentials never reach the serving process. opv run --preview shows what a run would deliver, and where, without reading a value.

  • Named targets

    One product can run on a shared app and a dedicated overflow app in the same environment, reading the same values. opv propose target adds one, and one plan and one sync cover every target.

  • One vault per product

    Each product's values live in their own vault, so whoever can read one product's production values cannot read another's. Sharing a vault is an explicit, opt-in choice.

  • Evidence per placement

    Each confirmed sync records a revision for each product on each target. opv delivery verify reports every placement, and a stale one never hides another.

  • Who can write what

    opv access lists who can read and write each vault, marks production-tier vaults, and warns when a deployed vault has a single writer. It prints the owner's exact command for a missing grant.

  • Settings health

    Warns about the same secret in two environments, placeholders, very weak secrets, stray whitespace, localhost in a deployed environment, and test or live keys in the wrong place.

  • Typed and checked

    Each key declares its kind, secret or config, and rules such as prefix, base64_bytes, enum and https_url. A bad value fails with the key, the rule and a reason.

  • opv ui

    A terminal UI over every environment, product, key, shared value and account. Secrets show as ••••; every action is the exact opv command, shown before it runs.

  • Safe to re-run

    Reads are retried, writes are checked, and an interrupted run converges when you run it again. Exit 9 means: re-run as is.

opv ui

Everything opv knows, in one screen.

Browse environments, products, keys, shared values and accounts. A sync runs exactly the plan you reviewed; a guarded environment only after you type its name. Every action is the opv command it shows, so proposals still need your opv apply, and sign-in and value entry hand off to 1Password.

  • s sync via plan and --expect-plan
  • i review values to import, key by key · + propose a key, then apply
  • h write history · o open in 1Password · n next step

Without an interactive terminal, or with OPV_UI_TEXT=1 for screen readers, it prints opv ready. More

opv ui · myappaccount: you@example.com

PRODUCT dev staging prod

api 6/6 6/6 5/6 ·1

web 3/3 3/3 3/3

worker 2/2 not here 2/2

NEEDS ATTENTION

prod api/OPENAI_API_KEY missing ••••

Next: opv open api/OPENAI_API_KEY --env prod

s sync · i import · + propose · o open · h history · n next · a accounts · q quit

Targets

Same commands, every target.

Each environment has one or more named targets, and every command is the same for all of them. Local development needs no target at all.

On Azure and Kubernetes a secret is written as a new version, and the app keeps the old one until sync --deploy. Target configuration

TARGETSTATUS
Fly.iosupported
GitHub Actions (repository and environment secrets and variables)supported
Azure Key Vault + Container Appssupported
Kubernetes (Secrets + Deployment)supported
Azure Key Vault → Kubernetes (External Secrets Operator)supported
HTTPS (an application's own secret store)supported
Azure App Serviceplanned
AWS (Secrets Manager + ECS)planned
GCP (Secret Manager + Cloud Run)planned

For AI coding assistants

Your assistant proposes. You apply. It never sees a secret.

The agent skill, versioned with the binary, starts every Claude Code, Codex or Cursor session from opv guide agent, opv schema and opv ready --json. Through five MCP tools an assistant reads value states and prepares proposals; it never applies one. Sign-in, opv apply and every value stay with you, and CI delivers.

  • opv_state, opv_next, opv_explain: read-only documents, the same as the CLI's
  • opv_propose: a contract diff and a plan id; writes nothing
  • opv_import_local: the one writer, into a local-tier environment only
$ opv skill status
$ opv mcp install

Point your assistant at opv.dev/INSTALL.md or the agent setup guide. Install, update, and what the skill, CLI and MCP each do →

$ opv next --json

{
  "next": {
    "kind": "enter_value",
    "actor": "person",
    "command": "opv set api/STRIPE_KEY --env staging"
  },
  "queue": [ … ],
  "waits_on": [ … ]
}

# illustrative excerpt: the assistant runs a next only when

# its actor is "assistant"; a "person" step is handed to you

Install opv

macOS, Linux, WSL and Windows. npm picks the prebuilt binary for your system; the command is opv.

$ npm install -g @matthew-cochran/opv
$ curl -fsSL https://raw.githubusercontent.com/matt-cochran/1password-vault/main/install.sh | sh

The script needs no Node.js, installs to ~/.local/bin without sudo, and verifies the download against the release's SHA256SUMS (and its attestation when gh is present). You also need the 1Password CLI.