anyray-connect weekly downloads statistics
By anyrayHQ · npm · Claude Code
Anyray connect — points local coding tools (Claude Code, Cursor, Windsurf, SDKs) at the Anyray gateway through supported configuration and enrolled personal authentication.
anyray-connect has 5,267 recorded weekly downloads on npm, an increase of 39.3% over the past 30 days, ranking #1507 of 3,247 tracked listings.
About anyray-connect
anyray-connect
The on-ramp. A small, dependency-free Node CLI that points a developer's local coding tools at the Anyray gateway through supported application config and the developer's personal gateway key. The gateway stays the brain (routing, spend store, content encryption, optimizer) — this only does capture/onboarding.
The Anyray gateway you target may itself front an existing gateway (LiteLLM, OpenRouter, Portkey, homegrown) via the
anyray-upstreamprovider — that's configured server-side on the gateway, with no client-side difference toconnect.
npx anyray-connect@latest --enroll https://app.anyray.ai/enroll/enl_…
An npx run first copies its published runtime into a versioned directory under
~/.anyray/bin. Hooks, MCP registrations, and login services point at that
durable copy instead of npm's disposable _npx cache.
Choose a Claude session route
After configuring Claude Code, open a new terminal and pin every session of one
Claude Code process (startup, /clear, resume, fork) to a route:
claude org "fix the failing tests"
claude sub
CLI and desktop tray setup install the same shortcuts. Plain claude keeps the
default. The explicit form, anyray-connect claude org|sub, also works without
a shell shortcut, and the older bedrock: and subscription: words still work.
See session routing
for supported shells, native Claude sign-in and existing subscription fallback.
To change the route of a session that is already open, type /route in Claude
Code. It shows the current route and what switching costs; /route org,
/route subscription or /route default switches from the next turn. The
answer never reaches the model. anyray-connect route --session <id> does the
same from a terminal.
Personal gateway keys (enrollment)
Every gateway /v1 request requires a personal gateway key (ark_...). Enroll
before a real apply:
-
An org admin uses the console's Users page to create a passwordless enrollment link, or shares the org's SSO enrollment command.
-
The developer enrolls while connecting:
npx anyray-connect@latest --enroll https://app.anyray.ai/enroll/enl_… # Enterprise SSO: npx anyray-connect@latest --sso https://app.anyray.ai/sso/tnt_…
Enrollment mints a personal key and binds its verified user/team to spend attribution. The key lands in owner-only local state and the supported tool credential stores; it is never printed in full. Tools talk directly to a current gateway. A separate scheduled heartbeat signs a fresh, purpose-bound device proof and extends that same raw key before expiry, so running tools do not need a credential rewrite. The heartbeat never returns a replacement key.
Existing refresh-enabled Connect profiles continue routing directly after an update. If the heartbeat route is unavailable, Connect reports a gateway version or routing problem without treating the enrollment certificate as invalid.
A dry run never consumes an enrollment link or writes configuration; without an existing key it reports the selected installs that would be configured after enrollment.
Already have a key? Set ANYRAY_CLIENT_KEY in the environment. It must be a
minted ark_... key; the old anyray-placeholder value cannot authenticate.
How the key is sent depends on the auth mode:
- Org API mode: the personal key is the
Authorizationbearer; the gateway selects the server-held provider credential after authenticating the developer. --subscription: the tool's seat OAuth token keeps theAuthorizationheader, and the personal key rides thex-anyray-api-keyheader instead so the gateway can still identify the dev.
Automatic coverage matrix
“Automatic” has two different meanings here: route means the request takes a supported path through the gateway and can be optimized; visibility means content-free usage arrives through the request path or an official vendor reporting API. A visibility connector does not pretend that closed first-party traffic was routed.…
Description from the npm listing.
- anyray
- ai-gateway
- llm
- claude-code
- cursor
- windsurf
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (591)Similar npm Claude Code plugins
All 20 anyray-connect alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/anyray-connect. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.