Skip to content

bug(kiro): bundled kiro-cli 2.25.0 exhausts codewhisperer monthly quota; 3.5.0 is unaffected #1615

In review

Description

@obrutjack

Description

The kiro image in OpenAB 0.10.x bundles kiro-cli 2.25.0, which authenticates using the codewhisperer:conversations scope (old CodeWhisperer API). This API has a monthly usage limit (500 messages/month on affected plans). Once the quota is exhausted, every agent response returns:

Internal error (code -32603): Encountered an error in the response stream: The monthly usage limit has been reached

Upgrading to kiro-cli 3.5.0 (the latest) resolves the issue: 3.5.0 uses the new Claude-based Kiro API which respects the user's actual plan entitlements (e.g. unlimited usage on AWS Q Developer Builder ID plans). The acp --trust-all-tools subcommand is still present in 3.5.0 (as an unlisted command), so the OpenAB integration remains compatible.

Steps to Reproduce

  1. Deploy OpenAB 0.10.x with the default kiro image (bundles kiro-cli 2.25.0).
  2. Authenticate with an AWS Q Developer account via IAM Identity Center (kiro-cli login --use-device-flow). The resulting token uses scope codewhisperer:conversations.
  3. Use the bot normally. Within a billing period, the monthly CodeWhisperer quota is exhausted.
  4. All subsequent responses from the bot return -32603: The monthly usage limit has been reached.
  5. The same AWS account works fine in Kiro IDE (which uses the new Claude-based API). Only the kiro-cli in the OpenAB pod fails.

Verification of root cause (investigated on 2026-11-22):

# kiro-cli 2.25.0 (bundled) — still fails after re-login
$ kubectl exec deployment/openab-masami-kiro -- kiro-cli chat --no-interactive 'hello'
Error: Internal error (code -32603): The monthly usage limit has been reached

# kiro-cli 3.5.0 (manually installed to PVC) — works immediately
$ kubectl exec deployment/openab-masami-kiro -- /home/agent/.local/bin/kiro-cli chat --no-interactive 'hello'
OK 👌

The auth stored in ~/.local/share/kiro-cli/data.sqlite3 (auth_kv table, kirocli:odic:token key) confirms 2.25.0 binds to the codewhisperer API path; 3.5.0 with a fresh login uses the new Kiro API path.

Expected Behavior

The kiro image should bundle kiro-cli 3.5.0 (or newer) so that users on AWS Q Developer Builder ID plans with unlimited agentic usage are not unexpectedly throttled by the old CodeWhisperer monthly quota.

Environment

  • OpenAB chart: 0.10.1
  • Bundled kiro-cli: 2.25.0 (aarch64 Linux, Debian 13 / trixie)
  • Tested kiro-cli: 3.5.0 (downloaded from https://desktop-release.q.us-east-1.amazonaws.com/latest/kirocli-aarch64-linux.zip)
  • K8s: OrbStack (single-node), arm64
  • Auth: AWS IAM Identity Center (SSO)

Screenshots / Logs

Current workaround (kiro-cli 3.5.0 on PVC, full binary path in config.toml):

# In the pod — download 3.5.0 to PVC (persists across restarts)
curl -sSf 'https://desktop-release.q.us-east-1.amazonaws.com/latest/kirocli-aarch64-linux.zip' -o /tmp/kirocli.zip
unzip /tmp/kirocli.zip -d /tmp/kirocli_new
mkdir -p /home/agent/.local/bin
cp /tmp/kirocli_new/kirocli/bin/kiro-cli /home/agent/.local/bin/kiro-cli
chmod +x /home/agent/.local/bin/kiro-cli
kiro-cli login --use-device-flow   # authenticate with Q Developer account

Then update config.toml to use the full path:

[agent]
command = "/home/agent/.local/bin/kiro-cli"
args = ["acp","--trust-all-tools"]

Note on acp in 3.5.0: The acp subcommand still exists in 3.5.0 but is unlisted in --help. It is confirmed compatible with --trust-all-tools. The existing OpenAB config.toml works as-is once the binary path is updated.

Related: #1607 (kiro-cli v3 engine/workflow support — a separate but related item)

Activity

  1. added
    bug
    on Nov 22, 2026
  2. thepagent commented on Nov 24, 2026

    @thepagent
    Collaborator

    related to #1609

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions