treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:caozhiyuan/dsh-copilot-api
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness provider for a copilot-api gateway. Tested with Harness 0.2.1-rc.2.
dsh plugin --profile web add dsh-copilot-api
Restart Harness after the first install. The package inserts entry copilot-api-provider. No profile configuration is required.
Defaults:
baseURL: COPILOT_API_BASE_URL, or http://localhost:4141 when unset (with or without /v1). An explicit profile setting takes precedence.protocol: openai-responsesGITHUB_COPILOT_API_KEYStore the key in Harness credentials or as a launch environment variable of that name. Configuration stores the reference name, not the key.
Harness also loads $DSH_HOME/.env (~/.dsh/.env by default). For example:
COPILOT_API_BASE_URL=http://localhost:4141
GITHUB_COPILOT_API_KEY=dummy
Replace dummy with a gateway API key when authentication is enabled, then restart Harness. Inherited environment variables and saved Harness credentials take precedence over .env.
Use anthropic-messages as protocol for Messages.
Override the inserted entry only when a default is wrong. Keep the id copilot-api-provider, and restate every connection field you still need:
- id: copilot-api-provider
config:
baseURL: http://localhost:4141
apiKey: GITHUB_COPILOT_API_KEY
protocol: openai-responses
modelRefreshInterval: 120000
apiKey is a credential reference. apiKeyEnv is the same kind of name; when both are set, they must match. headers can be set to custom request headers. modelRefreshInterval is in milliseconds and defaults to 120000 (automatic refresh every 2 minutes); set it to 0 to disable periodic refresh.
cd /absolute/path/dsh-copilot-api
bun install
bun run build
dsh plugin --profile web add /absolute/path/dsh-copilot-api
Model mapping and overrides: docs/models.md. Headers and sessions: docs/headers.md. Development: docs/development.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: dsh-copilot-api。