Перейти к основному содержимому
C

dsh-plugin-dit

cuboteam/dsh-plugin-dit

Dual-protocol DIT.ai provider bundle for DeepSeek Harness

Установка

dsh plugin --profile web add github:cuboteam/dsh-plugin-dit

README

DIT.ai for DeepSeek Harness

npm version CI license

Use the DIT.ai conversational model catalog in DeepSeek Harness. This profile bundle adds DIT.ai as a native model provider while keeping the stock Harness runtime and tools unchanged.

Install

DeepSeek Harness requires Node.js 22.19 or newer and pnpm.

npx @deepseek-ai/dsh plugin --profile web add dsh-plugin-dit

Set the DIT API key, then start Harness:

export DIT_API_KEY="your-dit-api-key"
npx @deepseek-ai/dsh web

Open Settings → Models, then choose a model and protocol:

  • DIT.ai: recommended default using OpenAI Chat Completions (/v1/chat/completions)
  • DIT.ai Messages: Anthropic Messages (/v1/messages)

DIT.ai exposes every current DIT model that supports OpenAI Chat Completions. DIT.ai Messages exposes every model that supports Anthropic Messages. Both providers share the same DIT_API_KEY.

For headless runs:

npx @deepseek-ai/dsh plugin --profile headless add dsh-plugin-dit
export DIT_API_KEY="your-dit-api-key"
npx @deepseek-ai/dsh --profile headless "Explain this repository"

Discover inside Harness

The plugin is listed in the community directory used by dsh-market and can also be found by dsh-find-plugin.

npx @deepseek-ai/dsh plugin --profile web add dshmarket

Open the Market tab and search for DIT or dsh-plugin-dit.

Protocol support

ProviderHarness APIDIT endpointThinking
ditopenai-completions/v1/chat/completionsModel-specific
dit-messagesanthropic-messages/v1/messagesNative Anthropic Messages thinking

Use DIT.ai for OpenAI-compatible clients. Use DIT.ai Messages for Anthropic content blocks, tool use, native Messages streaming events, and thinking budgets.

What the bundle configures

  • Provider routes: dit and dit-messages
  • OpenAI Chat base URL: https://api.dit.ai/v1
  • Anthropic Messages base URL: https://api.dit.ai (Harness appends /v1/messages)
  • Credential reference: DIT_API_KEY
  • Attribution header: X-DIT-Integration: deepseek-harness
  • Chat models: all 29 models currently advertised with openai_chat_completions, including Claude, DeepSeek V4, Gemini, GLM, GPT, Grok, Kimi, and MiniMax families
  • Messages models: all 10 Claude models currently advertised with anthropic_messages
  • Native Messages thinking with Off, High, and Max levels

The API key is resolved by Harness at request time and is never embedded in the plugin. DIT's authenticated /v1/models response is the protocol authority. Image, audio, and video models are not listed because Harness consumes conversational model APIs.

Security

The bundle contains no API key. DIT_API_KEY remains an environment reference and is resolved by Harness only when a request is sent. Please report security issues privately through GitHub's security advisory form.

Local development

From this directory:

pnpm test
pnpm smoke:harness
DIT_API_KEY="your-dit-api-key" node scripts/check-catalog.mjs
npx @deepseek-ai/dsh plugin --profile web add .
npx @deepseek-ai/dsh --profile web --dump-config

pnpm smoke:harness runs the official Harness headless agent against local /v1/chat/completions and /v1/messages mocks. scripts/check-catalog.mjs compares the bundled model IDs with DIT's live protocol declarations without making a model request.

Uninstall

npx @deepseek-ai/dsh plugin --profile web remove dsh-plugin-dit

License

MIT

Похожие плагины