Skip to content

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

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

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