CaiZongyuan/dsh-ag-ui0

dsh-ag-ui

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

包名
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.