Skip to main content
S

dsh-moduleapi

skeltx/dsh-moduleapi

Registers Module API (moduleapi.pro) as a model provider - one key, the full 26-model catalog (GPT, Claude, Gemini, DeepSeek, GLM, Grok), with reasoning levels and image input where the model supports it.

Install

dsh plugin --profile web add github:skeltx/dsh-moduleapi

README

dsh-moduleapi

Провайдер Module API (moduleapi.pro) для DeepSeek Harness. Модуль API — OpenAI-совместимый шлюз с одним ключом на все модели (DeepSeek, GPT, Claude, Gemini, Grok и др.).

Плагин активирует штатный мульти-провайдерный адаптер dsh-llm-pi-ai маршрутом moduleapi → https://moduleapi.pro/v1 (OpenAI Chat Completions). Ключ не хранится в конфиге — читается из credential store по референсу MODULEAPI_API_KEY.

Установка

Нужен установленный Node.js — всё остальное подтягивается автоматически.

cd %USERPROFILE%\.dsh\profiles\desktop

:: 1. прописать плагин в манифест профиля (зависимость + бандл):
node -e "const{readFileSync,writeFileSync}=require('fs');const m=JSON.parse(readFileSync('package.json','utf8'));m.dependencies=m.dependencies||{};m.dependencies['dsh-moduleapi']='github:Skeltx/dsh-moduleapi';m.dsh=m.dsh||{};m.dsh.profile=m.dsh.profile||{};m.dsh.profile.bundles=m.dsh.profile.bundles||[];if(!m.dsh.profile.bundles.includes('dsh-moduleapi'))m.dsh.profile.bundles.push('dsh-moduleapi');writeFileSync('package.json',JSON.stringify(m,null,2)+'\n');console.log('manifest ok')"

:: 2. установить пакет (pnpm подтянется через npx)
npx pnpm@latest install

:: 3. перезапустить DeepSeek Harness — готово.

После запуска в выборе модели появится провайдер Module API с пятью моделями.

Ключ

Два варианта:

  • GUI (рекомендуется): Settings → Models → карточка Module API → поле API key — ключ сохранится в credential store по референсу MODULEAPI_API_KEY.
  • Вручную: дописать в ~/.dsh/.credentials.yaml:
refs:
  MODULEAPI_API_KEY: sk-ВАШ_КЛЮЧ

CLI-клиент (без Harness)

client/moduleapi.py — автономный клиент на чистом Python:

python client\moduleapi.py check
python client\moduleapi.py ask "Привет" --model deepseek-v4-flash --stream

Модели (v0.1.1)

Все 26 моделей каталога ModuleAPI, включая:

idназваниемышлениефото
deepseek-v4-flashDeepSeek V4.1 Flashoff/low/medium/high/max✅
deepseek-v4-proDeepSeek V4.1 Prooff/low/medium/high/max—
gpt-5.4 … gpt-6.1-solсемейства GPT-5/6minimal/low/medium/high✅
gpt-oss-120bGPT-OSS 120Blow/medium/high—
claude-sonnet-5 и др. Claude7 моделейoff/low/medium/high✅
gemini-3.7-flash / 3.8-flashGemini Flashoff/low/high✅
gemini-3.1-flash-imageгенерация картинок—(генерация)
glm-5.3GLM 5.3off/high—
grok-4.7Grok 4.7off/low/high✅

Мышление (reasoningEfforts) и ввод картинок (input) указаны только там, где они реально есть у модели.

Удаление

Убрать dsh-moduleapi из dsh.profile.bundles и dependencies в %USERPROFILE%\.dsh\profiles\desktop\package.json, затем npx pnpm@latest install.

Roadmap

  • v0.2 — собственный адаптер со всеми 26 моделями Module API и пресетом агента по умолчанию.

Related plugins