Skip to main content

claude-shop

A tiny CLI launcher for Claude Code that points it at the claude.shop proxy. Buy a token, install one Python package, and start coding.

Run claude-shop in a SYSTEM TERMINAL — not the Python REPL. On Windows that means cmd.exe or PowerShell. On macOS / Linux that's Terminal / bash / zsh. Pasting claude-shop ... after the >>> Python prompt will give you SyntaxError: invalid syntax because it's a shell command, not Python code.

Install

pip install claude-shop

You also need the claude binary on your PATH — install it via the official Claude Code instructions.

Usage

# Launch Claude Code through the proxy
claude-shop start <YOUR_TOKEN>

# Forward extra args to claude
claude-shop start <YOUR_TOKEN> --resume
claude-shop start <YOUR_TOKEN> -p "explain this repo"

# Check remaining quota for a token
claude-shop balance <YOUR_TOKEN>
claude-shop balance <YOUR_TOKEN> --json

# Verify the proxy is reachable
claude-shop check <YOUR_TOKEN>

# Show version
claude-shop --version

python -m claude_shop is also supported and behaves identically to the claude-shop console script.

start injects two environment variables for the spawned claude process and inherits everything else from your shell:

Variable Value
ANTHROPIC_AUTH_TOKEN your token
ANTHROPIC_BASE_URL https://claudeshop.duckdns.org

The exit code of claude is propagated. Ctrl-C returns 130 as usual.

How it works

claude-shop start is a thin wrapper:

  1. Looks up claude on PATH (or the binary named in CLAUDE_SHOP_CLAUDE_BIN).
  2. Builds an env dict from your current environment plus the two proxy variables.
  3. Runs claude via subprocess.run, passing through any extra arguments.

claude-shop balance issues GET https://claudeshop.duckdns.org/api/users/balance/<token> and prints how much quota is left on your token.

claude-shop check issues GET https://claudeshop.duckdns.org/health so you can quickly tell whether the proxy is up. Token validity itself is checked by the proxy when claude makes its first request.

Buying a token

Tokens are sold on FunPay; see the storefront at claudeshop.duckdns.org.

License

MIT.

Metadata

Release files for claude-shop 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-shop 0.1.1
File Size Uploaded
claude_shop-0.1.1.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for claude-shop 0.1.1
File Interpreter ABI Platform
claude_shop-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / claude_shop-0.1.1.tar.gz

Download URL claude_shop-0.1.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1f712fe7c721c0049b43b32b47b7c80be421ae0c337181274139363e9262f20d
BLAKE2b-256 checksum
How to use checksums
e56c34bf7c30500ca908eef2753dc451c6ae12b2e7aa5989027a12c415d16711
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / claude_shop-0.1.1-py3-none-any.whl

Download URL claude_shop-0.1.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49df4db19022af25515d83c2f956b188bc2c115fa7679599b6278f83d8584862
BLAKE2b-256 checksum
How to use checksums
aefe1eb093f95c02971b921a114b0039ae5df032ead1a4e66207e73c6130fa4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page