SailingLoong/loongport-dsh
用于DeepSeek Harness(dsh)OpenAI兼容路由的LoongPort npm安装CLI
项目介绍Project Overview
loongport 是 DeepSeek Harness 的 Cordis 插件包,用于接入已签名的 LoongPort OpenAI 兼容提供商。它通过设置面板选择已验证服务(如 DeepSeek 官方端点或 BestAPI 中转)并配置 API 密钥与 deepseek-v4 系列模型,CLI 也支持手动添加自定义 OpenAI 兼容端点至 DSH 配置。适用于需要使用 DSH 路由访问 LoongPort 目录中可信提供方的场景。请注意,API 密钥只能通过 LOONGPORT_API_KEY 环境变量传入,且 0.2.0 版本不自动化浏览器登录、检索中转或切换套餐。
loongport is a Cordis bundle for DeepSeek Harness that connects to signed LoongPort OpenAI-compatible providers. It exposes a Settings panel to pick a verified provider, paste an API key, and choose models like deepseek-v4-flash or deepseek-v4-pro, and ships a CLI for registering custom OpenAI-compatible endpoints into DSH configuration. Use it when you need DSH routes backed by the LoongPort authority directory. Note that v0.2.0 does not automate browser login, relay discovery, or tier switching, and the CLI reads the API key only from the LOONGPORT_API_KEY environment variable.
请帮我了解并安装插件:【loongport-dsh】【https://github.com/SailingLoong/loongport-dsh】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add loongport
把 SailingLoong/loongport-dsh 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
loongport
loongport is a DeepSeek Harness
(DSH) Cordis bundle for verified LoongPort OpenAI-compatible providers. It also includes an
advanced CLI for custom endpoints.
Install in DeepSeek Harness
Install the public package into the DSH profile you use:
dsh plugin --profile <profile> add loongport
Open Settings → LoongPort in DSH, then:
- Select a verified provider. The default is DeepSeek's official API at
https://api.deepseek.com/v1; BestAPI (https://api.bestapi.store/v1) is the verified relay option. - If you need an account, use the provider's Register or Sign in link. It opens the provider's own website in your browser.
- Generate an API key with the provider and paste it into the dialog.
- Select
deepseek-v4-flashordeepseek-v4-pro, then save.
The signed LoongPort directory is the authority for provider identity, URLs, available models, and any published invitation code. VeriDrop data, when shown, is only a display-only health observation and cannot change provider configuration. DSH credentials store API keys; the Settings page only retains whether a key is configured.
Version 0.2.0 does not automate browser authorization, collect browser sessions, or access cookies/local storage. Registration/login and API-key creation remain on the provider's site.
Advanced custom endpoint
For a manually supplied OpenAI-compatible endpoint, run the CLI directly:
LOONGPORT_API_KEY='your-api-key' npx loongport dsh setup \
--base-url https://relay.example.com/v1 \
--model model-id \
--write
The API key is read only from LOONGPORT_API_KEY; never place it in a command argument. You
can repeat --model to register more than one model.
By default, the command performs a dry run. Add --write to update DSH's
configuration. It uses $DSH_HOME when set, otherwise ~/.dsh, and writes:
settings.yaml: one selectedllm-pi-ai.providers.<route>entry.credentials.yaml: the selected credential name and API key (owner-only)
Other DSH settings, provider routes, and credentials are preserved. The
command uses DSH's built-in llm-pi-ai transport; it does not implement its
own streaming, retries, or tool calls.
Options
--base-url <url> OpenAI-compatible HTTP(S) endpoint (required)
--model <id> Model to expose; repeat for multiple models (required)
--route <name> DSH provider route (default: loongport)
--credential-name <name> DSH credential key (default: LOONGPORT_API_KEY)
--write Apply changes; omitted means dry run
The CLI remains an explicit advanced path. It supports manually provisioned OpenAI-compatible endpoints, but does not automate third-party browser login, relay discovery, desktop-app bridging, or automatic tier switching.
Maintainers
Agents and maintainers should read the agent guide before changing the package and follow the release runbook before publishing.
ccch1mneyyy/working-activity
Ikalus1988/MisakaNet
morluto/rea
linhay/harmony-next.skills
zhoushoujianwork/easyeda-agent
Aisland-SJL/dsh-worktable
oil-oil/dsh-oil-creator