CLI launcher for Claude Code through the claude.shop proxy.
Project description
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-shopin a SYSTEM TERMINAL — not the Python REPL. On Windows that meanscmd.exeor PowerShell. On macOS / Linux that's Terminal / bash / zsh. Pastingclaude-shop ...after the>>>Python prompt will give youSyntaxError: invalid syntaxbecause 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:
- Looks up
claudeonPATH(or the binary named inCLAUDE_SHOP_CLAUDE_BIN). - Builds an env dict from your current environment plus the two proxy variables.
- Runs
claudeviasubprocess.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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_shop-0.1.1.tar.gz.
File metadata
- Download URL: claude_shop-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f712fe7c721c0049b43b32b47b7c80be421ae0c337181274139363e9262f20d
|
|
| MD5 |
d87844d5aa8935c89f2bc078395b31f1
|
|
| BLAKE2b-256 |
e56c34bf7c30500ca908eef2753dc451c6ae12b2e7aa5989027a12c415d16711
|
File details
Details for the file claude_shop-0.1.1-py3-none-any.whl.
File metadata
- Download URL: claude_shop-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49df4db19022af25515d83c2f956b188bc2c115fa7679599b6278f83d8584862
|
|
| MD5 |
15b8b8965f819f1c8dd60ff286bff6a9
|
|
| BLAKE2b-256 |
aefe1eb093f95c02971b921a114b0039ae5df032ead1a4e66207e73c6130fa4c
|