用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/openamer/openamer --skill self-hosted命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | self-hosted |
| description | Use for local LLM fallback, failover, and Ollama health. |
| category | system |
Erkennt lokale LLM-Provider (Ollama, llama.cpp), generiert Fallback-Config, überwacht Health von primary + fallback, und schaltet bei 3× Fehlschlag automatisch auf local um.
# Alle Provider prüfen
python scripts/self-hosted.py --check
# Status + Config anzeigen
python scripts/self-hosted.py --status
# Manuell umschalten
python scripts/self-hosted.py --switch-to local
python scripts/self-hosted.py --switch-to primary
python scripts/self-hosted.py --switch-to auto
# Benchmark (Latenz remote vs local)
python scripts/self-hosted.py --bench
# JSON-Report
python scripts/self-hosted.py --report
# Setup: Ollama installieren + Modelle laden
python scripts/self-hosted.py --setup
| Pfad | Beschreibung |
|---|---|
~/.self-hosted/config.json | Konfiguration (primary, fallback, failover) |
~/.self-hosted/state.json | Laufender State (active_provider, failures, history) |
~/scripts/self-hosted.py | Hauptscript |
~/scripts/self-hosted-cron.py | Cron-Wrapper (alle 5 Min) |
Das Script erkennt beim Start automatisch das beste verfügbare Ollama-Modell:
python scripts/self-hosted.py --setup
Das lädt automatisch (abhängig von Verfügbarkeit):
0 = alles OK (primary aktiv)1 = Fallback aktiv (local läuft, primary down)2 = kein LLM verfügbar