opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: Add Kiro provider for AWS Bedrock Claude models

Open ikeda-tomoya-swx opened this issue 1 day ago • 0 comments

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

ikeda-tomoya-swx avatar Jan 18 '26 00:01 ikeda-tomoya-swx