freeride
Skill57 starsChanged 7 months agoMITView on GitHub
Use this skill when the user has FreeRide installed (binary at ~/.local/bin/freeride, gateway on http://localhost:11343) or asks how to route their AI workloads across free-tier providers. FreeRide is "Ollama for free cloud inference" — a local OpenAI-compatible gateway that routes across OpenRouter, Groq, NVIDIA NIM, Cloudflare Workers AI, HuggingFace, Cerebras, and Ollama. Detect it via curl http://localhost:11343/health, then wire any OpenAI-shaped tool against base URL http://localhost:11343/v1 with API key "any". Failover across providers and keys is automatic.
- Pipes a download into a shell
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- zrtch/awesome-skillstheir own version, first seen Nov 29, 2026
- Shaivpidadi/FreeRidetheir own version, first seen Oct 24, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Shaivpidadi/FreeRide★ 238same name
- zrtch/awesome-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 120
When key 1 hits 429, FreeRide cools it for 120s and uses key 2 next.
- Very specific: line 164
Check freeride list — does it surface usable models per provider?
- Very specific: line 166
If a 503 hits during a request, the _freeride_provider field or X-FreeRide-Provider header on the failed attempt's response (if any) tells …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
FreeRide
FreeRide is a local gateway running on http://localhost:11343. It accepts
the OpenAI Chat Completions API and forwards to whichever free-tier provider
the user has keys for, failing over across providers and keys when one rate
limits or errors.
This skill teaches you (the agent) how to detect FreeRide, wire any OpenAI-shaped client against it, diagnose failures, and use its CLI.
Detect that FreeRide is running
In order, cheapest first:
- Health check —
curl -s http://localhost:11343/health. Returns{"ok": true, "version": "0.x.y", "providers": [...]}when up. - Process check —
lsof -iTCP:11343 -sTCP:LISTEN -n -P 2>/dev/nullorss -tlnp | grep 11343on Linux. - Config presence —
~/.freeride/config.jsonexists (means FreeRide was installed even if not currently running).
The port 11343 is hard-coded — FreeRide refuses to auto-pick a different
port because agent configs (Aider's OPENAI_API_BASE, Continue's
apiBase, etc.) are written against this exact value.
Wire any OpenAI-shaped client against it
export OPENAI_API_BASE=http://localhost:11343/v1
export OPENAI_API_KEY=anyThe API key value is irrelevant — FreeRide doesn't authenticate inbound
requests; it uses the user's real provider keys (which it reads from env
vars like OPENROUTER_API_KEY) for outbound calls. Setting any,
unused, or any literal string works.
Python (openai SDK)
from openai import OpenAI
client = OpenAI(base_url="http://localhost:11343/v1", api_key="any")
resp = client.chat.completions.create(
model="openrouter/free", # or any model from /v1/models
messages=[{"role": "user", "content": "hello"}],
)curl
curl http://localhost:11343/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model": "openrouter/free", "messages": [{"role": "user", "content": "hi"}]}'Streaming
"stream": true works. Server emits text/event-stream with data: {...}
chunks and a final data: [DONE]. The first chunk is buffered until
upstream confirms the stream is real — if upstream fails before the first
chunk, FreeRide retries on the next provider/key transparently. After the
first chunk has shipped, mid-stream errors propagate as a truncated stream.
Discover available models
curl http://localhost:11343/v1/modelsReturns the OpenAI {"object": "list", "data": [...]} shape. Models from
all configured providers appear in one flat list, deduped by id. Add
?refresh=true to bypass the 6h cache.
Identify which provider served a request
- Non-streaming: response JSON includes
_freeride_provider: "<name>". - Streaming: response includes
X-FreeRide-Provider: <name>header.
Useful for debugging: if completions seem off-tone or off-spec, check this field to know whether a fallback kicked in.
CLI reference
freeride serve # start gateway on localhost:11343
freeride bind <agent> # write gateway URL into agent config
freeride list # list available free models, ranked
freeride status # show OpenClaw config + cache age (v2)
freeride auto # auto-configure OpenClaw (v2)
freeride rotate # swap primary if it fails (v2)
freeride telemetry [on|off] # manage telemetry beacon
freeride-watcher # background daemon, rotates on failurefreeride bind supports: aider, continue, hermes, openclaw. It
writes the agent's config atomically and preserves unrelated keys. After
bind, the agent works without further user steps.
Provider env-var setup
| Provider | Env var(s) | Notes |
| OpenRouter | OPENROUTER_API_KEY | Most-tested provider |
| Groq | GROQ_API_KEY | Hardcoded free-tier allowlist |
| NVIDIA NIM | NVIDIA_API_KEY | Curated allowlist |
| Cloudflare Workers AI | CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID | Account ID is part of URL |
| HuggingFace | HF_TOKEN (or HUGGINGFACE_API_KEY) | $0.10/mo Free, $2/mo PRO budget |
Multi-key rotation is supported — pass keys as a JSON array:
export OPENROUTER_API_KEY='["sk-or-v1-key1","sk-or-v1-key2"]'When key 1 hits 429, FreeRide cools it for 120s and uses key 2 next.
Cooldowns persist across restarts (~/.freeride/cooldown.json).
Troubleshooting
| Symptom | Likely cause | Fix |
| 503 from gateway | All (provider, key) pairs failed | Check freeride list for which providers have usable keys; check upstream provider status |
command not found: freeride after install | Console-script not on PATH | Use python -m freeride as fallback, or add ~/.local/bin to PATH |
| First-run banner spam | Telemetry disclosure (one-time) | Run freeride telemetry off to opt out |
No providers configured | No env vars set | Set at least one provider key (see table above) |
httpx.HTTPStatusError import error | Old install with httpx 1.0.dev3 | Upgrade FreeRide; v0.3.0a3+ pins httpx>=0.27,<1 |
Failover semantics (for diagnosing why a request went where)
Per request, FreeRide walks (provider, key) pairs in registration order.
For each pair:
RATE_LIMITorAUTH→ mark this key cooling for 120s, advance keys within the same provider.MODEL_NOT_FOUND→ skip remaining keys for this provider, advance to the next provider (other keys of the same provider won't help).QUOTA_EXHAUSTED→ advance providers (same as MODEL_NOT_FOUND).- 5xx /
UNAVAILABLE→ advance pair. OK→ ship the response, stamp the provider header.
Once the first chunk of a streaming response has shipped, mid-stream upstream errors propagate as a truncated stream — they do NOT trigger failover (the client has already started receiving content).
Telemetry
On by default. Hourly POST to https://telemetry.free-ride.xyz/v1/beacon
with {installation_id, version, os, tokens_served, request_count,
providers_active, uptime_hours}. Never sent: prompts, completions,
model IDs, API keys, hostnames, IPs.
Opt out: freeride telemetry off.
When the user reports "FreeRide isn't working"
curl -s http://localhost:11343/health— is it running?curl -s http://localhost:11343/v1/models | jq '.data | length'— does it know about any models? (zero usually means no provider keys.)- Check
freeride list— does it surface usable models per provider? - Echo provider env vars —
env | grep -E '(OPENROUTER|GROQ|NVIDIA|CLOUDFLARE|HF)_'. - If a 503 hits during a request, the
_freeride_providerfield orX-FreeRide-Providerheader on the failed attempt's response (if any) tells you who was last tried.
Links
- Source: https://github.com/Shaivpidadi/FreeRideV3
- PyPI: https://pypi.org/project/freeride-gateway/
- Install:
curl -sSL https://api.free-ride.xyz/install.sh | sh
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

