HiSeax / dsh-codely

목록에 있음

DSH in-process LLM adapter for the Codely LiteLLM gateway (codely.tuanjie.cn). No login state bundled — bring your own registered account credentials.

main모델 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:HiSeax/dsh-codely

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 0e07714동기화 2026. 8. 18.

dsh-codely

English | 简体中文

In-process DSH (DeepSeek Harness) LLM adapter: use the Codely LiteLLM gateway (codely.tuanjie.cn) directly as a model backend inside DSH — no local proxy process needed.

⚠️ Unofficial integration based on the Codely CLI protocol; may break when the gateway changes. No login state is bundled with this package — you must register your own account and provide your own credentials.

Before you start: register & obtain your own login state

  1. Register an account at https://codely.tuanjie.cn.
  2. Provide credentials to the plugin in one of two ways:

Way A — static API key (simplest)

Get an sk- API key from your Codely account (or from the official Codely CLI), then provide it through:

  • plugin config apiKey, or
  • environment variable CODELY_API_KEY.

The plugin uses the key directly and never touches any local login files.

Way B — official CLI login state

Install the official Codely CLI, launch it and log in with your own registered account. The login writes the state files the plugin reads:

~/.codely-cli/oauth_creds.json
~/.codely-cli/org.json

The plugin reads these by default; point it at your own login directory with the codelyHome config if yours lives elsewhere. This also enables automatic OAuth token refresh when the gateway returns 401/403.

On first launch without any credentials, the plugin fails with a clear error pointing to this README — it never falls back to anyone else's login state.

Install (web profile)

dsh plugin --profile web add dsh-codely

Then register the row in $DSH_HOME/profiles/web/cordis.patch.yml:

- insert:
    - id: codely
      name: 'dsh-codely'
      config:
        apiKey: 'sk-...'          # optional if CODELY_API_KEY is set
        # codelyHome: 'C:\\Users\\you\\.codely-cli'   # optional login-state dir

DSH hot-reloads the patch. The codely provider appears in the model list.

Configuration

FieldDefaultMeaning
apiKeyCODELY_API_KEY envStatic sk- key from your own Codely account
codelyHome~/.codely-cliDirectory holding your own oauth_creds.json + org.json (official CLI login state)
baseURLhttps://codely-litellm.tuanjie.cn/v1LiteLLM gateway base URL
modelsGLM-5.3 onlyModel list exposed to DSH
sessionIdrandom UUIDlitellm session id
clientHeadersgateway-required headersUA / X-Stainless / litellm_session_id
retryPolicyresolved defaultLLM retry policy

Verify

cd <package>
node test/smoke.mjs
# expects your credentials; prints the exchanged key prefix and a model reply

Development & publishing

npm pack --dry-run
npm publish

No credentials are ever included: the published tarball contains only lib/ plus docs. Add your own secrets at runtime via config or environment variables.

Notes

  • Login credentials are resolved in this order: config apiKeyCODELY_API_KEYcodelyHome login state.
  • The adapter caches the exchanged sk- key and OAuth access token in-process, and refreshes once on 401/403.
  • Unofficial reverse-engineered protocol — gateway updates may break it.

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨
문서감지됨

저장소 정보

언어
JavaScript
라이선스
MIT
최신 릴리스
v0.1.0
마지막 업데이트
2026. 8. 15. 오전 9:50

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.