You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

pi-provider-kiro

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pi-provider-kiro

pi extension for Kiro API (AWS CodeWhisperer/Q) — 17 models across 7 families with OAuth authentication

latest
Source
npmnpm
Version
0.4.2
Version published
Weekly downloads
134
123.33%
Maintainers
1
Weekly downloads
 
Created
Source

pi-provider-kiro

A pi provider extension that connects pi to the Kiro API (AWS CodeWhisperer/Q), giving you access to 17 models through a single provider.

Models

FamilyModelsContextReasoning
Claude Opus 4.6opus-4-6, opus-4-6-1m200K / 1M
Claude Sonnet 4.6sonnet-4-6, sonnet-4-6-1m200K / 1M
Claude Opus 4.5opus-4-5200K
Claude Sonnet 4.5sonnet-4-5, sonnet-4-5-1m200K / 1M
Claude Sonnet 4sonnet-4200K
Claude Haiku 4.5haiku-4-5200K
DeepSeek 3.2deepseek-3-2128K
Kimi K2.5kimi-k2-5200K
MiniMax M2.1minimax-m2-1128K
GLM 4.7glm-4-7, glm-4-7-flash128K✓ / ✗
Qwen3 Coderqwen3-coder-next, qwen3-coder-480b128K
AGI Novaagi-nova-beta-1m1M

All models are free to use through Kiro.

Setup

Install the provider:

pi install npm:pi-provider-kiro

Or install via npm directly:

npm install -g pi-provider-kiro

Then log in:

/login kiro

This opens a browser for authentication. You can choose from:

  • AWS Builder ID — Native device code flow (works in SSH/remote environments)
  • Google — Social login (requires local browser or SSH port forwarding)
  • GitHub — Social login (requires local browser or SSH port forwarding)

If you have kiro-cli installed and already logged in, credentials are picked up automatically — no second login needed.

Usage

Once logged in, select any Kiro model in pi:

/model claude-sonnet-4-6

Reasoning is automatically enabled for supported models. Use /reasoning to adjust the thinking budget.

Retry Behavior

Generic transient retries such as HTTP 429 and 5xx are handled by pi-coding-agent at the session layer.

This provider only keeps local recovery for Kiro-specific cases:

  • 403 auth races, where it can refresh credentials from kiro-cli
  • first-token / stalled-stream recovery
  • empty-stream retries
  • non-retryable Kiro body markers like MONTHLY_REQUEST_COUNT and INSUFFICIENT_MODEL_CAPACITY

Development

npm run build       # Compile TypeScript
npm run check       # Type check (no emit)
npm test            # Run all 248 tests
npm run test:watch  # Watch mode

Architecture

The extension is organized as one feature per file:

src/
├── index.ts            # Extension registration
├── models.ts           # 17 model definitions + ID resolution
├── oauth.ts            # Multi-provider auth (Builder ID / Google / GitHub)
├── kiro-cli.ts         # kiro-cli credential sharing
├── transform.ts        # Message format conversion
├── history.ts          # Conversation history management
├── thinking-parser.ts  # Streaming <thinking> tag parser
├── event-parser.ts     # Kiro stream event parser
└── stream.ts           # Main streaming orchestrator

See AGENTS.md for detailed development guidance and .agents/summary/ for full architecture documentation.

License

MIT

Keywords

pi

FAQs

Package last updated on 20 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts