CaiZongyuan/dsh-ag-ui0

dsh-ag-ui

Authenticated AG-UI HTTP and SSE gateway plugin for DeepSeek Harness

AI 분석

核心用途是为外部前端提供安全的 HTTP 和 SSE 接入网关。适合需要将 DSH 能力暴露给外部应用或自定义前端的用户。

패키지
dsh-ag-ui
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 23.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CaiZongyuan/dsh-ag-ui

Profile configuration

Environment variables are the shortest setup path. A Profile can instead override the bundle row in its own cordis.patch.yml:

- insert:
    - id: ag-ui
      name: dsh-ag-ui
      disabled: false
      config:
        provider: openai
        model: gpt-5.6-sol
        sharedSecret: !!js process.env.DSH_AG_UI_SHARED_SECRET
        path: /ag-ui
        maxThreads: 100
        frontendToolTimeoutMs: 300000

    - id: ag-ui-invariant
      name: dsh-ag-ui/invariant
      disabled: false

A later Profile patch replaces the bundle row's complete config; include every value that deployment needs.

Configuration

provider, model, and sharedSecret are required. sharedSecret must contain at least 16 UTF-8 bytes.

FieldDefaultPurpose
path/ag-uiExact Host HTTP route
providerrequiredRegistered DSH model provider route
modelrequiredModel ID owned by the provider
sharedSecretrequiredBearer secret shared only with the trusted BFF
tenantHeaderx-dsh-tenant-idTrusted tenant identity header
userHeaderx-dsh-user-idTrusted user identity header
allowNonLoopbackfalsePermit a non-loopback Host bind explicitly
maxRequestBytes262144Maximum request body bytes
maxIdentityBytes256Maximum bytes per protocol or identity ID
maxMessages256Maximum message count per request
maxMessageBytes524288Maximum combined message JSON bytes
maxContexts32Maximum context entry count
maxContextBytes131072Maximum combined context JSON bytes
maxTools32Maximum browser Tool count
maxToolBytes131072Maximum browser Tool JSON bytes
maxToolSchemaDepth16Maximum browser Tool schema depth
maxForwardedPropsBytes65536Maximum forwardedProps JSON bytes
maxStateBytes65536Maximum state JSON bytes
maxThreads100Maximum process-local live threads
threadIdleMs1800000Idle thread lifetime
frontendToolTimeoutMs300000Maximum browser Tool result wait
maxRunEvents4096Maximum events retained per run
maxRunEventBytes2097152Maximum retained event bytes per run
maxRunsPerThread32Maximum retained run ledger entries per thread

A non-loopback DSH WebServer requires allowNonLoopback: true. Prefer a loopback Gateway behind a same-host authenticated BFF.