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

@suncreation/crush-auth-proxy

v1.1.7

Published

Claude Code Auth Proxy for Crush CLI — Use your Claude Max subscription (OAuth) instead of API keys

Downloads

37

Readme

@suncreation/crush-auth-proxy

Use your Claude Max subscription (OAuth) with Crush CLI — no separate Anthropic API key needed.

This proxy sits between Crush and Anthropic's API, injecting Claude Code OAuth credentials so you can use your existing Claude Max plan.

Quick Start

# One command does everything: login + crush config + auto-start
npx @suncreation/crush-auth-proxy setup

That's it! Now use Crush:

crush run --model anthropic/claude-opus-4-6 "Hello!"

The proxy auto-starts on boot. No manual configuration needed.

Commands

| Command | Description | |---------|-------------| | setup | All-in-one: OAuth login + crush.json config + auto-start service | | setup-token | OAuth login only — opens browser, saves token locally | | setup-crush | Configure crush.json only (adds anthropic provider) | | install-service | Install platform auto-start service (macOS: launchd, Linux: systemd, Windows: Task Scheduler) | | uninstall-service | Remove auto-start service | | start | Start proxy as background daemon (port 18080) | | stop | Stop the daemon | | restart | Restart the daemon | | status | Check if proxy is running + token validity | | logs | Tail daemon logs |

Options

| Option | Description | |--------|-------------| | --port <n> | Custom port (default: 18080) | | --debug | Enable detailed request/response logging | | --foreground | Run in foreground instead of daemon |

How It Works

The proxy replicates Claude Code's authentication mechanism:

  1. OAuth PKCE Flow — Authenticates via claude.ai using the same client credentials as Claude Code
  2. Request Transformation — Rewrites headers (User-Agent, auth), adds required beta flags, prefixes tool names with mcp_
  3. System Prompt Injection — Prepends the Claude Code system prompt identifier
  4. Response Streaming — Strips mcp_ prefixes from streamed responses
  5. Token Auto-Refresh — Automatically refreshes expired OAuth tokens

Per-User Storage

All config is stored in ~/.config/crush-auth-proxy/:

~/.config/crush-auth-proxy/
  ├── claude-oauth-token.json   # Your OAuth tokens (chmod 0600)
  ├── crush-auth-proxy.mjs      # Stable copy for auto-start service
  ├── proxy.pid                 # Daemon PID
  └── proxy.log                 # Daemon logs

Uninstall

npx @suncreation/crush-auth-proxy uninstall-service
npx @suncreation/crush-auth-proxy stop
rm -rf ~/.config/crush-auth-proxy

Requirements

  • Node.js >= 18
  • macOS / Linux / Windows
  • A Claude Max subscription (claude.ai account)
  • Crush CLI installed

Platform-specific auto-start:

  • macOS: launchd (built-in)
  • Linux: systemd (user service)
  • Windows: Task Scheduler

Supported Models

All Anthropic models available through your Claude Max subscription, including:

  • anthropic/claude-opus-4-6
  • anthropic/claude-sonnet-4-5-20250514
  • anthropic/claude-haiku-3-5-20241022
  • And more

License

MIT