Seamless authentication for every tool in your terminal.
See the code
No more plaintext credentials in your home directory. Automatically authenticate every CLI you use with 1Password CLI + Shell Plugins. Approve temporary credential usage in your terminal with biometrics.
By accessing or using 1Password Developer Tools, you agree to the API and SDK Terms of Service.
Is your favorite CLI not listed yet? Learn how to build a new plugin yourself and then open a PR on this repository to get it included in the 1Password CLI!
For the contribution guidelines, see CONTRIBUTING.md.
Quick start: clone or fork this repo and run
make new-plugin
Still not sure where or how to begin? We're happy to help! You can:
By default, op plugin init writes its configuration to ~/.config/op/plugins.sh
and manages that file for you. If you'd rather keep your plugin configuration in
your own dotfiles (for example, tracked in version control), you can define the
shell functions yourself and source them in your shell's configuration file.
Shell functions for each shell should follow this pattern. In this case,
gh() {
op plugin run -- gh "$@"
}
function gh --wraps gh --description "1Password shell plugin for GitHub CLI"
op plugin run -- gh $argv
end
op your plugins are already configuredSet OP_PLUGIN_ALIASES_SOURCED=1 so 1Password CLI knows the shell plugins have
already been set up:
export OP_PLUGIN_ALIASES_SOURCED="1"
set -x OP_PLUGIN_ALIASES_SOURCED 1
Note:
op plugin init <plugin>edits~/.config/op/plugins.shdirectly and won't update your own dotfiles, so configure plugins manually as shown above.
3,144 followers · starred Dec 2022
414 followers · starred Dec 2022
228 followers · starred Jul 2026
739 followers · starred May 2024
Seamless authentication for every tool in your terminal.
See the code
No more plaintext credentials in your home directory. Automatically authenticate every CLI you use with 1Password CLI + Shell Plugins. Approve temporary credential usage in your terminal with biometrics.
By accessing or using 1Password Developer Tools, you agree to the API and SDK Terms of Service.
Is your favorite CLI not listed yet? Learn how to build a new plugin yourself and then open a PR on this repository to get it included in the 1Password CLI!
For the contribution guidelines, see CONTRIBUTING.md.
Quick start: clone or fork this repo and run
make new-plugin
Still not sure where or how to begin? We're happy to help! You can:
By default, op plugin init writes its configuration to ~/.config/op/plugins.sh
and manages that file for you. If you'd rather keep your plugin configuration in
your own dotfiles (for example, tracked in version control), you can define the
shell functions yourself and source them in your shell's configuration file.
Shell functions for each shell should follow this pattern. In this case,
gh() {
op plugin run -- gh "$@"
}
function gh --wraps gh --description "1Password shell plugin for GitHub CLI"
op plugin run -- gh $argv
end
op your plugins are already configuredSet OP_PLUGIN_ALIASES_SOURCED=1 so 1Password CLI knows the shell plugins have
already been set up:
export OP_PLUGIN_ALIASES_SOURCED="1"
set -x OP_PLUGIN_ALIASES_SOURCED 1
Note:
op plugin init <plugin>edits~/.config/op/plugins.shdirectly and won't update your own dotfiles, so configure plugins manually as shown above.
3,144 followers · starred Dec 2022
414 followers · starred Dec 2022
228 followers · starred Jul 2026
739 followers · starred May 2024