wss534857356/dsh-plugin-codex6

dsh-llm-codex-app-server

提供本地认证的Codex应用服务器LLM驱动

AI 分析

适合需要通过本地Codex App Server接入大模型的用户,需配置相关服务。

套件
dsh-llm-codex-app-server
版本
0.1.22
授權
MIT
最近更新
2026年9月12日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wss534857356/dsh-plugin-codex

Configuration

In the Web UI, open Settings → Plugins → Plugin configuration and expand Codex App Server to edit image generation, Codex Web Search takeover, its default model, and its result cap. The card writes through DSH's llm-codex-app-server settings namespace. Saved values apply to the next call; a process-capability change alters the request epoch so a stale cached thread is replaced automatically.

Later profile patch layers can replace the llm-codex-app-server row. A replacement must restate the complete config because Harness patch rows do not deep-merge.

KeyDefaultMeaning
providercodex-localHarness provider route.
displayNameCodex (local login)Selector label.
modelProvideropenaiCodex App Server model-provider id.
modelsSix visible App Server catalog entriesAdvisory model metadata, input modalities, and reasoning choices. The shipped snapshot declares image input for five routes and text-only for Spark; omitted/custom modalities default to text-only. Unlisted safe model ids remain routable as text-only.
timeoutMs300000Wall-clock limit for one App Server turn.
disposeGraceMs3000Process-tree termination grace.
maxJsonRpcLineBytes8388608Maximum bytes accepted from App Server stdout for one newline-delimited JSON-RPC message. Parsed messages do not count toward a cumulative stdout limit.
maxRequestImageBytes20971520Maximum projected base64 image payload hydrated into one model request; oldest model-visible images become deterministic omission text first.
maxStderrBytes65536Maximum retained diagnostic output.
maxRetries1Harness-visible retries for transient process or provider failures. A model-capacity rejection waits five minutes, then retries the original model without rerouting.
maxCachedSessions8Maximum idle or tool-waiting session leases retained before least-recently-used eviction. Active requests may temporarily exceed it.
sessionIdleTimeoutMs600000Idle lifetime of a cached App Server session thread.
imageGenerationEnabledtrueWhether ordinary model turns enable native image generation in the pinned App Server. Compaction turns always keep it off.
webSearchEnabledtrueWhether this provider conditionally takes over its agents' web_search calls; disabling it delegates to the existing DSH Web provider chain.
webSearchModelfollow main modelPlugin-owned search-only model override. Blank uses the initiating Codex model; official Codex config exposes no separate Web Search model key.
webSearchMaxResults8Source cap applied after conditional Codex-native searches are merged.
env{}Explicit child environment layered over Harness's scrubbed parent environment. Use this to pass CODEX_HOME when it is nonstandard.

Example override:

- id: llm-codex-app-server
  name: dsh-llm-codex-app-server
  config:
    provider: codex-local
    displayName: Codex (local login)
    modelProvider: openai
    models:
      - id: gpt-6-astra
        name: GPT-6-Astra
        contextWindow: 272000
        inputModalities: [text, image]
        reasoningEfforts: [low, medium, high, xhigh, max, ultra]
        defaultReasoningEffort: medium
    timeoutMs: 600000
    disposeGraceMs: 3000
    maxJsonRpcLineBytes: 8388608
    maxRequestImageBytes: 20971520
    maxStderrBytes: 65536
    maxRetries: 1
    maxCachedSessions: 8
    sessionIdleTimeoutMs: 600000
    imageGenerationEnabled: true
    webSearchEnabled: true
    webSearchModel: gpt-5.6-luna
    webSearchMaxResults: 8
    env:
      CODEX_HOME: !!js process.env.CODEX_HOME