cd /news/ai-tools/show-hn-selfclaw-self-hosted-multi-m… · home › topics › ai-tools › article
[ARTICLE · art-159307] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: SelfClaw – Self-hosted multi-model AI chat with OpenAI-compatible API

A developer released SelfClaw, an MIT-licensed self-hosted multi-model AI chat system that aggregates DeepSeek, NVIDIA, SiliconFlow, ZenMux, Zhipu, Kimi, MiMo and Mistral behind an OpenAI-compatible FastAPI gateway. SelfClaw adds automatic failover polling — two retries on temporary errors, a 24-hour blacklist for permanent failures and a 3-minute cooldown when all providers are down — plus a CCR closed-loop agent with tool calling, memory, reflection and strategy evolution, file parsing for PDF, Word and Excel, Bing and Baidu search, and edge-tts voice output. The repo also ships Self-IDE, a local Python service on default port 19898 offering an OpenAI-compatible proxy, goal engine, subagent orchestration and cost meter, with a thin VS Code extension as its shell.

read2 min views4 publishedOct 28, 2026
Show HN: SelfClaw – Self-hosted multi-model AI chat with OpenAI-compatible API
Image: Michielbdejong (auto-discovered)

多模型聚合、自动降级、CCR 闭环智能体的 AI 对话系统

  • 多模型聚合 — 支持 DeepSeek、NVIDIA、SiliconFlow、ZenMux、智谱、Kimi、MiMo、Mistral 等多家模型
  • 自动降级轮询 — 模型失败自动切换,临时错误两轮重试,永久故障 24h 黑名单,全网崩溃 3min 冷却
  • CCR 闭环智能体 — 集成工具调用、记忆管理、反思修复、策略进化
  • 文件操作 — 读取/写入/列出目录,支持 PDF、Word、Excel 解析
  • 联网搜索 — 必应+百度双引擎搜索
  • 语音交互 — 支持 edge-tts 语音播报 + speech_recognition 语音输入
  • 模型管理 — 可视化增删改查、拖拽排序、属地判断
  • 多主题 — 深色 / 柔灰 / 浅色三种主题切换
  • CCR HTTP 代理 — 兼容 Claude Code 请求格式,自动转发到 OpenClaw 网关
  • Self-IDE — 本地 AI Agent IDE 服务 + VS Code 扩展
MyAI_Model/
├── DS/                    # Streamlit UI 模块
│   ├── main.py            # 入口文件
│   ├── config.py          # 配置管理
│   ├── chat_engine.py     # 对话引擎(单次/降级轮询)
│   ├── model_manager.py   # 模型增删改查、黑名单、日志
│   ├── tools.py           # 文件操作、搜索、记忆、插件
│   └── ui.py              # 完整 UI 渲染(CSS + 组件)
├── CCR/                   # CCR 闭环智能体
│   └── ccr.py             # Hermes 智能体 + HTTP 代理
├── gateway.py             # FastAPI 网关(多模型路由)
├── openclaw.json          # 模型池 & Provider 配置
├── start.bat              # Windows 一键启动脚本
├── requirements.txt       # Python 依赖
└── README.md
pip install -r requirements.txt

创建 keys.env 文件,填入你的 API Key:

DEEPSEEK_API_KEY=sk-xxx
SILICONFLOW_API_KEY=sk-xxx
NVIDIA_API_KEY=nvapi-xxx
ZENMUX_API_KEY=sk-xxx
ZHIPU_API_KEY=xxx
KIMI_API_KEY=sk-xxx
MIMO_API_KEY=sk-xxx
MISTRAL_API_KEY=sk-xxx

Windows(推荐):

start.bat

手动启动:

python gateway.py

streamlit run DS/main.py --server.port 8502

打开浏览器访问 http://127.0.0.1:8502

{
  "id": "deepseek:v4-flash-paid",
  "actual": "deepseek-v4-flash",
  "provider": "deepseek",
  "label": "DeepSeek V4 Flash",
  "type": "auto",
  "order": 1
}
  • id — 模型唯一标识
  • actual — 实际模型名称(发给 Provider)
  • provider — Provider 名称(对应 providers 配置)
  • type —auto (自动降级池)或manual (手动选择)
  • order — 优先级排序
{
  "deepseek": {
    "baseUrl": "https://api.deepseek.com/v1",
    "apiKey": "${DEEPSEEK_API_KEY}",
    "proxy": ""
  }
}
  • apiKey 支持环境变量引用${VAR_NAME}

  • proxy 为空则使用系统代理

  • 前端 : Streamlit + 自定义 CSS

  • 网关 : FastAPI + Uvicorn

  • AI : OpenAI SDK (兼容多家 Provider)

  • 语音 : edge-tts / pyttsx3 / SpeechRecognition

  • 搜索 : 必应 + 百度双引擎

MIT

This repo also ships Self-IDE under self-ide/: a local Python service (OpenAI-compatible proxy + Goal engine + Subagent orchestration + cost meter, default port 19898) with a thin VS Code extension as its shell. See self-ide/README.md for the architecture diagram, HERMES_ROOT / GATEWAY_PORT configuration and the quickstart.

── more in #ai-tools 4 stories · sorted by recency
── more on @selfclaw 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-selfclaw-sel…] indexed:0 read:2min 2026-10-28 · —