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

@anyforge/control

v0.2.3

Published

AnyForge Control CLI — governed LLM proxy for Claude Code, Cursor, Cline, and any agent that talks to OpenAI- or Anthropic-shape APIs.

Readme

@anyforge/control

Governed LLM proxy for any agent. Use the AI tools you already use — Claude Code, Cursor, Cline, Continue, or your own SDK — and route every call through AnyForge for cost analytics, audit log, and policy enforcement.

Install

npx @anyforge/control init

The CLI:

  1. Issues a one-time auth code, opens your browser to authorise it.
  2. Stores the resulting API key at ~/.anyforge/credentials (chmod 600).
  3. Asks whether to install globally (~/.claude/settings.json) or per-repo (the per-repo option only appears when you run the command at the root of a git working tree).
  4. Patches the chosen target so Claude Code routes through https://crew.anyforge.ai/v1/anthropic and …/v1/openai. The actual API key is inlined into the patched config — no ${ANYFORGE_API_KEY} indirection, no shell restart required.

After that, your next LLM call shows up under Control on /usage within seconds.

Install scope

| Choice | Files written | Effect | |---|---|---| | global | ~/.claude/settings.json (+ optional shell-rc hints for Cursor / Cline if installed) | Every Claude Code session on this machine routes through AnyForge | | repo | <repo>/.claude/settings.local.json and <repo>/.env | Only Claude Code sessions inside this repo are routed; no global side effects |

Pick whichever suits the moment — the choices aren't mutually exclusive over time:

  • Want to add a second repo? Re-run npx @anyforge/control init from that repo's root and pick repo again.
  • Want to switch to a system-wide install later? Re-run from anywhere and pick global.
  • Want to undo a per-repo install? Delete the # === AnyForge Control === block in <repo>/.env and the env keys in <repo>/.claude/settings.local.json. anyforge logout clears the saved credential but doesn't touch patched configs.

The .env written in per-repo mode contains a live ANYFORGE_API_KEY. The CLI warns if your repo's .gitignore doesn't already exclude .env. Add it before committing.

Why ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY?

Claude Code recognises both, but they behave differently. ANTHROPIC_API_KEY is sent as X-Api-Key and — when an OAuth Console login is also present — surfaces an "Auth conflict: Using ANTHROPIC_API_KEY instead of Anthropic Console key" warning, and can cascade into a "selected model may not exist" error. ANTHROPIC_AUTH_TOKEN is sent as Authorization: Bearer …, is documented for "routing through an LLM gateway or proxy", out-ranks the OAuth login cleanly, and matches the bearer-token shape AnyForge expects. We patch the token form, and on every install we explicitly delete any stale ANTHROPIC_API_KEY left behind by older versions.

Commands

| | | |---|---| | anyforge init | Authorise this device and patch local agent configs | | anyforge whoami | Show the company tied to the saved key | | anyforge status | Verify the proxy is reachable and your BYOK key is configured | | anyforge logout | Clear the local credential file (does not revoke server-side) |

Endpoints

The CLI defaults to https://crew.anyforge.ai. Override per-invocation with --endpoint, or globally with the ANYFORGE_ENDPOINT environment variable.

The proxy exposes:

  • POST /v1/anthropic/messages — drop-in for https://api.anthropic.com/v1/messages. Use Authorization: Bearer sk_anyforge_… instead of x-api-key.
  • POST /v1/openai/chat/completions — drop-in for https://api.openai.com/v1/chat/completions.

Both validate your AnyForge API key, look up your company's BYOK provider key, forward the request, and stream the response back unchanged. Token counts and cost are logged to your usage dashboard.

What you get

  • Cost analytics — per-call, per-company, per-model spend on /usage.
  • Audit log — hash-chained record of every prompt + response.
  • BYOK — your provider keys live in your AnyForge company; the CLI never holds raw provider keys on the local machine.
  • One key, every agent — the same sk_anyforge_… works for any agent that talks OpenAI- or Anthropic-shape APIs.

Coming soon

  • anyforge proxy — local proxy mode for OPA-enforced redaction before requests leave your network.
  • Intent-based routing (rules / regex / embeddings).
  • Portable memory injection.
  • Ollama support for local models.

License

Apache-2.0