npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@clawdbuilder/jig-bedrock

v0.7.1

Published

Claude and other Bedrock models in Pi, signed in with your AWS profile: finds your models, keeps the prompt cache, renews SSO, shows spend.

Readme

jig-bedrock

Claude and other Bedrock models in Pi, signed in with your AWS profile.

Pi sends a request to jig-bedrock, which signs it for Amazon Bedrock. jig-bedrock finds your models, renews an expired SSO sign-in, keeps the prompt cache and shows spend in the footer.

jig-bedrock between Pi and Bedrock: models, routes, sign-in, spend.

Why use it

  • After a tool loads: 275 tokens written to the cache, not 34,463.
  • Lists your account's Claude models; your team's application inference profiles may hold other models too.
  • An expired SSO sign-in renews; the request is sent once more.
  • Spend and budget in the footer.

Bar chart: after a tool loads, jig-bedrock writes 275 tokens to the cache and Pi built-in writes 34,463. Session cost is $0.0051 against $0.0099.

Measured on AWS on 2026-11-10: Claude Haiku 5.5, a prompt of about 34,000 tokens. Cache details.

Set up

Four setup steps — install, sign in, pick a model, check — end at a green Ready check.

Four steps; settings in Settings, checks in Commands.

You need: Node 22.19+, Pi 1.5 or later, AWS CLI v2, an AWS profile that can call Bedrock.

1. Install

pi install npm:@clawdbuilder/jig-bedrock

Using Jig? jig install npm:@clawdbuilder/jig-bedrock; then use jig wherever these steps say pi.

Done when pi list or jig list shows npm:@clawdbuilder/jig-bedrock.

2. Sign in

Run /login; choose Sign in with an API key, then Amazon Bedrock (jig-bedrock); it asks for no key.

How do you sign in to AWS?
→ An AWS profile that already works
  Create an IAM Identity Center (SSO) profile
  Create an IAM role profile
  Use the AWS credential chain (no profile)
  Use a Bedrock API key with Pi's own provider
Which AWS profile should Bedrock use?
→ my-profile
Which inference profiles should Bedrock list?
→ All AWS-defined Claude inference profiles
AWS regions for discovery (comma separated)
> us-east-1

Choose All AWS-defined Claude inference profiles for shared profiles, Inference profiles with a tag I name for team-tagged application inference profiles (admin: key and value), or Inference profiles I list by ARN or id for known ARNs.

Bedrock models loaded: 31. Choose one with /model.

Pi then says in red that no default model is configured; step 3 picks one.

Done when the last line is Bedrock models loaded: with a number above 0.

3. Pick a model

Run /model, type sonnet-5-5, then Enter uses it for this session; Ctrl+S also keeps it as the default for every start.

> sonnet-5-5
→ claude-sonnet-5-5-global [jig-bedrock]
  claude-sonnet-5-5 [jig-bedrock]
  Model Name: Claude Sonnet 5.5 · global

A -global id lets AWS serve the request from any region; same model, same price (Model ids).

Done when the footer shows the chosen id and Nov $0.00.

4. Check

/bedrock doctor call

This sends one tiny request (a fraction of a cent).

Bedrock doctor
✓ Node 26.13.0
✓ AWS CLI 2.34.46
✓ Settings: ~/.pi/agent/bedrock.json
✓ AWS profile: my-profile (from /login)
✓ Sign-in: AWS answered
✓ Models: 31 found in us-east-1 (AWS-defined)
✓ Selected model: claude-sonnet-5-5 · Messages route
– Spend command: not set
✓ Request: Messages route · 0.9 s · cache read 0, wrote 120
Bedrock is ready.

Done when the last line is Bedrock is ready.

No AWS setup yet?

At /login, choose Create an IAM Identity Center (SSO) profile. It asks for seven values: the AWS profile name, SSO session name, start URL, SSO region, account ID, role name and profile region. Find them in your AWS access portal, or ask your AWS administrator.

Budget

/bedrock budget 200

Nov $12.40 / $200; warning at 80%, error at 100%. Spend details; prompt cache.

Compared with Pi's built-in Bedrock provider

