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

@cortexkit/pi-anthropic-auth

v1.9.2

Published

Pi package for CortexKit Anthropic OAuth support. It overrides Pi's built-in `anthropic` provider with a CortexKit provider extension backed by the shared `@cortexkit/anthropic-auth-core` package.

Readme

@cortexkit/pi-anthropic-auth

Pi package for CortexKit Anthropic OAuth support. It overrides Pi's built-in anthropic provider with a CortexKit provider extension backed by the shared @cortexkit/anthropic-auth-core package.

The Pi provider catalog includes Claude Fable 5 (claude-fable-5), limited-access Claude Mythos 5 (claude-mythos-5), Claude Opus 4.8, Claude Opus 4.5, and Claude Sonnet 4.5. Fable/Mythos reasoning uses Anthropic adaptive thinking with thinking.display: "summarized" and output_config.effort; the package does not send rejected manual thinking.budget_tokens for those models.

This package is part of the CortexKit Anthropic Auth monorepo, which supports both OpenCode (@cortexkit/opencode-anthropic-auth) and Pi (@cortexkit/pi-anthropic-auth) through the same shared core logic.

Install

Install with Pi's package manager:

pi install npm:@cortexkit/[email protected]

For an unpinned install:

pi install npm:@cortexkit/pi-anthropic-auth

To try it for one run without changing Pi settings:

pi -e npm:@cortexkit/pi-anthropic-auth

Restart Pi after installing, then authenticate through Pi's normal login flow:

/login anthropic

Sidecar config

Pi state is stored separately from OpenCode at:

~/.pi/agent/anthropic-auth.json

Override the path with PI_ANTHROPIC_AUTH_FILE. The package also respects PI_AGENT_DIR when deriving the default sidecar path.

The sidecar uses the same JSON shape as the OpenCode package, including routing, claudeCache, cacheKeep, claudeFast, dump, relay, and fallback accounts blocks.

Commands

/claude-cache
/claude-cache on
/claude-cache off
/claude-cache mode explicit
/claude-cache mode automatic
/claude-cache mode hybrid

/claude-cachekeep
/claude-cachekeep 09-23
/claude-cachekeep off

/claude-dump
/claude-dump on
/claude-dump off

/claude-fast
/claude-fast on
/claude-fast off

/claude-routing
/claude-routing main-first
/claude-routing fallback-first

/claude-quota

/claude-quota reports sidecar OAuth fallback quota state from ~/.pi/agent/anthropic-auth.json. /claude-routing fallback-first prefers usable OAuth fallback accounts before the main account; /claude-routing main-first restores the default. API-key routes use the same sidecar shape as OpenCode and are sent directly to their configured Anthropic-compatible base URL, such as Kie's https://api.kie.ai/claude, but Pi only uses them after the main OAuth model response reports HTTP 429 or a streaming rate-limit error and a live quota check confirms 0% remaining. /claude-cachekeep HH-HH keeps recently used hybrid-mode session caches warm during the configured local time window by sending max_tokens: 0 pre-warm requests about five minutes before the 1-hour TTL expires. /claude-fast on adds Anthropic speed: "fast" plus the fast-mode-2026-02-01 beta header for supported Opus models (claude-opus-4-6, claude-opus-4-7, and claude-opus-4-8).

Relay

The Pi package can use the same user-owned Cloudflare relay config as the OpenCode package. The relay setup helper currently lives in the OpenCode package CLI:

CLOUDFLARE_API_TOKEN=... CLOUDFLARE_ACCOUNT_ID=... bunx @cortexkit/opencode-anthropic-auth relay setup

For Pi, copy the generated relay block into ~/.pi/agent/anthropic-auth.json.

License

MIT