Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WEB_PORTNo写作台监听端口,仅绑定 127.0.0.1。5173
PYTHON_PATHNoPython 解释器路径,需装 pymupdf。默认空,使用 PATH。
OPENAI_MODELNo模型 ID。默认空。
SAG_CLI_PATHNoSAG CLI 路径。默认:~/.local/bin/sag(.exe)
SAG_DIRECTORYNo指定 SAG 索引根目录。默认空,自动探测。
OPENAI_API_KEYNo云端模型必填;本地模型可留空。默认空。
PDF_TIMEOUT_MSNoPDF 提取超时。120000
SAG_TIMEOUT_MSNoSAG 调用超时。60000
OPENAI_BASE_URLNoOpenAI-compatible 端点,可为本地 http://127.0.0.1:11434/v1。默认空。
SAG_SEARCH_MODENoauto = 语义优先、缺 JEV 时本地正则回退;semantic / literal 强制单模式。auto
MODEL_TIMEOUT_MSNo单次模型调用超时。120000
MODEL_MAX_RETRIESNo网络错误/429/5xx 重试次数,401 不重试。2
WEB_SEARCH_API_KEYNoTavily / Serper / Brave 的 API Key。默认空。
WEB_SEARCH_PROVIDERNoduckduckgo / tavily / serper / brave。duckduckgo
EVIDENCE_WRITER_DATANo数据目录。默认:%APPDATA%/evidence-writer
WEB_SEARCH_TIMEOUT_MSNo单次联网检索超时。12000
WEB_SEARCH_MAX_RESULTSNo单次联网检索最多返回条数。6
EVIDENCE_WRITER_WEB_SEARCHNo设为 1 / true 启用联网核查,默认关闭;1 表示允许检索词出网。false
EVIDENCE_WRITER_MONTHLY_TOKEN_QUOTANo本地月度 token 上限;0 表示不限量。0

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources