Commit 9aa8c1e
committed
feat(settings): add CLIProxyAPI preset quick-pick
Adds a CLIProxyAPI entry to the Add Provider menu so users can
one-click into AddCustomProviderModal pre-filled with the CPA
endpoint (http://127.0.0.1:8317, anthropic wire). The proxy is
heavily requested by Chinese users who run `router-for-me/CLIProxyAPI`
to wrap their Claude/Codex/Gemini OAuth subscriptions.
- packages/shared: new `cli-proxy-api` preset in PROXY_PRESETS
- packages/i18n: `settings.providers.cliProxyApi.*` keys (en + zh-CN)
- apps/desktop: AddProviderMenu gains CLIProxyAPI item that opens
AddCustomProviderModal with pre-filled initialValues; claude-cli
identity headers are injected automatically by the existing
shouldForceClaudeCodeIdentity path1 parent 5727a09 commit 9aa8c1e
5 files changed
Lines changed: 59 additions & 0 deletions
File tree
- .changeset
- apps/desktop/src/renderer/src/components
- packages
- i18n/src/locales
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1524 | 1524 | | |
1525 | 1525 | | |
1526 | 1526 | | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
1527 | 1537 | | |
1528 | 1538 | | |
1529 | 1539 | | |
| |||
2130 | 2140 | | |
2131 | 2141 | | |
2132 | 2142 | | |
| 2143 | + | |
2133 | 2144 | | |
2134 | 2145 | | |
2135 | 2146 | | |
| |||
2139 | 2150 | | |
2140 | 2151 | | |
2141 | 2152 | | |
| 2153 | + | |
2142 | 2154 | | |
2143 | 2155 | | |
2144 | 2156 | | |
| |||
2195 | 2207 | | |
2196 | 2208 | | |
2197 | 2209 | | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
2198 | 2219 | | |
2199 | 2220 | | |
2200 | 2221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
300 | 309 | | |
301 | 310 | | |
302 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
300 | 309 | | |
301 | 310 | | |
302 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
0 commit comments