| | Pi built-in | jig-bedrock | | ----------------------- | ------------------------- | ----------------------------------------------- | | Install | Part of Pi | pi install | | Sign-in | API key or environment | AWS profile: SSO, keys, role | | Models | Pi's list, non-Claude too | Claude; others by application inference profile | | Expired SSO sign-in | Request fails | Renewed, sent once more | | Cache after a tool load | Rewritten | Kept on four Claude models | | 1-hour cache | Claude 4.5 and later | Converse models only | | Spend and budget | Not included | In the footer |

Several AWS profiles

Named presets show their models in /model, marked [jig-bedrock-<preset>]; New preset… (Presets menu) creates one. See Presets.

Commands

| Command | What it does | | ------------------ | -------------------------------- | | /bedrock | Opens the Bedrock menu. | | /bedrock status | Profile, sign-in, models, spend. | | /bedrock doctor | Checks; one next step. | | /bedrock models | Models, route, price. | | /bedrock refresh | Reads models now, any cache age. | | /bedrock login | Renews the AWS sign-in. | | /bedrock usage | Spend by model and period. | | /bedrock spend | The same as usage. | | /bedrock use | List or switch presets. |

/bedrock opens a menu with Status, Check setup, Test one request, Models, Refresh models, Sign in again, Presets, Settings, Spend, Budget and Help. Back goes up one menu; Escape closes it. Typed forms and /bedrock help stay for scripts and agents.

When something is wrong

| You see | Run | | ---------------------------------- | ------------------ | | Sign-in expired | /bedrock login | | Access denied | /bedrock doctor | | No models in /model | /bedrock refresh | | A model is missing after an update | /bedrock models | | The footer shows no amount | /bedrock usage |

Limits

  • Linux/WSL tested. macOS: unit tests in CI, not run against real AWS. No native Windows.
  • A Bedrock API key works through Pi's built-in provider, not this one.
  • Spend counts this machine's Pi sessions unless spendCommand is set.
  • The budget is a figure to compare with; it never blocks a request.
  • Only SSO sign-ins, and a role over SSO, are renewed.

Update and uninstall

Update: pi update npm:@clawdbuilder/jig-bedrock, then /reload.

Remove: /logout, then /bedrock unset profile, then pi remove npm:@clawdbuilder/jig-bedrock. It leaves some files: Files on disk.

With Jig, jig update updates jig-bedrock (it is installed unpinned) and jig remove npm:@clawdbuilder/jig-bedrock removes it.

More detail

| Page | Read it when | | ------------------------------------------ | ----------------------- | | How it works | Routes and ids. | | Settings | Edit bedrock.json. | | Troubleshooting | A command fails. | | Spend command | You set spendCommand. |

For an agent setting this up

  1. Run pi install npm:@clawdbuilder/jig-bedrock. Done when pi list shows it.
  2. Ask the person which AWS profile to use. For an SSO profile, ask them to run aws sso login --profile <name> in their terminal; a browser opens. Never read or print credentials.
  3. Write ~/.pi/agent/bedrock.json as {"profile": "<name>", "regions": ["us-east-1"]}. Done when pi -p "/bedrock settings" shows profile: <name> (file).
  4. Run pi -p "/bedrock refresh". Done when it reports more than 0 models.
  5. Run pi -p --model jig-bedrock/claude-sonnet-5-5 "/bedrock doctor call"; it sends one tiny request. Done when the last line is Bedrock is ready. If /bedrock refresh or /bedrock models does not list that id, use another non-Fable Claude model from it. A person does the same interactively with /login, /model and /bedrock doctor call.
Bedrock doctor
✓ Node 26.13.0
✓ AWS CLI 2.34.46
✓ Settings: ~/.pi/agent/bedrock.json
✓ AWS profile: my-profile (from bedrock.json)
✓ Sign-in: AWS answered
✓ Models: 31 found in us-east-1 (AWS-defined)
✓ Selected model: claude-sonnet-5-5 · Messages route
– Spend command: not set
✓ Request: Messages route · 3.9 s · cache read 0, wrote 0
Bedrock is ready.

Licence

MIT.