kitlangton/2password

1Password for coding agents: find, use, and save secrets without exposing them

What it solves

2password acts as a secure bridge between your coding agents and your 1Password vault. It allows agents to find, manage, and use sensitive credentials without exposing the actual secret values to the agent's logs or history.

How it works

The tool integrates with the 1Password CLI to manage secrets via references (like op://) rather than raw text. You can use it to search for credentials, inject them into environment variables for specific processes, or create new entries. By using a service account, you can grant your agent automated access to a dedicated vault, significantly reducing the number of manual approval prompts required.

Who it’s for

This tool is designed for developers who use AI coding agents and want to manage API keys and passwords securely without compromising their workflow or security posture.

Highlights

  • Reduces approval prompts to one per command or eliminates them entirely via service accounts.
  • Prevents accidental secret exposure by keeping values out of command arguments.
  • Supports secure injection of secrets into environment variables for child processes.
  • Includes built-in safety checks, such as verifying written secrets by reading them back immediately.

Related

  • Project
  • Project
  • Project
  • Project