
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@cortexkit/pi-anthropic-auth
Advanced tools
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.
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.
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 with Pi's package manager:
pi install npm:@cortexkit/pi-anthropic-auth@1.0.0
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
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 claudeCache, cacheKeep, claudeFast, dump, relay, and fallback accounts blocks.
/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-quota
/claude-quota reports sidecar fallback account quota state from ~/.pi/agent/anthropic-auth.json. /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 and claude-opus-4-7).
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.
MIT
FAQs
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 npm package @cortexkit/pi-anthropic-auth receives a total of 287 weekly downloads. As such, @cortexkit/pi-anthropic-auth popularity was classified as not popular.
We found that @cortexkit/pi-anthropic-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.