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

openzoo-paperclip-adapter

v0.1.6

Published

Paperclip external adapter: Claude Code as the harness, OpenZoo as the biller — every inference call pays x402 through the local openzoo proxy (adapter type: openzoo_claude)

Readme

openzoo-paperclip-adapter

A Paperclip external adapter that runs Claude Code as the harness with OpenZoo as the biller. Every inference call pays x402 through the local openzoo proxy from a local burner wallet — no Anthropic login, no API key.

Registers adapter type openzoo_claude. It wraps the built-in claude_local adapter, so you keep everything it does — streaming transcripts, session resume, skills sync, instructions bundle — and only the billing path changes.

Prerequisites

  1. The openzoo proxy running locally (defaults to :8402), with a funded burner:

    npx openzoo
  2. Claude Code on PATH (no login needed — the adapter points ANTHROPIC_BASE_URL at the proxy):

    curl -fsSL https://claude.ai/install.sh | bash

Install

paperclipai adapter install --payload-json '{"packageName":"openzoo-paperclip-adapter"}'

Then verify:

paperclipai adapter list
paperclipai adapter test-environment openzoo_claude --company-id <your-company-id>

Create an agent with adapter type openzoo_claude and pick a model from the live zoo catalog (anthropic/claude-opus-5, x-ai/grok-4.6, …) — the model list comes from the proxy's GET /v1/models, so it always matches what the zoo actually serves.

What it sets (and why)

The adapter injects the same environment openzoo claude writes:

| Env | Value | Why | | --- | --- | --- | | ANTHROPIC_BASE_URL | http://localhost:8402/v1 | Route inference through the paying proxy | | ANTHROPIC_AUTH_TOKEN | sk-openzoo | Gateway auth, not an API key | | ANTHROPIC_API_KEY | (force-emptied) | An inherited key outranks the base URL and silently bills api.anthropic.com | | CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY | 1 | Claude Code's /model picker shows the live zoo catalog | | DISABLE_COMPACT / DISABLE_AUTO_COMPACT | 1 | The proxy already binds the transcript prefix and forwards a bounded tail; compaction only loses context | | CLAUDE_CODE_MAX_CONTEXT_TOKENS | 1000000 | Raise the local ceiling the proxy already removed |

Adapter config

All claude_local fields work unchanged (model, cwd, promptTemplate, env, engine, skills, timeouts). OpenZoo adds:

| Key | Default | Purpose | | --- | --- | --- | | proxyBase | http://localhost:8402/v1 | Proxy base URL | | gatewayToken | sk-openzoo | ANTHROPIC_AUTH_TOKEN sent to the proxy | | keepCompact | false | Re-enable Claude Code auto-compact | | contextTokens | 1000000 | Context ceiling when compaction is off |

Anything you set in adapterConfig.env wins over the injected defaults — overriding the base URL or token is treated as deliberate.

Run results report provider: "openzoo" and billingType: "metered_api" so Paperclip cost tracking attributes spend to the zoo, not to a subscription.

Failure modes

  • Proxy downtest-environment fails with a hint; runs error immediately.
  • Burner empty → upstream returns HTTP 402; the run surfaces a payment-required error.