Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
677f443 to
b531012
Compare
c82f0c1 to
483381b
Compare
|
Hello, I was excited to see this PR and immediately tried building it locally.
|
|
@aiml-gmlee I tested a few regions and confirmed that only |
|
good! tests are all passed! |
|
Perfect! Please release ASAP! |
|
It works, but I needed to have a kiro-cli installed. For other providers I believe this is not a requirement. |
|
When can we know when this going to release? I need it badly T_T |
|
By the way when I tried to use this https://www.npmjs.com/package/@zhafron/opencode-kiro-auth with kiro-cli installed, my Kiro account get blocked. Beware of this method seem AWS team acting like claude code, not allow to use Kiro other than their own recognized agentic tools. |
|
This is great work @ikeda-tomoya-swx I have pulled your branch, built from source and I'm currently running this locally until it can hopefully get released. FYI I use AWS SSO/IAM and it's working nicely (I had |
|
@ikeda-tomoya-swx after some time coding, I noticed the auto compacting did not happen (>80% context window). Manually triggering |
|
@ikeda-tomoya-swx getting same issue when compacting |
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
- システムプロンプトのタグをCONTEXT ENTRYからSYSTEM INSTRUCTIONSに変更し、指示として認識されやすくする - ツール呼び出しキャンセル時のエラー判定を修正(会話全体ではなく現在のメッセージで判定)
8b97e9d to
cd7bacb
Compare
|
Tried using https://www.npmjs.com/package/@zhafron/opencode-kiro-auth but no luck, I pulled this branch and worked perfectly. Hoping it get merged asap. thanks! |
Are you me? I went on the exact same journey. Keen for this to get merged please. 🙏🏻 |
I faced everything you did, but I did not find this PR... So I fixed all the errors you were facing with the plugin, if you want to use the plugin with the fixes feel free... PRs are open for it: |
|
I have also pulled this branch and tried the kiro plugin. It works. Looking forward to seeing this merged! Thank you for this very useful contribution! |
|
Thank you very much for this contribution. I hope it gets prioritized and merged soon! |
|
Thank you very much! It works perfectly for me. I hope this gets merged soon! |
|
Kiro-CLI supports ACP now |
|
Anyone keeping tabs on this thread; I have been using https://github.com/jwadow/kiro-gateway with Claude Code to tie me over in the meantime. It fails to auto-compact and tool use (web search) is broken but good enough. @ikeda-tomoya-swx trust you are busy (day job, life etc.) but please let us know if we can help with this PR. Would be great if we can get this over the line. |
|
While we wait for this PR to merge, we can use the Kiro auth plugin. |


Closes #9165
Summary
Add a new provider for Kiro (AWS CodeWhisperer) that enables access to Claude models via AWS Bedrock using Kiro CLI authentication.
Features
kiro-cli loginwhen token is missing or refresh failsSupported Models
claude-sonnet-4-5claude-opus-4-5claude-sonnet-4claude-haiku-4-5claude-3-7-sonnetArchitecture
graph TB subgraph OpenCode A[Session/LLM] --> B[KiroLanguageModel] B --> C[Converters] B --> D[Streaming Parser] end subgraph Authentication E[KiroAuthPlugin] --> F[(Kiro CLI SQLite)] E --> G[AWS SSO OIDC] end subgraph External H[AWS Bedrock API] end B --> E E -->|Bearer Token| H H -->|Event Stream| D C -->|Kiro Payload| HToken Refresh Flow
sequenceDiagram participant OC as OpenCode participant Plugin as KiroAuthPlugin participant DB as SQLite DB participant OIDC as AWS SSO OIDC participant API as AWS Bedrock OC->>Plugin: Request with token Plugin->>DB: Get token DB-->>Plugin: Token (expires_at) alt Token valid (> 5min remaining) Plugin->>API: Request with Bearer token API-->>OC: Response else Token expired or expiring soon Plugin->>OIDC: Refresh token request OIDC-->>Plugin: New access_token (1hr) Plugin->>DB: Save new token Plugin->>API: Request with new Bearer token API-->>OC: Response endToken Management
Automatic Refresh
Token Storage Location
~/Library/Application Support/kiro-cli/data.sqlite3%APPDATA%/kiro-cli/data.sqlite3~/.local/share/kiro-cli/data.sqlite3File Structure
Testing
All 36 tests passing:
Verification
Tested and verified working:
Checklist