Add Cline shell plugin#611
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new 1Password Shell Plugin for the cline CLI to provision/import authentication via the CLINE_API_KEY environment variable, following the existing plugin patterns in this repository.
Changes:
- Introduces the
clineplugin entry point (New()) with platform metadata and wiring for credentials/executables. - Defines the
clineexecutable configuration and when authentication is required. - Adds an API key credential type with env-var provision/import support plus unit tests.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| plugins/cline/plugin.go | Declares the cline plugin with platform info, credential(s), and executable(s). |
| plugins/cline/cline.go | Defines the cline executable and its NeedsAuth rules and credential usage. |
| plugins/cline/api_key.go | Adds APIKey credential type using CLINE_API_KEY for provisioning/importing. |
| plugins/cline/api_key_test.go | Tests env-var provisioning and importing behavior for CLINE_API_KEY. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
scottisloud
approved these changes
Jun 19, 2026
scottisloud
left a comment
Contributor
There was a problem hiding this comment.
Approved. Thanks for the clean, well-tested contribution, @eddumelendez. Look out for it in a future release of the 1Password CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Adds a new Cline shell plugin for the
clineCLI.The plugin provisions an auth token through
CLINE_API_KEY. It also supports importing an existing token fromCLINE_API_KEY.Type of change
Related Issue(s)
N/A
How To Test
Run plugin validation:
Run the Cline plugin tests:
go test ./plugins/clineExample authenticated command for functional testing:
cline "explain this repo"Changelog
Authenticate the Cline CLI using Touch ID and other unlock options with 1Password Shell Plugins.