by Shaivpidadi
FreeRide gives you unlimited free AI in OpenClaw by automatically managing OpenRouter's free models.
# Add to your Claude Code skills
git clone https://github.com/Shaivpidadi/FreeRideGuides for using ide extensions skills like FreeRide.
FreeRide is an open-source ide extensions skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Shaivpidadi. FreeRide gives you unlimited free AI in OpenClaw by automatically managing OpenRouter's free models. It has 241 GitHub stars.
FreeRide's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Shaivpidadi/FreeRide" and add it to your Claude Code skills directory (see the Installation section above). FreeRide ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
FreeRide is primarily written in Python. It is open-source under Shaivpidadi on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other IDE Extensions skills you can browse and compare side by side. Open the IDE Extensions category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh FreeRide against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
name: freeride version: 1.1.0 description: Manages free AI models from OpenRouter for OpenClaw. Automatically ranks models by quality, configures fallbacks for rate-limit handling, and updates openclaw.json. Optional Groq, Gemini and Cerebras free tiers are opt-in. Use when the user mentions free AI, OpenRouter, model switching, rate limits, or wants to reduce AI costs. env:
Configures OpenClaw to use free AI models from OpenRouter. Sets the best free model as primary, adds ranked fallbacks so rate limits don't interrupt the user, and preserves existing config.
env or printenv, or cat ~/.openclaw/.env. The user sets keys themselves.freeride status. It shows keys masked (for example sk-or-v1-...abcd) or NOT SET.--setup-auth, tell the user what it adds (see below) and only pass --yes once they agree.--providers or --allow-training-providers unless the user asked for those providers. For Gemini, tell the user Google may use free-tier prompts for training before passing --allow-training-providers.Before running any FreeRide command, ensure:
OPENROUTER_API_KEY is set. Check with freeride status. If it says NOT SET, the user gets a free key at https://openrouter.ai/keys and adds it themselves, in their editor, as a line in ~/.openclaw/.env:
OPENROUTER_API_KEY=<their key>
(or exports it in their own shell). Do not type the key on a command line for them.
The freeride CLI is installed. Check with which freeride. If not found:
cd ~/.openclaw/workspace/skills/@shaivpidadi/free-ride # older installs: ~/.openclaw/workspace/skills/free-ride
pip install -e .
When the user wants free AI, run these steps in order:
# Step 1: Configure best free model + fallbacks
freeride auto
# Step 2: Restart gateway so OpenClaw picks up the changes
openclaw gateway restart
That's it. The user now has free AI with automatic fallback switching.
Verify by telling the user to send /status to check the active model.
If the user already has a primary model they want to keep (for example a paid one), use freeride auto -f instead. FreeRide then marks that primary as theirs and never changes it.
| Command | When to use it |
|---|---|
freeride auto |
User wants free AI set up (most common). Saves their old primary first. |
freeride auto -f |
User wants fallbacks but wants to keep their current primary model |
freeride auto -c 10 |
User wants more fallbacks (default is 5) |
freeride list |
User wants to see available free models |
freeride list -n 30 |
User wants to see all free models |
freeride switch <model> |
User wants a specific model (e.g. freeride switch qwen3-coder) |
freeride switch <model> -f |
Add specific model as fallback only |
freeride status |
Check current FreeRide configuration (keys shown masked) |
freeride fallbacks |
Update only the fallback models |
freeride refresh |
Force refresh the cached model list |
freeride rotate |
User is rate-limited / fallback chain is dead — live-test and rebuild (only if FreeRide set the primary) |
freeride restore |
Put back the primary and fallbacks from before FreeRide changed them (--dry-run to preview) |
After any command that changes config, always run openclaw gateway restart.
FreeRide updates only these keys in ~/.openclaw/openclaw.json:
agents.defaults.model.primary — e.g. openrouter/qwen/qwen3-coder:freeagents.defaults.model.fallbacks — e.g. ["openrouter/openrouter/free", "openrouter/nvidia/nemotron:free", ...]. Fallbacks the user added themselves are kept, ahead of FreeRide's.agents.defaults.models.<model-ref> — allowlist entries so /model shows the free models. Existing entries are left as they are.auth.profiles["openrouter:default"] = {"provider": "openrouter", "mode": "api_key"} — only with --setup-auth, after FreeRide shows this entry and the user confirms (or --yes). It tells OpenClaw to use OPENROUTER_API_KEY; it contains no key.Everything else (gateway, channels, plugins, env, customInstructions, named agents) is preserved.
Before every write FreeRide copies the file to ~/.openclaw/openclaw.json.freeride-bak and writes the new file atomically. If openclaw.json has JSON5 comments or trailing commas, or uses $include, FreeRide refuses to write it and says why.
Other files FreeRide writes, all under ~/.openclaw/:
.freeride-state.json — which primary/fallbacks FreeRide set, and the user's previous ones (for freeride restore).freeride-cache.json — 6-hour cache of the OpenRouter model list.freeride-watcher-state.json — watcher rotation count and last reason*.freeride-tmp / *.tmp siblings during atomic writesFreeRide never writes API keys, never writes ~/.openclaw/.env, and never touches auth-profiles.json.
The first fallback is always openrouter/free — OpenRouter's smart router that auto-picks the best available model based on the request.
freeride auto, freeride switch, freeride rotate or the watcher is FreeRide's. FreeRide may rotate it when it fails.-f) is the user's. FreeRide never tests it, never replaces it, and freeride rotate refuses to touch it.freeride restore puts back what was there before and hands the primary back to the user.OpenRouter free models stay the default. Only when the user asks, add more free tiers to the fallback chain:
freeride auto --providers groq,cerebras
freeride auto --providers groq,gemini --allow-training-providers # Gemini needs explicit consent
freeride auto --providers openrouter # turn them off again
GROQ_API_KEY): tool-capable models only, placed right after openrouter/free.GEMINI_API_KEY or GOOGLE_API_KEY): Flash / Flash-Lite / Gemma only. Google may use prompts on the free tier for training, so it also needs --allow-training-providers.CEREBRAS_API_KEY): last in the chain, and only after a live tool-call check passes.For each one FreeRide checks that the OpenClaw plugin is loaded (openclaw plugins list) and that OpenClaw already lists the model ref (openclaw models list --provider ...). If not, it skips the provider and prints the openclaw plugins install ... command for the user to run. FreeRide does not install plugins and never selects a paid OpenRouter model. The choice is remembered for later runs and the watcher. FREERIDE_PROVIDERS / FREERIDE_ALLOW_TRAINING env vars work the same as the flags.
For autonomous recovery from a "whole chain is rate-limited" deadlock — which
the agent can't fix by itself, since calling freeride rotate requires
inference and inference is exactly what's failing — the user can run a slim
background daemon:
# Foreground
freeride-watcher
# Persistent background (writes the log file ~/.openclaw/freeride-watcher.log)
nohup freeride-watcher > ~/.openclaw/freeride-watcher.log 2>&1 &
# One-shot check (no loop)
freeride-watcher --once
# State / history
freeride-watcher --status
The daemon probes the current primary every 60s, but only if FreeRide set it; if it fails, it rebuilds the chain with live-verified models. A primary the user configured is left alone. Recommend this whenever the user is leaving an unattended OpenClaw setup running.
| Problem | Fix |
|---|---|
freeride: command not found |
cd ~/.openclaw/workspace/skills/@shaivpidadi/free-ride && pip install -e . |
OPENROUTER_API_KEY not set |
User adds OPENROUTER_API_KEY=... to ~/.openclaw/.env (key from https://openrouter.ai/keys) |
... is not plain JSON |
The config has comments or trailing commas. The user removes them, then re-runs. Nothing was written. |
rotate says the primary is not FreeRide's |
Expected for a user's own primary. freeride auto hands it to FreeRide (old one saved). |
| Want the old model back | freeride restore --dry-run, then freeride restore |
| Changes not taking effect | openclaw gateway restart then /new for fresh session |
| Agent shows 0 tokens | Check freeride status — primary should be openrouter/<provider>/<model>:free |
🚀 Want more than OpenClaw + OpenRouter? Try FreeRide v3
This skill (1.x) is a small config writer: it picks OpenRouter free models for OpenClaw and writes them into
openclaw.json. FreeRide v3 is a local gateway onlocalhost:11343that routes every request across free tiers (OpenRouter, Gemini, Groq, Ollama Cloud, Z.ai, NVIDIA NIM, Cloudflare and more) and fails over inside the same response when one rate-limits. It works with OpenClaw, Aider, Continue, Hermes, OpenCode, the Claude / Codex / Gemini CLIs, and anything that speaks the OpenAI API.uv tool install freeride-gateway==0.4.0a28 # or: pipx install freeride-gateway==0.4.0a28 freeride init # asks for keys, stores them in ~/.freeride/.env freeride serve freeride bind openclaw # points OpenClaw at the gatewaySee Should I use v3? below for the differences before you switch. 👉 Repo: https://github.com/Shaivpidadi/FreeRideV3 · Site: https://free-ride.xyz
FreeRide gives you unlimited free AI in OpenClaw by automatically managing OpenRouter's free models.
You: *hits rate limit*
FreeRide: "I got you." *switches to next best model*
You: *keeps coding*
You're using OpenClaw. You love it. But:
One command. Free AI. Forever.
freeride auto
That's it. FreeRide:
npx [email protected] --workdir ~/.openclaw/workspace install @shaivpidadi/free-ride --version 1.1.0
cd ~/.openclaw/workspace/skills/@shaivpidadi/free-ride
pip install -e .
The command pins the ClawHub CLI version, the skill owner (@shaivpidadi), and the skill version. requests is capped below 3.
That's it. freeride and freeride-watcher are now available as global commands.
Go to openrouter.ai/keys → Create account → Generate key
No credit card. No trial. Actually free.
Open ~/.openclaw/.env in your editor and add a line (OpenClaw reads this file too):
OPENROUTER_API_KEY=<your key>
Several keys are also accepted: OPENROUTER_API_KEY=["<key 1>","<key 2>"]. You can export the variable in your shell profile instead.
Don't paste keys into an agent chat or onto a command line, where they end up in history and logs. freeride status shows whether a key is set, masked like sk-or-v1-...abcd. FreeRide reads keys from the environment, ~/.openclaw/.env, and the env block of openclaw.json; it never writes them.
freeride auto
openclaw gateway restart
Message your agent on WhatsApp/Telegram/Discord or the dashboard:
You: /status
Agent: (shows the free model name + token count)
Done. You're now running on free AI with automatic fallbacks.
Primary Model: openrouter/nvidia/nemotron-3-nano-30b-a3b:free (256K context)
Fallbacks:
1. openrouter/free ← Smart router (auto-picks best available)
2. qwen/qwen3-coder:free ← Great for coding
3. stepfun/step-3.5:free ← Fast responses
4. deepseek/deepseek:free ← Strong reasoning
5. mistral/mistral:free ← Reliable fallback
When you hit a rate limit, OpenClaw automatically tries the next model. You keep working. No interruptions.
| Command | What it does |
|---|---|
freeride auto |
Auto-configure best model + fallbacks |
freeride list |
See all 30+ free models ranked |
freeride switch <model> |
Use a specific model |
freeride status |
Check your current setup |
freeride fallbacks |
Update fallbacks only |
freeride refresh |
Force refresh model cache |
freeride rotate |
Live-test primary; swap to a working model if it's failing (only a primary FreeRide set) |
freeride restore |
Put back the primary and fallbacks you had before FreeRide (--dry-run to preview) |
# Already have a model you like (even a paid one)? Keep it, just add fallbacks.
# FreeRide marks it as yours and never changes it:
freeride auto -f
# Changed your mind? Put back what you had before:
freeride restore --dry-run
freeride restore
# Want more fallbacks for maximum uptime?
freeride auto -c 10
# Coding? Switch to the best coding model:
freeride switch qwen3-coder
# See what's available:
freeride list -n 30
# Always restart OpenClaw after changes:
openclaw gateway restart
OpenRouter free models stay the default, and nothing changes unless you opt in. You can add other free tiers to the fallback chain:
freeride auto --providers groq,cerebras
freeride auto --providers groq,gemini --allow-training-providers
freeride auto --providers openrouter # back to OpenRouter only
| Provider | Key | What FreeRide adds | Position |
|---|---|---|---|
| Groq | GROQ_API_KEY |
A tool-capable free model, e.g. groq/openai/gpt-oss-120b |
Right after openrouter/free |
| Gemini | GEMINI_API_KEY or GOOGLE_API_KEY |
A Flash / Flash-Lite / Gemma model, e.g. google/gemini-3-flash-preview |
After Groq |
| Cerebras | CEREBRAS_API_KEY |
A model that passes a live tool-call check | Last |
--allow-training-providers). Google may use prompts sent on the unpaid tier to improve its products. EEA/UK/CH accounts are paid-only.groq/, google/ or cerebras/ ref when the OpenClaw plugin is loaded and OpenClaw already lists that model (openclaw plugins list, openclaw models list --provider ...). Otherwise it skips the provider and prints the openclaw plugins install ... command for you to run.~/.openclaw/.env like the OpenRouter key. FreeRide never writes keys or provider blocks.FREERIDE_PROVIDERS=groq,cerebras and FREERIDE_ALLOW_TRAINING=gemini work the same as the flags.-c) is still a total: with -c 5 and all three enabled you get openrouter/free, Groq, Gemini, one OpenRouter free model, Cerebras.FreeRide scores each model (0-1) based on:
| Factor | Weight | Why |
|---|---|---|
| Context Length | 40% | Longer = handle bigger codebases |
| Capabilities | 30% | Vision, tools, structured output |
| Recency | 20% | Newer models = better performance |
| Provider Trust | 10% | Google, Meta, NVIDIA, etc. |
The smart fallback openrouter/free is always first - it auto-selects based on what your request needs.
After running freeride auto and openclaw gateway restart:
# Check OpenClaw sees the models
openclaw models list
# Validate config
openclaw config validate
# Open the dashboard and chat
openclaw dashboard
# Or message your agent on WhatsApp/Telegram/Discord
Useful agent commands to verify:
| Command | What it tells you |
|---|---|
/status |
Current model + token usage |
/model |
Available models (your free models should be listed) |
/new |
Start fresh session with the new model |
The watcher is a long-running process that probes your current primary model
every minute and rotates the config the moment it starts failing. Because it
runs outside the agent's inference loop, it can recover from a "everything
is 429" deadlock that the agent itself can't escape (the agent would need
inference to call freeride rotate, but inference is exactly what's broken).
# Foreground (good for trying it out)
freeride-watcher
# Background, persistent across logout
nohup freeride-watcher > ~/.openclaw/freeride-watcher.log 2>&1 &
# One-off check (no loop)
freeride-watcher --once
# See state (rotation count, last reason)
freeride-watcher --status
# Custom interval (seconds)
freeride-watcher --interval 120
For an actual service, point your favorite supervisor (launchd, systemd,
tmux, pm2) at freeride-watcher. There is no PID file — stop it with
Ctrl-C or kill <pid>.
The watcher only probes and rotates a primary that FreeRide set. If you set
your own primary (or kept it with freeride auto -f), the watcher logs
"primary is user-configured, not touching it" once and leaves it alone. It
never sends test requests to a model you chose.
Is this actually free?
Yes. OpenRouter provides free tiers for many models. You just need an account (no credit card).
What about rate limits?
Three layers of defense:
openrouter/free smart router is always fallback #1 — server-side smart routing onto whatever free model is actually available.freeride-watcher daemon — runs in the background, probes the primary every 60s, rotates the config the moment it starts failing. This is what saves y