接入 OpenCode / OpenClaw / Hermes
OpenCode、OpenClaw、Hermes 等开源编码工具均支持 OpenAI 兼容协议,统一通过 Base URL + Key 接入。
通用配置
export OPENAI_BASE_URL="https://gateway.admesh.ai/v1"
export OPENAI_API_KEY="$ADMESH_API_KEY"
模型选择
在工具的模型设置中,填入 namespace/model 形式的模型 ID,例如:
anthropic/claude-sonnetopenai/gpt-4odeepseek/deepseek-chat
说明
这些工具本质上是「OpenAI 兼容客户端」,因此无需安装额外 SDK,替换 Base URL 与 Key 即可复用全部模型。