Catalog npm
Back to packageRELEASE DETAILS

0.10.0-beta

npm

@0xpv/claude-share

Share or connect to a Claude Code subscription

anthropicclaudeclaude-codeproxyshare
Published6 May 2026
Direct dependencies17
Transitive dependenciesNot calculated

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.

Declared dependencies 17

Native requirements
17 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ink
Environment
{
  "local_name": "ink",
  "alias": false,
  "peer_metadata": null
}
^7.0.1runtime
hono
Environment
{
  "local_name": "hono",
  "alias": false,
  "peer_metadata": null
}
^4.12.16runtime
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^19.2.5runtime
node-forge
Environment
{
  "local_name": "node-forge",
  "alias": false,
  "peer_metadata": null
}
^1.4.0runtime
@clack/prompts
Environment
{
  "local_name": "@clack/prompts",
  "alias": false,
  "peer_metadata": null
}
^1.3.0runtime
@noble/ciphers
Environment
{
  "local_name": "@noble/ciphers",
  "alias": false,
  "peer_metadata": null
}
^2.2.0runtime
http-mitm-proxy
Environment
{
  "local_name": "http-mitm-proxy",
  "alias": false,
  "peer_metadata": null
}
^1.1.0runtime
@hono/node-server
Environment
{
  "local_name": "@hono/node-server",
  "alias": false,
  "peer_metadata": null
}
^2.0.1runtime
oxfmt
Environment
{
  "local_name": "oxfmt",
  "alias": false,
  "peer_metadata": null
}
0.47.0development
oxlint
Environment
{
  "local_name": "oxlint",
  "alias": false,
  "peer_metadata": null
}
1.62.0development
@types/ws
Environment
{
  "local_name": "@types/ws",
  "alias": false,
  "peer_metadata": null
}
8.18.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
@types/semaphore
Environment
{
  "local_name": "@types/semaphore",
  "alias": false,
  "peer_metadata": null
}
1.1.4development
@types/node-forge
Environment
{
  "local_name": "@types/node-forge",
  "alias": false,
  "peer_metadata": null
}
1.3.14development
react-devtools-core
Environment
{
  "local_name": "react-devtools-core",
  "alias": false,
  "peer_metadata": null
}
^7.0.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "e9584c7859bd0e8fc98e85a5204a8a4d084230f3",
  "tarball": "https://registry.npmjs.org/@0xpv/claude-share/-/claude-share-0.10.0-beta.tgz",
  "fileCount": 5,
  "integrity": "sha512-OKAIfM7tlWXJtS4imlFgPnUlQuYxxh01VK6nwA5SImDnpEISGsCiT7ZkZnRKZxXLS7WfryC9bc3DGh+Y2hjFxw==",
  "signatures": [
    {
      "sig": "MEQCIHtxwYkUh5ph3YVWhE6RtV5sKdCsvS12z7uXBsOHD7AdAiAoLjXAgxPzae4M5D+mE+pLSzq8f+DUWfyl6pe2xpZltg==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 1288779
}

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:37 UTC

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

Record identity

package_version:732edd0890228e148001db81ec1b2a817fceff9f5ed4e302bf60bc0beaa6391a

Other collected versions

1.3.211 May1.3.2-alpha.clipboard.fix11 May1.3.111 May1.3.011 May1.2.211 May1.2.18 MayView all collected versions →