/1password:1password-environmentsfrom 1Password Developer Tools
Manages secrets in 1Password Developer Environments: import or mount .env files, list/create environments, view/add secrets, store API keys or credentials.
Ships in 1Password Developer Tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Workflow for the 1Password MCP tools bundled with this plugin. Read this skill before calling MCP tools — the MCP server's built-in docs cover tool basics but omit import-and-mount steps. Conceptual background and edge cases: reference.md.
.env mounts are not supported on Windows)1password-mcp MCP config and this skill together)Setup details: reference.md
Detect the platform before any workflow (the session's environment info, C:\ paths,
OS=Windows_NT, etc.). On Windows, local .env mounts and the desktop MCP server are
not supported. Note that WSL reports as Linux and is supported.
Hard stop: do not call create_local_env_file, attempt mounting, or run mount-only
flows. Import is complete after create_environment (or resolve) + append_secrets.
Recommend 1Password CLI environment injection (Load secrets into the environment).
Example to share:
op run --environment=<environmentId> -- <their-start-command>
Use the environmentId from the import response. Apps that read a .env file from disk need
this wrapper.
This section overrides mount steps below on Windows.
Use when the request is open-ended — "how do I set up my environment?", "where do I start?" — rather than naming an operation.
Orient in a sentence or two: secrets live in 1Password, the .env path becomes a
live FIFO that 1Password feeds on demand, and their tooling reads .env as
before. Do not paste the prerequisites list into chat.
Check state before asking anything: authenticate (fastest real prerequisite
check — on failure, fix setup per reference.md → When things
fail), list_environments, then look for a .env with Read or Glob, never
Bash.
Then route:
| State | Go to |
|---|---|
.env with real values | Import from a .env file — the common case |
Only .env.example / .env.template | Import, but ask for values; use the template's keys |
No .env, no Environments | Create new Environment → append_secrets → mount at {workspace_root}/.env |
| Environment exists, no mount | Mount existing Environment |
Ask one question at a time, and only when the answer is not discoverable.
Import / create from .env (including "using values from the project .env"):
append_secretscreate_local_env_file at the source .env absolute path — alwayslist_local_env_filesMounting at the source .env path is mandatory, not optional follow-up. The
only exception is the user explicitly opting out ("without mounting", "do not
mount", "skip the mount"). Never ask "want me to mount?" — just mount.
Stopping after create_environment + append_secrets is incomplete.
list_secrets is not mount verification. Do not report success until the mount
checklist is done.
Mount only: mount exists at the requested path (list_local_env_files).
On Windows, skip mount steps — see Windows above.
create_local_env_file on Windowscreate_local_env_file on import unless the user explicitly opted outcreate_environment when list_environments already shows that name — ask the user first (see Duplicate environment name).env path — once mounted, the path is a live FIFO (named pipe); use list_secrets insteadtest -f, [ -f ], find -type f, test -p, etc.). Use list_local_env_files — it is the only check that reflects both file state and whether the mount is enabled in 1Password. A disabled mount leaves the FIFO on disk, so test -p succeeds even though the mount is off. A failed -f check does not mean the mount is missingTools are namespaced mcp__plugin_1password_1password__<tool> — for example
mcp__plugin_1password_1password__authenticate. Read each tool's schema before
invoking it.
Request params use camelCase (accountId, environmentId); responses may use
snake_case (account_id, environment_id). Pass every required param.
Non-obvious schema details:
create_local_env_file: mountPath must be the absolute path of the source .env file (macOS/Linux)If MCP calls fail with authentication errors, call authenticate, then retry with
the returned account ID (use as accountId in subsequent calls).
After authenticate → list_environments:
environmentName exactly (case-sensitive) to get environmentIdBefore create_environment, call list_environments and check whether the
target environmentName already exists.
If it does, stop and ask the user how they want to proceed. Offer options such as:
create_environment; use its environmentId for later steps (append_secrets, mount, etc.)create_environmentDo not silently choose one of these paths. Do not call create_environment with a
name that already exists unless the user has explicitly chosen a different name.
.env fileDefault path: {workspace_root}/.env unless the user names another path.
.env file with the Read tool to get its keys and values. Strip optional surrounding quotes from values. Pass values to MCP only — never paste secret values into chat.authenticate → accountIdlist_environments — if the target name already exists, follow Duplicate environment name and wait for the user's choice. Otherwise create_environment (new name) or resolve the existing environment per the user's choice.append_secrets with all secrets (see Concealed secrets).env — all platforms, including Windows:
.env is git-tracked, stop and tell the user to delete it and commit that removal (local .env file docs). On macOS/Linux, do not proceed to mount until this is done.list_local_env_files — skip create_local_env_file only if a mount already exists at the source pathcreate_local_env_file with accountId, environmentId, environmentName, mountPath (absolute path of the original .env)list_local_env_files again to verifyCreate new Environment: authenticate → list_environments → if the name exists, follow Duplicate environment name → create_environment only when the name is available or the user chose a different name.
Mount existing Environment: authenticate → resolve environment → steps 5–6 above (step 6 macOS/Linux only).
Inspect names: authenticate → resolve environment → list_secrets → summarize names only.
Rename: authenticate → resolve environment → confirm name → rename_environment.
Add/update secrets: authenticate → resolve environment → list_secrets → append_secrets.
When calling append_secrets, set concealed per secret:
concealed: true for API keys, tokens, passwords, private keys, and connection strings with credentials.concealed: false for ports, public URLs, feature flags, and non-sensitive config unless the user says otherwise.concealed: true.Mount problems, setup: reference.md
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub 1password/1password-claude-plugin --plugin 1passwordOther plugins' skills for the same job