Usage
You’ve installed and initialized. Here’s how to launch the proxy and monitor your savings.
Launch Claude Code through the proxy
Section titled “Launch Claude Code through the proxy”notdiamond claude # launch Claude Code with routing enablednd claude # shorter alias (same as above)The proxy intercepts the request, routes it to the optimal model tier, and forwards it to Claude Code.
Run the proxy standalone
Section titled “Run the proxy standalone”If you want the proxy running in the background for multiple Claude Code sessions:
notdiamond start # start daemon in background; logs to ~/.notdiamond/proxy.lognotdiamond start -f # start in foreground (useful for debugging; Ctrl+C to stop)To stop or restart:
notdiamond stop # graceful shutdown (SIGTERM, then SIGKILL after 2s if needed)notdiamond restart # stop + start in one commandMonitor and inspect
Section titled “Monitor and inspect”While the proxy runs, inspect its state and behavior:
notdiamond status # show uptime, total requests, errors, and providernotdiamond logs -f # tail recent requests (follow mode; press Ctrl+C to exit)notdiamond doctor # health check: validates config, auth, port, cloud connectivityThe status output shows something like:
notdiamond proxy status uptime: 142s total req: 38 errors: 0 provider: anthropic (…abc1)View your savings
Section titled “View your savings”For detailed breakdowns - tier distribution, per-request routing decisions, and cost trends - visit the Not Diamond dashboard. Log in with the same credentials you used for notdiamond init.
Managing your login
Section titled “Managing your login”Your auth token lasts 60 days. You can check and refresh it:
notdiamond whoami # show current user and token expiry datenotdiamond login # re-authenticate (device-code flow, opens browser)notdiamond logout # sign out and remove the token from ~/.notdiamond/auth.jsonIf your token expires, the proxy will refuse to start and tell you to run notdiamond login.