Skip to content

Add Cline shell plugin#611

Merged
scottisloud merged 1 commit into
1Password:mainfrom
eddumelendez:cline-support
Jun 19, 2026
Merged

Add Cline shell plugin#611
scottisloud merged 1 commit into
1Password:mainfrom
eddumelendez:cline-support

Conversation

@eddumelendez

@eddumelendez eddumelendez commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Overview

Adds a new Cline shell plugin for the cline CLI.

The plugin provisions an auth token through CLINE_API_KEY. It also supports importing an existing token from CLINE_API_KEY.

Type of change

  • Created a new plugin
  • Improved an existing plugin
  • Fixed a bug in an existing plugin
  • Improved contributor utilities or experience

Related Issue(s)

N/A

How To Test

Run plugin validation:

make cline/validate

Run the Cline plugin tests:

go test ./plugins/cline

Example 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.

Copilot AI review requested due to automatic review settings June 18, 2026 03:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 cline plugin entry point (New()) with platform metadata and wiring for credentials/executables.
  • Defines the cline executable 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 scottisloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Thanks for the clean, well-tested contribution, @eddumelendez. Look out for it in a future release of the 1Password CLI

@scottisloud scottisloud merged commit 3425401 into 1Password:main Jun 19, 2026
3 checks passed
@eddumelendez eddumelendez deleted the cline-support branch June 19, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants