@cortexkit/pi-anthropic-auth

Use Claude Pro/Max subscriptions in [Pi](https://pi.dev) with `@cortexkit/pi-anthropic-auth`. The companion `@cortexkit/opencode-anthropic-auth` package supports [OpenCode](https://opencode.ai) 1 and 2; both integrations use the shared `@cortexkit/anthrop

Packages

Package details

extension

Install @cortexkit/pi-anthropic-auth from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@cortexkit/pi-anthropic-auth
Package
@cortexkit/pi-anthropic-auth
Version
2.0.3
Published
Oct 17, 2026
Downloads
1,265/mo · 171/wk
Author
ismeth
License
unknown
Types
extension
Size
168.3 KB
Dependencies
1 dependency · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/index.js"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@cortexkit/pi-anthropic-auth

Use Claude Pro/Max subscriptions in Pi with @cortexkit/pi-anthropic-auth. The companion @cortexkit/opencode-anthropic-auth package supports OpenCode 1 and 2; both integrations use the shared @cortexkit/anthropic-auth-core package.

Why use it

  • Multiple Claude accounts with ordered fallbacks, quota-aware routing and per-session account affinity.
  • Prompt-cache controls and optional cache keepalive for active sessions.
  • Optional Claustrum integration: Claustrum is a local credential-vault service that supplies Claude accounts instead of each application's local account pool.
  • An optional user-owned Cloudflare relay to reduce repeated request uploads.

Disclaimer

This project is not affiliated with or endorsed by Anthropic. Using Claude subscriptions outside Anthropic's official clients may violate Anthropic's terms and can lead to account restrictions or suspension. Use it at your own risk.

Install

bunx @cortexkit/opencode-anthropic-auth setup

After setup:

OpenCode 1: open /claude → Accounts to sign in.

OpenCode 2: In OpenCode, sign in to Anthropic with "Claude Pro / Max (native account pool)".

Pi: open /claude and use Start OAuth sign-in, then Finish OAuth sign-in.

Documentation

License

MIT