github-router 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,7 +28,7 @@ The server runs at `http://localhost:8787`. Now pick your tool below.
28
28
 
29
29
  ## Use with Claude Code
30
30
 
31
- **Option A Interactive (recommended)**
31
+ **Option A: Interactive (recommended)**
32
32
 
33
33
  ```sh
34
34
  npx github-router@latest start --claude-code
@@ -36,7 +36,7 @@ npx github-router@latest start --claude-code
36
36
 
37
37
  Select your models, a launch command gets copied to your clipboard. Paste it in a new terminal.
38
38
 
39
- **Option B Copy-paste config**
39
+ **Option B: Copy-paste config**
40
40
 
41
41
  Create `.claude/settings.json` in your project:
42
42
 
@@ -44,6 +44,7 @@ Create `.claude/settings.json` in your project:
44
44
  {
45
45
  "env": {
46
46
  "ANTHROPIC_BASE_URL": "http://localhost:8787",
47
+ "ANTHROPIC_API_KEY": "dummy",
47
48
  "ANTHROPIC_AUTH_TOKEN": "dummy",
48
49
  "ANTHROPIC_MODEL": "gpt-4.1",
49
50
  "ANTHROPIC_DEFAULT_SONNET_MODEL": "gpt-4.1",
@@ -103,7 +104,8 @@ curl http://localhost:8787/v1/chat/completions \
103
104
  | `/v1/search` | POST | Web search |
104
105
  | `/usage` | GET | Copilot usage & quotas |
105
106
 
106
- All endpoints also available without the `/v1` prefix.
107
+ OpenAI-compatible endpoints are also available without the `/v1` prefix (for example, `/chat/completions`).
108
+ Anthropic endpoints are only available under `/v1/messages`.
107
109
 
108
110
  <details>
109
111
  <summary>Model / endpoint compatibility</summary>
@@ -177,10 +179,10 @@ github-router debug Print diagnostic info
177
179
  | `--port, -p` | Port | 8787 |
178
180
  | `--verbose, -v` | Debug logging | false |
179
181
  | `--account-type, -a` | `individual` / `business` / `enterprise` | individual |
180
- | `--rate-limit, -r` | Min seconds between requests | |
182
+ | `--rate-limit, -r` | Min seconds between requests | - |
181
183
  | `--wait, -w` | Queue requests instead of rejecting on rate limit | false |
182
184
  | `--manual` | Approve each request manually | false |
183
- | `--github-token, -g` | Pass token directly (skip auth flow) | |
185
+ | `--github-token, -g` | Pass token directly (skip auth flow) | - |
184
186
  | `--claude-code, -c` | Generate Claude Code launch command | false |
185
187
  | `--codex` | Generate Codex CLI launch command | false |
186
188
  | `--show-token` | Print tokens to console | false |