sync_env_from_1password

sync_env_from_1password is a command for Claude Code, Cursor from markmhendrickson/neotoma. It costs 0 tokens per session (2,237 once invoked), scanned A, original, MIT.

A command that retrieves selected secrets from 1Password, a password manager, and writes them to a local .env configuration file.

In plain words
What is it for?
Setting up or refreshing development and production environment variables from 1Password.
Why use it?
It avoids manually copying environment settings and preserves a backup while keeping unrelated variables intact.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is elif [ -f "../foundation/scripts/op_sync_env_from_1password.py" ]; then.

Good fit Setting up or refreshing development and production environment variables from 1Password.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/markmhendrickson/neotoma
agentmods
npx agentmods add commands/markmhendrickson/neotoma/sync_env_from_1password

Made for: Claude Code, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync_env_from_1password

README.md
[![agentmods](https://agentmods.dev/badge/commands/markmhendrickson/neotoma/sync_env_from_1password/github.svg)](https://agentmods.dev/commands/markmhendrickson/neotoma/sync_env_from_1password)
Your own site
<a href="https://agentmods.dev/commands/markmhendrickson/neotoma/sync_env_from_1password"><img src="https://agentmods.dev/badge/commands/markmhendrickson/neotoma/sync_env_from_1password/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync_env_from_1password

Your own site · 80×15
<a href="https://agentmods.dev/commands/markmhendrickson/neotoma/sync_env_from_1password"><img src="https://agentmods.dev/badge/commands/markmhendrickson/neotoma/sync_env_from_1password.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,237 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02237
Opus 5.5 $0.00000 $0.00895
Sonnet 5.5 $0.00000 $0.00447
Haiku 4.5 $0.00000 $0.00224

Measured 2mo ago against content hash ecbcfeb31c1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sync_env_from_1password scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/commands/sync_env_from_1password.md · 322 lines

How it starts

The opening of the file, as written. The whole thing — 322 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sync Environment Variables from 1Password

Syncs selected environment variables from 1Password into a local .env file.

Command

sync_env_from_1password

or

sync env from 1password

Purpose

This command executes the 1Password environment sync script, which:

  1. Reads environment variable mappings from parquet file via MCP server (or direct parquet read as fallback)
  2. Uses 1Password CLI (op) to resolve each secret value
  3. Updates the .env file with resolved values from 1Password
  4. Creates a timestamped backup before modification
  5. Preserves unmanaged variables (variables not in 1Password mappings)
  6. Supports exclusion lists via configuration

Script Location:

  • scripts/op_sync_env_from_1password.py - Wrapper script (delegates to foundation)
  • foundation/scripts/op_sync_env_from_1password.py - Foundation script (generalized, repository-agnostic)

When to Use

  • After setting up a new repository or environment
  • When environment variables need to be refreshed from 1Password
  • After updating environment variable mappings in the parquet file
  • When switching between environments (development/production)
  • When .env file is missing or needs to be regenerated

Execution Instructions

Step 1: Verify Prerequisites

Check 1Password CLI authentication:

  • Ensure op CLI is installed
  • Verify you're signed in: op whoami should succeed
  • If not authenticated, sign in: eval $(op signin) or op signin

Check Python environment:

  • Ensure Python 3.9+ is available
  • Verify required packages: pandas, pyarrow (for fallback), mcp (for primary method)
  • Install if needed: pip install pandas pyarrow mcp

Read the full file on GitHub · 322 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 322 lines · 0 tokens per session scan A ecbcfeb31c1e

Subscribe to this mod's changes

sync_env_from_1password is a command published in the GitHub repository markmhendrickson/neotoma (37 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,237 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

sync_env_from_1password compared with commands from other repositories

sync_env_from_1password next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sync_env_from_1passwordmarkmhendrickson/neotomaCommand37yesterdayMITA0Claude Code, Cursor
deploybutterbase-ai/butterbase-skillsCommand5361mo agoMITA20Claude Code
lb-createTheLobbi/Claude-mCommand202mo agononeA19Claude Code
setupzircote/terraform-lspCommand228d agoMITD0Claude Code
cost-optimizeMartinUpgrade/r12-vincenthopf-my-claude-code-devopsCommand507mo agononeA0Claude Code
terraform-scaffoldcentiofficermultiply/r17-behisecc-awesome-claude-skills-devopsCommand437mo agononeA0Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code