Skip to content

feat: Add Kiro provider for AWS Bedrock Claude models #9165

Closed as not planned

Description

@ikeda-tomoya-swx

Summary

Add support for Kiro (AWS CodeWhisperer) as a new provider, enabling access to Claude models via AWS Bedrock using Kiro CLI authentication.

Motivation

Kiro CLI provides a convenient way to access Claude models through AWS Bedrock without requiring direct AWS credentials configuration. This provider would allow opencode users who have Kiro CLI installed to use Claude models seamlessly.

Proposed Solution

  • Add a new provider kiro with full LanguageModelV2 SDK implementation
  • Use plugin-based authentication that reads tokens from Kiro CLI's SQLite database
  • Support streaming responses via AWS Event Stream parsing
  • Include support for extended thinking mode

Models to Support

  • claude-sonnet-4-5
  • claude-opus-4-5
  • claude-sonnet-4
  • claude-haiku-4-5
  • claude-3-7-sonnet

Additional Context

Kiro CLI stores OAuth tokens in ~/.local/share/kiro-cli/data.sqlite3 (Linux/macOS) or %APPDATA%/kiro-cli/data.sqlite3 (Windows).

Activity

  1. gustavonline commented on Jan 19, 2026

    @gustavonline
  2. fpopa commented on Jan 19, 2026

    @fpopa

    I believe this doesn't support the enterprise kiro plans?

    I've got a kiro pro subscription, I think the plugin doesn't work with the paid plans?


    Mainly want to do that so that I can leverage opus instead of sonnet, tried changing the configs and mappings but can't get past this yet:

    Error: Unsupported model: claude-opus-4-5. Supported models: claude-haiku-4-5, claude-sonnet-4-5, claude-sonnet-4-5-thinking, claude-sonnet-4-5-20250929, claude-sonnet-4-20250514, claude-3-7-sonnet-20250219


    Ended up forking the repo and piggy-backing on the kiro-ide tokens for now

  3. ikeda-tomoya-swx commented on Jan 20, 2026

    @ikeda-tomoya-swx
    ContributorAuthor

    Thank you for sharing the plugin. As you mentioned, it does seem that Opus is not supported at the moment. I understand the current limitation, but I would also like to be able to use Opus.

    @thdxr
    This implementation is based on authentication via the Kiro client (Kiro CLI), where OAuth tokens are stored in a local SQLite database. With this approach, supporting the use of Opus is possible.
    Would you be willing to reconsider merging this implementation?
    feat: add Kiro provider #9164

  4. gd03champ commented on Feb 6, 2026

    @gd03champ
  5. patrickfeeney03 commented on Feb 16, 2026

    @patrickfeeney03

    I believe this doesn't support the enterprise kiro plans?

    I've got a kiro pro subscription, I think the plugin doesn't work with the paid plans?

    Mainly want to do that so that I can leverage opus instead of sonnet, tried changing the configs and mappings but can't get past this yet:

    Error: Unsupported model: claude-opus-4-5. Supported models: claude-haiku-4-5, claude-sonnet-4-5, claude-sonnet-4-5-thinking, claude-sonnet-4-5-20250929, claude-sonnet-4-20250514, claude-3-7-sonnet-20250219

    Ended up forking the repo and piggy-backing on the kiro-ide tokens for now

    Hello @fpopa whats your current setup for kiro in opencode if you're still using it. I would like to set mine up too.

  6. ricardoraposo commented on Feb 26, 2026

    @ricardoraposo

    For the love of god can somebody please add this functionality

  7. github-actions commented on Apr 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  8. vkpdeveloper commented on May 19, 2026

    @vkpdeveloper

    that plugin does not work anymore

  9. toandev95 commented on Jun 12, 2026

    @toandev95

    anyone who can use kiro-cli can try my approach
    opencode-kiro-auth

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions