A command-line tool for securely managing API keys using 1Password CLI. This tool provides an interactive interface for storing API keys in your 1Password vault.
- Interactive CLI interface using gum
- Secure storage in 1Password
- Vault selection from your available 1Password vaults
- Structured API key storage with title, URL, and key
- AWS access key management with automatic credential verification
- 1Password CLI installed and configured
- devbox for development environment setup
- Clone this repository
- Install devbox if you haven't already:
curl -fsSL https://get.jetpack.io/devbox | bash
- Set up the development environment:
devbox shell
To store a new API key:
just api-key
This will start an interactive process that will:
- Let you select a 1Password vault
- Ask for the API key title
- Ask for the associated URL
- Securely input the API key
- Store the information in your selected 1Password vault
To store a new AWS access key:
just aws-access-key
This will:
- Ask for a descriptive name for the access key
- Securely input the AWS access key ID and secret access key
- Let you select a 1Password vault
- Store the credentials in your selected 1Password vault
- Verify the credentials by making a test API call
This project uses:
- just for command running
- direnv for environment management
- gum for interactive CLI
- 1Password CLI for secure storage
To set up the development environment:
- Install devbox
- Run
devbox shell
to enter the development environment - All required tools will be automatically installed
MIT