A desktop extension for ZCode Desktop Extensions (ZDP) that automatically discovers model lists from any OpenAI-compatible /v1/models endpoint and saves them directly into ZCode provider configuration.
This extension requires the ZCode Desktop Extensions (ZDP) host runtime to be installed on your system before it can be loaded. If you have not yet installed ZDP, follow these steps first:
- Close ZCode completely.
- Download ZDP:
Download the latest release archive (
zcode-extensions-vX.Y.Z-windows-x64.zip) from the notmike101/zcode-extensions Releases. - Extract to a permanent directory:
Expand-Archive .\zcode-extensions-v0.3.9-windows-x64.zip -DestinationPath D:\ Set-Location D:\zcode-extensions
- Install the extension loader:
.\bin\zdp.exe install .\bin\zdp.exe launch
- Verify installation: Once ZCode starts, verify that an Extensions item appears in ZCode's left navigation sidebar, directly below Skills.
- Manual Query / Custom Endpoint:
- Connect to any OpenAI-compatible provider Base URL (e.g.
https://api.openai.com/v1, local Ollama, vLLM, LiteLLM, 9router, etc.). - Normalizes endpoint paths automatically (handles trailing
/v1, trailing slashes, or bare base hosts). - Optional API Key support with Bearer authentication.
- Transparent error diagnostics: surfaces HTTP 401, 404, connection timeouts, or malformed responses.
- Previews discovered model IDs.
- One-click persistence: merges discovered models into the selected provider in
~/.zcode/v2/config.jsonand updates the runtime state.
- Connect to any OpenAI-compatible provider Base URL (e.g.
- Isolated UI:
- Operates safely within its dedicated page under Extensions → Model Discovery.
- Does not mutate or overload the native ZCode Settings DOM.
- Clone or download this repository:
git clone https://github.com/lurepos/zcode-model-discovery.git
- Open ZCode and go to Extensions → Installed.
- Click Install folder and select the cloned
zcode-model-discoveryfolder. - The extension will activate immediately and show up as Model Discovery in the extension navigation list.
- Click Extensions → Model Discovery in the sidebar.
- In the Manual Query / Custom Endpoint section:
- Select a target provider from the dropdown to automatically populate its Base URL and API Key, or enter them manually.
- Click ⚡ Query /v1/models.
- If the endpoint succeeds, the discovered models will be listed as tags.
- Click 💾 Save to Provider to persist the models.
If you make modifications to the TypeScript sources:
cd zcode-model-discovery
bun install
bun run buildThen in ZCode under Extensions → Installed, click Reload on the Model Discovery extension card.
