| 45 | |
| 46 | |
| 47 | def _print_help() -> None: |
| 48 | print(f"""uncommon-route v{VERSION} — Local LLM Router |
| 49 | |
| 50 | Quick start: |
| 51 | uncommon-route init Guided setup (recommended) |
| 52 | uncommon-route doctor Check whether you're ready to start |
| 53 | uncommon-route serve --daemon Start proxy in background |
| 54 | |
| 55 | Commands: |
| 56 | init Interactive setup wizard for first-time users |
| 57 | route <prompt> Route a prompt (with interactive feedback) |
| 58 | serve Start proxy server (OpenAI + Anthropic) |
| 59 | stop Stop background proxy instance |
| 60 | doctor Check configuration & upstream health |
| 61 | logs Tail background-proxy log |
| 62 | support <sub> Diagnostics bundle + request lookup (bundle|request) |
| 63 | setup <client> Generate config for a client (claude-code) |
| 64 | debug <prompt> Show per-dimension scoring breakdown |
| 65 | feedback <sub> Online learning + confidence calibration (status|rollback|calibrate) |
| 66 | openclaw <sub> OpenClaw integration (install|uninstall|status) |
| 67 | spend <sub> Spending limits (status|set|clear|history) |
| 68 | provider <sub> API key management (list|add|remove|models) |
| 69 | config <sub> Routing config (show|set-default-mode|set-tier|reset-tier|reset) |
| 70 | stats [sub] Routing analytics (summary|history|reset) |
| 71 | explain <prompt> Show v2 signal breakdown for a prompt |
| 72 | telemetry [sub] Anonymous data sharing (status|enable|disable|show-sent|flush) |
| 73 | traces purge Delete all stored trace JSONL files |
| 74 | --version Show version |
| 75 | |
| 76 | Route options: |
| 77 | --system-prompt <text> System prompt for context |
| 78 | --max-tokens <n> Max output tokens (default: 4096) |
| 79 | --mode <name> Routing mode: auto|fast|best |
| 80 | --json Output as JSON |
| 81 | --no-feedback Skip interactive feedback prompt |
| 82 | |
| 83 | Serve options: |
| 84 | --port <n> Port to listen on (default: 8403) |
| 85 | --host <addr> Host to bind (default: 127.0.0.1) |
| 86 | --upstream <url> Upstream API base URL |
| 87 | --composition-config <path> JSON composition policy override |
| 88 | --daemon Run in background (logs to ~/.uncommon-route/serve.log) |
| 89 | |
| 90 | Logs options: |
| 91 | --limit <n> Number of lines to show (default: 50) |
| 92 | --follow Stream new lines (like tail -f) |
| 93 | |
| 94 | Support subcommands: |
| 95 | support bundle [--limit <n>] [--output <path>] |
| 96 | Export a zipped diagnostics bundle from local state |
| 97 | support request <request_id> Show the stored trace for one request as JSON |
| 98 | |
| 99 | Feedback subcommands: |
| 100 | feedback status Show online learning and route-confidence calibration status |
| 101 | feedback rollback Discard online weights, revert to base model |
| 102 | feedback calibrate Fit route-confidence calibration from labeled local traces |
| 103 | |
| 104 | OpenClaw subcommands: |