omp packages

omp-kiro-provider2.0.11

Kiro / Amazon Q provider plugin for oh-my-pi (omp): IAM Identity Center, Builder ID, GitHub and Google OAuth, live model discovery, and streaming inference

GitHub Actions Published 16 days ago MIT ~2.5K downloads/mo

Built for omp

The author tagged this package omp-plugin.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

omp-kiro-provider

npm version npm downloads CI Socket license

Unofficial Kiro provider plugin for oh-my-pi (omp). Use your Kiro / Amazon Q subscription from omp: OAuth login, live model discovery, streaming with thinking and tools, and usage in omp stats.

Not affiliated with Amazon, AWS, or Kiro. You need a Kiro account; check Kiro pricing for what your plan covers.

Install

omp plugin install omp-kiro-provider

Then restart omp (or start a new session) and log in:

/login kiro

If Kiro IDE or kiro-cli is already signed in on this machine, the plugin reuses those credentials and skips the browser flow.

Login methods

/login kiro tries, in order:

  1. Kiro IDE token (~/.aws/sso/cache/kiro-auth-token.json)
  2. kiro-cli local credentials
  3. Interactive device-code login:
    • Enterprise / IAM Identity Center
    • AWS Builder ID
    • GitHub
    • Google

Enterprise IdC tokens are routed to Amazon Q (q.<region>.amazonaws.com). Builder ID / social tokens go to Kiro runtime (runtime.<region>.kiro.dev). The plugin keeps your SSO region (including eu-central-1) instead of rewriting it to us-east-1.

Use a model

/model kiro/auto

The catalog is fetched live from Kiro (ListAvailableModels), so the list matches your account and region. Typical ids look like:

kiro/auto
kiro/claude-sonnet-4.6
kiro/claude-opus-4.8
kiro/claude-haiku-4.5

Thinking / reasoning effort is enabled when Kiro advertises it for that model. Images are accepted when the model lists IMAGE as an input type.

What this plugin does

  • Registers the kiro provider with omp (streamSimple, OAuth, dynamic models).
  • Discovers models per credential instead of shipping a hardcoded allowlist.
  • Streams Kiro's binary event protocol: text, thinking, tool calls, stop reasons.
  • Reports usage to omp stats: estimated tokens when Kiro only sends a context-usage percentage, API-equivalent cost for Claude models from omp's catalog, and Kiro credit limits via GetUsageLimits.
  • Identifies as the current stable Kiro IDE User-Agent (read from Kiro's public metadata, cached 6 hours) so requests are not rejected with “This version of Kiro is no longer supported”. Override with KIRO_IDE_VERSION if needed.

Requirements

  • omp with Bun ≥ 1.3.14
  • A Kiro account (Builder ID, IAM Identity Center, GitHub, or Google)

Peer packages (normally provided by omp):

  • @oh-my-pi/pi-ai
  • @oh-my-pi/pi-catalog
  • @oh-my-pi/pi-coding-agent
  • @oh-my-pi/pi-utils

Update

omp plugin update omp-kiro-provider

Environment

Variable Effect
KIRO_IDE_VERSION Force the Kiro IDE version in the User-Agent
KIRO_CLI_VERSION Same as KIRO_IDE_VERSION (legacy alias)
LOCALAPPDATA Windows only: locate the kiro-cli credential DB

Supply chain

  • Zero production dependencies. Host APIs come from omp peer packages.
  • No install / prepare scripts. Nothing runs on npm install.
  • Published with npm provenance from GitHub Actions (OIDC). The tarball contains runtime src/*.ts only — tests and the lockfile stay in git.
  • Network, filesystem, and env access are listed in SECURITY.md. Short version: the plugin talks only to Kiro/AWS endpoints after you log in, reads existing Kiro IDE / kiro-cli credential files, and writes ~/.config/kiro-provider/auth-meta.json (region/profile, not tokens).

Report vulnerabilities privately: GitHub Security Advisories.

Development

bun test

Publishing to npm is automated: a GitHub Release whose tag matches package.json (for example v2.0.11) runs .github/workflows/publish.yml after CI tests. It uses npm trusted publishing (OIDC), so no token is stored in the repo.

License

MIT