Catalog npm
PACKAGE EXPLORERView in registry

@0xpv/claude-share

npm

Share or connect to a friend's Claude Code subscription

anthropicclaudeclaude-codeproxyshare
Versions collected35
Direct dependencies18From release 1.3.2
Last observed21 Oct, 09:37 UTC

README

Current package documentation

claude-share

Securely share your Claude Code subscription with others.

One machine runs claude-share to expose its Claude credentials through a local proxy. Other machines run claude-connect to connect and use Claude Code as if they had their own subscription.


How it works

Receiver machine                    Sharer machine
─────────────────                   ──────────────────────────────
claude (CLI)                        claude-share
  │                                   │
  │  HTTPS_PROXY=...                  ├─ MITM proxy (intercepts Anthropic API calls)
  └──────────────────────────────────>│    injects sharer's OAuth token
                                      │
                                      ├─ Hono API (pairing, health, CA cert)
                                      │
                                      └─ bore tunnel (public URL via bore.pub)
  • The sharer's OAuth token is read from the macOS Keychain and injected per-request inside the MITM proxy — it is never written to disk or sent to the receiver.
  • The receiver installs a temporary CA cert (valid only for the session) so the MITM can intercept Anthropic traffic. Non-Anthropic domains pass through as an opaque TCP tunnel — never inspected.
  • Pairing uses a one-time code. Once paired, credentials are saved so reconnecting skips the pairing step.

Install

npm install -g @0xpv/claude-share

This installs both claude-share and claude-connect binaries.


Quickstart

Sharer

claude-share

Requires bore for internet sharing (brew install bore-cli). If bore is not installed you'll be prompted — decline to share on LAN only.

The TUI shows connection URLs. Share the Public URL with receivers over the internet, or the LAN URL for local network.

Keys: c copy URL · q quit

Receiver

# First time — paste the connect URL from the sharer's TUI
claude-connect --share <connect-url>

# Subsequent runs — pick from saved connections
claude-connect

The receiver configures Claude Code to route through the proxy and installs the session CA cert automatically. Everything is cleaned up on exit.


One-time use (npx)

# Sharer
npx @0xpv/claude-share

# Receiver
npx -p @0xpv/claude-share claude-connect --share <connect-url>

Requirements

  • Node.js 18+ on both machines
  • bore (brew install bore-cli) on the sharer machine for internet sharing
  • The sharer must be logged in to Claude Code (claude login)
  • The receiver must have Claude Code installed

Security model

  • The sharer's OAuth token is read from the macOS Keychain and injected into requests in-memory. It is never transmitted to the receiver.
  • Only these Anthropic endpoints are proxied: POST /v1/messages, GET /v1/models, /api/hello, and OAuth flows on platform.anthropic.com / platform.claude.com.
  • File upload (/v1/files), fine-tuning, and assistants endpoints are blocked.
  • All non-Anthropic HTTPS traffic passes through as an opaque TCP tunnel — the proxy never sees the contents.
  • Sessions expire after the duration chosen at startup (6h / 24h / 1 week).

Development

# Sharer
bun run dev:share

# Receiver
bun run dev:connect --share <connect-url>

Set TUNNEL=0 to skip the bore tunnel during local development.

Build: bun run build — compiles both binaries into their dist/ folders.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 35

Collected releases
VersionPublishedDirect dependenciesOpen version
1.3.2Registry latest11 May 202618
1.3.2-alpha.clipboard.fix11 May 202618
1.3.111 May 202618
1.3.011 May 202617
1.2.211 May 202617
1.2.18 May 202617
1.2.08 May 202618
1.1.08 May 202618
1.0.08 May 202618
0.16.0-beta8 May 202618
0.15.0-beta8 May 202618
0.14.0-beta7 May 202617
0.13.0-beta7 May 202617
0.12.0-beta7 May 202617
0.11.0-beta7 May 202617
0.10.0-beta6 May 202617
0.9.0-beta6 May 202617
0.8.1-beta6 May 202617
0.8.0-beta6 May 202617
0.7.0-alpha6 May 202616

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
prathamvaidya/claude-share

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:36 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:5bf6d865e944123c9215a05fbc257617e3122187181a207bb1a4a1952fe6174f