freellmapi-free-tier
Setup FreeLLMAPI free-tier routing for Hermes.
- License 许可
- MIT
- 所属仓库
- zapabob/Skills
- 最近更新
- 2026-10-26
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- freellmapi-free-tier
- author
- Bob Nyan, Hermes Agent
- license
- MIT
- version
- 1.0.0
- metadata
- { "hermes": { "tags": [ "FreeLLMAPI", "Free-Tier", "Failover", "Routing", "Local-Proxy" ], "category": "autonomous-ai-agents", "related_skills": [ "opencode-free-rotation", "hermes-agent" ] } }
- platforms
- [ "linux", "macos", "windows" ]
- description
- Setup FreeLLMAPI free-tier routing for Hermes.
02 资源文件 1
03 SKILL.md 正文
FreeLLMAPI Free Tier Skill
Wire Hermes to a local FreeLLMAPI proxy so ~16 free provider tiers share one OpenAI-compatible endpoint. The proxy rotates on 429/5xx internally; Hermes adds a second failover layer via fallback_providers.
When to Use
- You want Hermes on stacked free LLM tiers without managing 16 API keys in the agent
- FreeLLMAPI is (or will be) running locally on
:3001, exposed via Tailscale athttps://<TAILSCALE_DNS_NAME>/freellmapi/v1(not raw127.0.0.1from remote agents) - You need setup, doctor checks, or fallback-chain wiring after installing the bundled plugin
Prerequisites
- Hermes checkout with
plugins/model-providers/freellmapi/andplugins/freellmapi/ - FreeLLMAPI running locally (Docker, desktop
.exe, ornpm run dev) - Unified API key from the FreeLLMAPI dashboard →
FREELLMAPI_API_KEYin~/.hermes/.env - Optional: upstream provider keys added inside FreeLLMAPI (Google, Groq, OpenRouter free, etc.)
How to Run
- Enable the integration plugin and wire fallback:
terminal(command="hermes freellmapi setup")
- Run health checks (models probe when the API key is set):
terminal(command="hermes freellmapi doctor")
- Optional — make FreeLLMAPI the primary model backend:
terminal(command="hermes freellmapi setup --apply-model")
- Confirm Hermes-wide diagnostics:
terminal(command="hermes doctor")
Quick Reference
| Action | Command |
|---|---|
| Enable plugin + fallback | hermes freellmapi setup |
| Set primary provider | hermes freellmapi setup --apply-model |
| Plugin-only status | hermes freellmapi status |
| Deep probe | hermes freellmapi doctor |
| Enable allow-list entry | hermes plugins enable freellmapi |
Procedure
1. Install and start FreeLLMAPI
Docker (Linux/macOS/WSL):
terminal(command="curl -fsSL https://freellmapi.co/install.sh | bash")
Windows: install the .exe from FreeLLMAPI Releases.
Open http://localhost:3001, add upstream provider keys on Keys, reorder Fallback Chain, copy the unified freellmapi-… bearer token.
Expose the local proxy on tailnet (required for this workspace — do not point Hermes at raw 127.0.0.1 from remote agents):
terminal(command="tailscale serve --bg --set-path=/freellmapi/v1 http://127.0.0.1:3001/v1")
terminal(command="tailscale serve status")
2. Store credentials
Add to ~/.hermes/.env (secrets only):
FREELLMAPI_API_KEY=[REDACTED]
FREELLMAPI_BASE_URL=https://downl.taile4f666.ts.net/freellmapi/v1
3. Enable Hermes plugin
terminal(command="hermes plugins enable freellmapi")
terminal(command="hermes freellmapi setup")
Expected: freellmapi appears in plugins.enabled; fallback_providers[0] becomes {provider: freellmapi, model: auto}.
4. Recommended config
model:
provider: freellmapi
default: auto
base_url: https://downl.taile4f666.ts.net/freellmapi/v1
fallback_providers:
- provider: freellmapi
model: auto
- provider: opencode-zen
model: auto-free
Use read_file on ~/.hermes/config.yaml before editing. Apply with hermes freellmapi setup --apply-model or patch.
5. Verify routing
terminal(command="hermes freellmapi doctor")
terminal(command="hermes doctor")
Start a short chat. FreeLLMAPI responses include X-Routed-Via / X-Fallback-Attempts headers when probed with terminal + curl.
Pitfalls
- FreeLLMAPI must be running before
doctorcan pass the models probe — connection refused is expected when the container is stopped. - The unified key is not an upstream Google/Groq key; upstream keys live only inside FreeLLMAPI.
model.provider: freellmapiwithoutFREELLMAPI_API_KEYfails at runtime — doctor catches this early.- Free tiers are for personal experimentation; do not expect production SLA.
- On Windows native Hermes, prefer the desktop
.exeor WSL Docker over binding Docker to LAN unless you trust the network.
Verification
hermes freellmapi doctor→model_provider_profileandplugin_enabledchecks pass- With key + running proxy →
models_probeok andmodel_count> 0 hermes doctorshows no blocking errors for the active provider- Multi-turn sessions send
X-Session-Id(sticky 30 min) via the bundled model-provider profile
Optional: context handoff on model switch
In FreeLLMAPI .env:
FREELLMAPI_CONTEXT_HANDOFF=on_model_switch
Injects one compact system message when the proxy falls over to a different upstream model mid-conversation.
04 同仓库更多 Skills
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
writing-plans
Write implementation plans: bite-sized tasks, paths, code.
whisper
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
weights-and-biases
W&B: log ML experiments, sweeps, model registry, dashboards.
watchers
Poll RSS, JSON APIs, and GitHub with watermark dedup.
serving-llms-vllm
vLLM: high-throughput LLM serving, OpenAI API, quantization.