katsos/dsh-claude-cli

DeepSeek Harness LLM provider that runs your installed Claude Code CLI as the model backend — no API key.

Bundle 已验证 MIT TypeScript 未知
Bundle 已验证

已收录

2

Model

Bundle 已验证

版本未知
语言TypeScript
许可证MIT
在 GitHub 查看

预览

功能介绍

LLM 供应商:把本机已安装的 Claude Code CLI 作为模型后端,请求走已订阅的 Claude 账号,无需按量计费的 API key;原生工具调用经 MCP 桥接。

适合

  • 本机已安装并登录 Claude Code,希望将其作为 DSH LLM 后端的用户。
  • 希望复用现有 CLI 认证,而非使用按量 API key 的 Claude 订阅工作流。
  • 需要通过 MCP schema 桥接转换 Claude 工具调用,并仍由 DSH 执行工具的原生 Agent 工作流。

不适合

  • PATH 中没有可用 `claude`、Node 版本不兼容或缺少所需 DSH LLM 包的机器。
  • 需要通过 npm 安装的部署;该插件目前从本地目录安装。
  • 尚未确认自动化使用现有 Claude 登录是否符合其订阅使用条款的用户。

README

dsh-claude-cli

Use the Claude Code CLI you already have installed as a DeepSeek Harness LLM provider.

No API key. The plugin runs claude as a subprocess and streams its output back through the harness’s LLM seam, so requests authenticate as whatever claude is already logged in as — a login you should check your plan’s usage terms against before automating.

The harness stays the agent. The CLI’s own agent loop, tools, settings, memory files, and MCP servers are all switched off; what is left is the model call, driven by the harness’s system prompt, history, and tools.

Install

Requires a working claude on PATH (Claude Code), Node ^22.19 || >=24, and a harness with @deepseek-ai/dsh-llm.

Install it into the profile you actually run, pointing at your checkout of this repository. The package declares dsh.bundle, so it joins that profile’s layer stack and the anthropic-claude-cli route is composed on every start:

dsh plugin --profile web add ../dsh-claude-cli

A path relative to where you run the command is fine here. This plugin is not on npm, so the directory is the only way to install it today.

Restart the harness afterwards — a profile’s layer stack is read at startup, so a running server keeps the composition it booted with. The models then appear under Claude Code CLI in the model picker.

Invoking dsh

The commands here assume dsh resolves. How you reach it depends on how the harness is installed:

Harness install Command
Global dsh …
Source checkout pnpm dsh …
Neither npx @deepseek-ai/dsh …

Use the scoped name with npx. Unscoped dsh on npm is an unrelated JavaScript shell, last published in 2022.

That said, the third row is the odd one: this is a plugin for a harness, so a profile to install it into has to exist already. If you have never run dsh, install the harness first rather than reaching for npx.

常见问题常见问题

在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:katsos/dsh-claude-cli。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。