# DSH InfStarAPI ![InfStarAPI](docs/assets/dsh-geek2api-mascot.png) Use the InfStarAPI relay from DeepSeek Harness with a dedicated GPT and DeepSeek model route. ## Features - Default API origin: `https://sub.infstar.org`; override it in Settings → InfStarAPI. - Built-in models: `gpt-6.1-sol`, `gpt-6.2-sol`, `gpt-6.2-astra`, `deepseek-v4.1-flash`, and `deepseek-v4-pro`. - Multiple API keys, per-key model coverage from `/v1/models`, and sub2api balance reads from `/v1/usage`. - InfStarAPI uses separate plugin, provider, settings, credential, RPC, browser-slot, and search-provider IDs, so it can coexist with `dsh-geek2api`. Keys are separate and must be added to each plugin independently. - API keys remain in DSH Host credential storage and never reach the browser. ## Install This repository does not yet have a release download or automatic update endpoint. Build a local package: ```sh pnpm install --frozen-lockfile pnpm run check ``` In DSH, open **Plugins → Add plugin** and install `.artifacts/dsh-infstarapi-0.2.0.tgz` from a local file. Then open **Settings → InfStarAPI** and add an API key for your relay. ## Models and APIs | Model ID | Protocol | | --- | --- | | `gpt-6.1-sol` | OpenAI Responses | | `gpt-6.2-sol` | OpenAI Responses | | `gpt-6.2-astra` | OpenAI Responses | | `deepseek-v4.1-flash` | OpenAI Chat Completions | | `deepseek-v4-pro` | OpenAI Chat Completions | GPT 6.2 context and output limits currently reuse the GPT 6.1 values and have not been verified against the relay. If `/v1/models` uses different IDs, add them under **Settings → InfStarAPI → Visible models → Custom models**. Model requests use the selected protocol's `/v1` endpoint. Balance uses sub2api's `/v1/usage?lite=1`; model coverage uses `/v1/models`. Requests are time-bounded and refuse redirects. Additional gateway origins can be configured one per line under **Settings → InfStarAPI → Endpoints**. Web search is limited to the retained GPT Responses backend. The in-plugin update card is disabled until a release endpoint for the self-hosted repository is configured. ## Development ```sh pnpm install --frozen-lockfile pnpm run check ``` A live gateway check requires an InfStarAPI API key: `node scripts/live-check.mjs`. It consumes a small amount of quota and has not been run for this fork. This fork is based on [dsh-geek2api](https://github.com/CoderKuo/dsh-geek2api) and retains its MIT license; see [LICENSE](LICENSE).