|
10 | 10 | | `4` | Rate Limits | `/alpha/billing/credits` | 5-hour and weekly usage bars with exceed warnings | |
11 | 11 | | `5` | Models | 44 models sorted by plan access | Scrollable list, Enter to copy codename | |
12 | 12 | | `6` | Proxy Config | Bridge state | Port, API URL, endpoints, uptime | |
| 13 | +| `7` | Cost Sync | Local CLI agent configs | Detected agents, provider list, model pricing, sync status | |
13 | 14 |
|
14 | 15 | ## Key Bindings |
15 | 16 |
|
16 | 17 | | Key | Context | Action | |
17 | 18 | |-----|---------|--------| |
18 | | -| `1-6` | Always | Switch info page | |
| 19 | +| `1-7` | Always | Switch info page | |
19 | 20 | | `r` | Always | Refresh all API data | |
20 | 21 | | `o` | Always | Copy OpenAI endpoint URL to clipboard | |
21 | 22 | | `a` | Always | Copy Anthropic URL to clipboard | |
22 | 23 | | `p` | Always | Configure proxy port (with availability scan) | |
23 | 24 | | `h` | Always | Open help | |
24 | 25 | | `q` | Always | Quit (with confirmation) | |
25 | 26 | | `Ctrl+C` | Always | Status bar hint (use [q] to quit) | |
26 | | -| `up/down` | Main | Scroll content / navigate models | |
| 27 | +| `up/down` | Main | Scroll content / navigate models / select cost sync agent | |
27 | 28 | | `PgUp/PgDn` | Main | Scroll 10 lines | |
28 | 29 | | `Enter` | Models page | Copy selected model codename to clipboard | |
| 30 | +| `c` | Cost Sync page | Sync model pricing to selected agent | |
29 | 31 | | `Ctrl+L` | Always | Toggle log sidebar | |
30 | 32 | | `f` | Log open | Toggle log fullscreen / sidebar | |
31 | 33 | | `Shift+C` | Log open | Clear all logs (with Y/N confirmation) | |
@@ -77,6 +79,24 @@ Models in page 5 are prioritized by your plan: |
77 | 79 | - Meta Muse Spark 1.1 |
78 | 80 | - Nvidia Nemotron 3 Ultra |
79 | 81 |
|
| 82 | +## Cost Sync (Page 7) |
| 83 | + |
| 84 | +Syncs Command Code model pricing into your CLI agent configs so that |
| 85 | +agent-side cost tracking shows real per-token rates. |
| 86 | + |
| 87 | +- `[7]` opens the Cost Sync page |
| 88 | +- `[c]` syncs pricing for the selected agent (hint shown on the page) |
| 89 | +- `[up/down]` selects the agent (OpenCode, Aider, Goose) |
| 90 | +- Detected agents are listed with their config paths |
| 91 | +- Bridge providers are listed by name and endpoint, for example |
| 92 | + `Khip01 - Command Code (Go Plan) [127.0.0.1:17077]` |
| 93 | +- All Command Code models with pricing are shown, grouped by Open Source and Premium |
| 94 | +- Models in your config appear bright white with "(will be implemented)" |
| 95 | +- Models not in your config are greyed out |
| 96 | +- Pricing is validated against the live bridge `/v1/models` before syncing |
| 97 | + |
| 98 | +The equivalent CLI command is `commandcode-bridge cost-sync`. |
| 99 | + |
80 | 100 | ## Authentication |
81 | 101 |
|
82 | 102 | The bridge reads credentials from `~/.commandcode/auth.json` (created by `cmd login`). |
|
0 commit comments