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

@wierdbytes/pi-anthropic

v0.2.2

Published

Claude Pro/Max OAuth extension for the pi coding agent

Readme

@wierdbytes/pi-anthropic

Claude Pro/Max OAuth extension for the pi coding agent.

Sign in with your Claude Pro or Max account and use it inside pi without an Anthropic API key.

Install

pi install npm:@wierdbytes/pi-anthropic

Usage

Start pi, then run:

/login anthropic

and pick Claude Pro/Max. Tokens are stored by pi's auth storage and refreshed automatically.

What it does

  • Registers the anthropic provider with an OAuth login flow that targets claude.ai / platform.claude.com.
  • Reuses pi-ai's built-in Anthropic streamer, which already detects OAuth tokens and applies Claude-Code-compatible headers / betas, the "You are Claude Code, ..." identity block, Claude-Code tool-name mapping and adaptive thinking with output_config.effort for Opus 4.6 / 4.7 and Sonnet 4.6.
  • Layers two Claude-Code-only tweaks on top via the before_provider_request hook: it rewrites Pi-branded paragraphs in the system prompt to Claude Code identity, and prepends the x-anthropic-billing-header system block so Pro/Max billing accepts the request.
  • Reuses pi's built-in Anthropic model registry — no custom model list is injected, so whatever models ship with your pi version are what you get.
  • Creates a ~/.Claude Code~/.pi symlink on first load when missing, so tools that look for the Claude Code config directory keep working.

Custom models

To expose an extra Anthropic model, declare it in ~/.pi/agent/models.json the usual pi way. Requests will still authenticate through the OAuth token obtained via /login anthropic.

Troubleshooting

  • Re-run /login anthropic if auth looks stale.
  • If the local callback never completes, paste the final callback URL (or the code#state fragment) when prompted.
  • File issues at https://github.com/wierdbytes/pi-wierd-stuff/issues with your pi version, this extension's version and the error output.

Caveats

Use at your own risk. Driving Claude Pro/Max through a non-official client may go against Anthropic's terms.

Credits

Originally based on pi-anthropic-oauth by Leo Henon. This package is an independent fork maintained inside the pi-wierd-stuff monorepo; bugs here are ours, not the original author's.

License

MIT