Skip to content

Add Kiro shell plugin#605

Open
eddumelendez wants to merge 1 commit into
1Password:mainfrom
eddumelendez:kiro-support
Open

Add Kiro shell plugin#605
eddumelendez wants to merge 1 commit into
1Password:mainfrom
eddumelendez:kiro-support

Conversation

@eddumelendez
Copy link
Copy Markdown

@eddumelendez eddumelendez commented May 29, 2026

Overview

Adds a new Kiro shell plugin for authenticating the Kiro CLI with a Kiro API key. The plugin provisions and imports the documented KIRO_API_KEY environment variable for kiro-cli.

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

To test authentication manually after initializing the plugin:

kiro-cli whoami

Changelog

Authenticate the Kiro CLI with API keys using 1Password Shell Plugins.

Signed-off-by: Eddú Meléndez <eddu.melendez@gmail.com>
Copilot AI review requested due to automatic review settings May 29, 2026 05:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds initial 1Password shell plugin support for the Kiro CLI, including API key credential wiring and corresponding provision/import coverage.

Changes:

  • Introduces new kiro plugin entrypoint with platform metadata and wiring for credentials/executables.
  • Adds KIRO_API_KEY credential type with env var provisioner and env var importer.
  • Adds tests covering API key provisioning and importing behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
plugins/kiro/plugin.go Defines the Kiro plugin metadata and registers credential + executable.
plugins/kiro/kiro.go Declares the Kiro CLI executable schema and its credential usage.
plugins/kiro/api_key.go Implements the API key credential, docs/management links, and env var mapping.
plugins/kiro/api_key_test.go Adds tests for provisioning/importing KIRO_API_KEY.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plugins/kiro/api_key.go
Comment on lines +22 to +29
Composition: &schema.ValueComposition{
Prefix: "ksk_",
Charset: schema.Charset{
Uppercase: true,
Lowercase: true,
Digits: true,
},
},
Comment thread plugins/kiro/plugin.go
Comment on lines +8 to +22
func New() schema.Plugin {
return schema.Plugin{
Name: "kiro",
Platform: schema.PlatformInfo{
Name: "Kiro",
Homepage: sdk.URL("https://kiro.dev"),
},
Credentials: []schema.CredentialType{
APIKey(),
},
Executables: []schema.Executable{
KiroCLI(),
},
}
}
Comment thread plugins/kiro/kiro.go
Comment on lines +10 to +22
func KiroCLI() schema.Executable {
return schema.Executable{
Name: "Kiro CLI",
Runs: []string{"kiro-cli"},
DocsURL: sdk.URL("https://kiro.dev/docs/cli/"),
NeedsAuth: needsauth.NotForHelpOrVersion(),
Uses: []schema.CredentialUsage{
{
Name: credname.APIKey,
},
},
}
}
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.

2 participants