
# DSH PackyCode API
[简体中文](README.md) · **English**
**Pick models, rotate keys, and read balances in DSH with a PackyCode API key.**
The `PackyCode` model group ships with the plugin. No YAML edits and no separate provider setup.
[](https://github.com/BaronCyrus/dsh-packycode-api/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/dsh-packycode-api)
[](https://www.npmjs.com/package/dsh-packycode-api)
[](LICENSE)
[](https://github.com/BaronCyrus/dsh-packycode-api/stargazers)
[Features](#features) · [Install](#install) · [Daily use](#daily-use) · [Models and groups](#models-and-groups) · [Update and uninstall](#update-and-uninstall)
## Features
| Capability | What it does |
| --- | --- |
| **Built-in model route** | Adds a `PackyCode` group to the model picker. No provider configuration and no `cordis.patch.yml` edits |
| **Choose visible models** | All models are selected by default in Settings. Unchecking a model immediately hides it from the picker; existing sessions can keep using it |
| **Keys used in order** | An exhausted or rejected key is disabled and the next usable key takes over; the failed step is retried on that key |
| **Keys chosen by group** | Each key lists its PackyCode groups and the models they reach; when the active key's groups cannot reach the selected model (no `cc` group for Claude, say), that turn runs on a stored key whose groups can |
| **Visible balance** | Settings lists each key's remaining, used, limit, reset period, and a usage bar, plus a total of those keys. The composer shows the active key's remaining balance |
| **Claude through the local CLI** | `claude-opus-5-5`, `claude-sonnet-5-5`, and `claude-haiku-5-5` run the official Claude Code CLI on this device. Settings can detect it and install it |
| **Web search through PackyCode** | Optional: DSH's `web_search` searches through PackyCode, with a DeepSeek or GPT backend, for every request or for PackyCode models only |
| **Image generation and editing** | Separate image keys, GPT Image 2 / 2.5 Flare / 2.5 Sunburst, model and quality settings, reference edits and original PNG storage; generation and editing verified against the gateway |
| **Credentials stay on the machine** | Keys live in the DSH credential file. The browser receives labels, state, and balances only |