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

Open
opened 2026-02-16 18:04:50 -05:00 by yindo · 5 comments
Owner

Originally created by @ikeda-tomoya-swx on GitHub (Jan 17, 2026).

Originally assigned to: @thdxr on GitHub.

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

Originally created by @ikeda-tomoya-swx on GitHub (Jan 17, 2026). Originally assigned to: @thdxr on GitHub. ## 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).
Author
Owner

@gustavonline commented on GitHub (Jan 19, 2026):

Never mind check this out: https://www.npmjs.com/package/@zhafron/opencode-kiro-auth

Love this community published 16 hours ago!

@gustavonline commented on GitHub (Jan 19, 2026): Never mind check this out: https://www.npmjs.com/package/@zhafron/opencode-kiro-auth Love this community published 16 hours ago!
Author
Owner

@fpopa commented on GitHub (Jan 19, 2026):

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

@fpopa commented on GitHub (Jan 19, 2026): 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](https://github.com/fpopa/opencode-kiro-auth/commit/d21eb1f665c696405b1cf8d3dda9c8b489dbc364) for now
Author
Owner

@ikeda-tomoya-swx commented on GitHub (Jan 19, 2026):

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

@ikeda-tomoya-swx commented on GitHub (Jan 19, 2026): 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](https://github.com/anomalyco/opencode/pull/9164)
Author
Owner

@gd03champ commented on GitHub (Feb 6, 2026):

https://github.com/jwadow/kiro-gateway
this supports enterprise auth fyi, if this can help set the plugin

@gd03champ commented on GitHub (Feb 6, 2026): https://github.com/jwadow/kiro-gateway this supports enterprise auth fyi, if this can help set the plugin
Author
Owner

@patrickfeeney03 commented on GitHub (Feb 16, 2026):

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.

@patrickfeeney03 commented on GitHub (Feb 16, 2026): > 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](https://github.com/fpopa/opencode-kiro-auth/commit/d21eb1f665c696405b1cf8d3dda9c8b489dbc364) 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6642