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

@forkcart/nyxclaw

v1.0.0

Published

Claude Max Sub proxy for OCPlatform - auto-patches Meridian for full tool passthrough

Downloads

25

Readme

🦞 nyxclaw

Claude Max Sub proxy patcher for OCPlatform — auto-patches @rynfar/meridian for full tool passthrough.

The Problem

Meridian is a proxy that lets you use your Claude Max subscription via API. It works great — except for one thing:

In passthrough mode, Meridian limits the model to 2 turns. This means Claude can only make 2 tool calls before being cut off. For platforms like OCPlatform that rely on multi-step tool use (file edits, shell commands, web searches, etc.), this is a deal-breaker.

The relevant line in Meridian's source:

maxTurns: passthrough ? 2 : 200

The Solution

nyxclaw patches this to:

maxTurns: passthrough ? 1 : 200

Setting maxTurns to 1 in the Claude Code SDK actually means "no artificial limit" — it lets the orchestrating platform (OCPlatform) handle turn management, which is exactly what you want in passthrough mode.

nyxclaw also sets up everything else you need:

  • System user for running the proxy
  • Sudoers configuration
  • systemd service with MERIDIAN_PASSTHROUGH=1
  • Auto-start on boot

Installation

npm install -g nyxclaw

Quick Start

# Full setup (install meridian, patch, create user, systemd service)
sudo nyxclaw setup

# Log in to Claude (required once)
sudo -u meridian claude login

# Check that everything is working
nyxclaw status

Commands

nyxclaw setup

Full automated setup. Requires root. Does everything:

  1. Installs @rynfar/meridian globally (if not already installed)
  2. Patches the maxTurns limit for passthrough mode
  3. Creates a meridian system user
  4. Configures sudoers for the meridian user
  5. Generates a systemd service file with MERIDIAN_PASSTHROUGH=1
  6. Enables the service for auto-start on boot
  7. Starts the service (if Claude is already logged in)

nyxclaw patch

Re-applies just the maxTurns patch. Useful after updating meridian:

npm update -g @rynfar/meridian
sudo nyxclaw patch
sudo systemctl restart meridian

nyxclaw status

Health check. Shows:

  • ✅/❌ Meridian installed
  • ✅/❌ Patch applied
  • ✅/❌ System user exists
  • ✅/❌ Sudoers configured
  • ✅/❌ Service running
  • ✅/❌ Claude authenticated

How It Works

┌─────────────┐     ┌──────────────────┐     ┌──────────────┐
│  OCPlatform  │────▶│  Meridian Proxy  │────▶│  Claude API  │
│  (your app)  │◀────│  (patched by     │◀────│  (Max Sub)   │
│              │     │   nyxclaw)       │     │              │
└─────────────┘     └──────────────────┘     └──────────────┘
  1. OCPlatform sends API requests to Meridian (localhost)
  2. Meridian proxies them to Claude using your Max subscription
  3. nyxclaw's patch ensures passthrough mode doesn't limit tool use
  4. MERIDIAN_PASSTHROUGH=1 enables the passthrough pipeline

systemd Service

The generated service file at /etc/systemd/system/meridian.service:

[Service]
User=meridian
Environment=MERIDIAN_PASSTHROUGH=1
Restart=always
RestartSec=5

Useful commands:

sudo systemctl start meridian      # Start
sudo systemctl stop meridian       # Stop
sudo systemctl restart meridian    # Restart
journalctl -u meridian -f          # Follow logs

After Meridian Updates

When you update meridian, the patch gets overwritten. Just re-apply:

npm update -g @rynfar/meridian
sudo nyxclaw patch
sudo systemctl restart meridian

Or if you installed nyxclaw globally, the postinstall script will try to auto-patch.

Requirements

  • Node.js >= 18
  • Linux (systemd-based)
  • Root access (for setup)
  • Claude Max subscription (logged in via claude login)

Troubleshooting

"maxTurns pattern not found" Meridian may have updated its source code. Check the dist file manually:

grep -r "maxTurns" $(npm prefix -g)/lib/node_modules/@rynfar/meridian/dist/

Service won't start

journalctl -u meridian -n 50 --no-pager

Claude not authenticated

sudo -u meridian claude login

License

MIT © Fabian Budde


Built by Nyx 🦞 — the cosmic lobster that patches your proxies.