/minli-skill:freetoken-botsfrom minli-skill
Discovers free AI models daily from OpenRouter and OpenCode Zen, tracks quotas/rate limits, and runs a local OpenAI-compatible router that fails over between free models. Also delegates tasks to OpenCode via `ftb delegate`.
Ships in minli-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Python ≥3.9, standard library only. Entry point: python3 <skill-dir>/scripts/ftb.py <command> (or <skill-dir>/bin/ftb). Data in ~/.freetoken-bots/ (override with FTB_HOME).
| source | official rule | how to use it |
|---|---|---|
OpenRouter free (:free) | own API key, any client | ftb serve router → any agent, model auto, failover only between free models |
OpenCode Zen free (*-free, big-pickle) | docs: "Free-tier chat models require OpenCode; use paid models or Go from other clients." No key needed inside OpenCode | use OpenCode itself, or from another agent run ftb delegate "<task>" --dir <repo> (OpenCode does the whole task) |
Never expose Zen free models as a model API to other agents, never imitate the OpenCode client, and never call Zen free models from outside OpenCode. If the user asks for that, explain the rule and offer OpenCode / ftb delegate.
On first activation run ftb doctor, then ask the user:
OPENROUTER_API_KEY is unset): needed for routing OpenRouter free models. Link: https://openrouter.ai/settings/keys → Create API key.Have the user run ftb setup themselves in a terminal (in Claude Code: ! ftb setup). It offers to open the key page, reads the key without echo, saves it to ~/.freetoken-bots/keys.env (mode 600, readable by cron), validates it for free, and offers to install OpenCode. Do not ask the user to paste keys into the chat. ftb setup --from-env saves an already-exported key.
The OpenCode Personal API key (https://opencode.ai/console/account) is for paid Console models / Go only. This skill does not need or use it.
Also tell the user: "这个 skill 需要每天早上 8 点跑一次扫描(ftb schedule --install cron 或 launchd),不配的话免费名单会过期。"
ftb doctor: is the key set, is the catalog fresh, is the router running, is OpenCode installed, which agents are present. If anything from First install is missing and the user hasn't declined, ask.ftb scan.ftb models, ftb report, ftb quota, ftb opencode status, ftb route --tools.ftb serve, then ftb agent <id> for its config, or ftb run <agent> -- ... (no file edits).opencode directly, or ftb delegate "<task>" --dir <repo> [--json] from any agent that can run shell commands.| command | what it does |
|---|---|
ftb setup | first install: OpenRouter key + install OpenCode |
ftb scan | fetch OpenRouter + Zen catalogs, record changes, write ~/.freetoken-bots/reports/<date>.md |
ftb models [--tools] [--provider p] [--all] | free models: tools / context / end date / routable or OpenCode-only |
ftb report [--hours 24] | new free, no longer free, delisted, ending soon, anonymous, OpenCode-only |
ftb quota | measured usage, live OpenRouter /key data, learned blocks, documented policy — each labelled |
ftb probe --model <key> [--tools] / --all | real test call to OpenRouter free models |
ftb route [--tools] | failover order, no calls |
ftb serve | router at http://127.0.0.1:8787/v1 |
ftb opencode status|install|setup | OpenCode state, Zen free models the client offers; setup adds OpenRouter free models to OpenCode (asks, backs up) |
ftb delegate "<task>" [--dir d] [--model m] [--json] | hand a whole task to OpenCode on a free model, with failover |
ftb agents / ftb agent <id> [--apply] | support matrix / config for one agent |
ftb run <agent> -- <args> | launch codex / opencode / aider / any command via the router, no config edits |
ftb schedule [--install cron|launchd] | daily 08:00 scan |
models/provider/plugins/web-search fields and adds provider.max_price = 0. Paid model requests get HTTP 400. ftb delegate only accepts Zen models priced 0 in the latest scan. Don't suggest workarounds.:free is the PAID variant. Resolve ids with ftb models, never from memory.ftb quota labels it. Zen has no quota API.ftb delegate hands off whole tasks (implement X, fix Y). It is not a per-message model API. If it fails after OpenCode already produced output, it does not retry on another model because files may have changed; check the repo state before retrying.ftb agent pi|opencode --apply and ftb opencode setup back up and add only the freetoken provider; show --dry-run first. Prefer ftb run, which edits nothing.FTB_ROUTER_KEY.| agent | router (OpenRouter free) | Zen free |
|---|---|---|
| OpenCode | verified 1.19.6 (ftb opencode setup / ftb run opencode) | native |
| Pi | verified 1.6.0 (ftb agent pi --apply; pi --provider freetoken --model auto) | ftb delegate |
| Codex CLI | verified 0.163.0 (Responses API translated; ftb run codex) | ftb delegate |
| Grokbot / Muse / Dot / Hermes / Claude Code / any shell-capable agent | only if it supports a custom OpenAI endpoint | ftb delegate (verified live: OpenCode 1.19.6 + Zen beam-free) |
| Aider, Cline, Roo Code | documented, not run here | ftb delegate |
| Gemini CLI | not supported (needs Gemini protocol) | ftb delegate |
| Claude Code router | not supported yet (needs Anthropic Messages; /v1/messages = 501) | ftb delegate |
scripts/radar.py (v0.2: OpenRouter-only scan/probe, Pi cache path) still works for old cron jobs; new setups should use ftb.
README.en.md (opens in a new tab)README.ja.md (opens in a new tab)README.ko.md (opens in a new tab)README.md (opens in a new tab)README.pt-BR.md (opens in a new tab)bin/ftb (opens in a new tab)examples/codex-config.toml (opens in a new tab)examples/config.example.json (opens in a new tab)examples/curl.sh (opens in a new tab)examples/openai_sdk.py (opens in a new tab)examples/opencode.json (opens in a new tab)examples/pi-models.json (opens in a new tab)freetoken_bots/__init__.py (opens in a new tab)freetoken_bots/agents.py (opens in a new tab)freetoken_bots/catalog.py (opens in a new tab)freetoken_bots/cli.py (opens in a new tab)freetoken_bots/common.py (opens in a new tab)freetoken_bots/opencode.py (opens in a new tab)freetoken_bots/providers.py (opens in a new tab)freetoken_bots/quota.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
free-models, openrouter, opencode, zero-cost, model-router, quota-tracker
Generated from the plugin's indexed repository (limin112/min-skill) — no native marketplace selected
npx claudepluginhub p/limin112-minli-skill8 skills in this plugin
/copy-kakasi「copyKakasi / 逐镜复刻」:把一段有权使用的视频(MV、短片、广告)按原片分镜 1:1 重拍——构图、机位、动作、节奏、配乐都照原片,只把演员换成用户本人、本人明确同意的成年人或 AI 虚构角色。流程:切镜头 → 选镜头、剪歌 → 取首尾帧 → 换脸或打码重画 → 用户自己部署的 MiniMax H3 首尾帧模式逐镜头生成 → 重采样回原帧数、去油腻调色 → 拼接配歌 → 上下对照版。触发:copyKakasi、copy-kakasi、「逐镜复刻」「1:1 复刻」「照着原片一镜一镜重拍」「把这段 MV 换成我来演」,以及成片后按镜头返工(「这镜不要说话」「动作太快」「脸崩了」「跟原片剧情不符」)。不用于:把未同意的真人、未成年人、公众人物的脸放进去;只仿风格、内容重写的新片。/digital-human-koubo把任意一篇文章(技术教程、产品发布、新闻解读、读书笔记、论文、公众号长文……)做成数字人讲解视频,全程本地开源模型、不接云端生成服务:读文章 → 写多角色口播稿(每段带一个声明式画面 visual:大字、配图、圈重点、数据卡、终端、流程、标签、柱状图、金句、片尾阵容)→ 本地文生图出角色首帧(默认 MOSS-Image,可挂自己训的人物 LoRA)→ 本地 MiniMax H3(ComfyUI + Turbo 加速,双卡)按段生成「画面 + 原生配音」→ whisper 逐段回听 → 逐字对齐 → 通用 Remotion 模板出片(配色 / 配乐有魔幻、科技、温暖、史诗四种情绪预设,配乐代码合成无版权)。支持多角色同台(真人感主讲、搭档吐槽、Pixar 风动物、二次元 Q 版)、多语言混说(如英式英语开场切普通话)、双语字幕;另有花字口播 / 发布解读 / 多主播等风格和 48 个包装组件。触发:讲解这篇文章、把文章做成视频、数字人口播、数字人讲解、AI 主播讲一下、用我的数字人讲、本地 H3 生成口播、做个教程讲解视频、加花字 / 加包装。不用于:冒充真人、用别人的脸或声音。/explain-videoBuild a narrated explainer video from a concept — discussion → structure → HTML slide deck → narration script → TTS voice → subtitles → background music → Playwright screen recording → ffmpeg composite. Use when asked to make a 讲解视频 / explainer / talking-deck video, to turn a topic or article into a narrated video or animated slide deck, or to redo one stage of an existing deck (re-record, re-mix BGM, regenerate captions, swap the voice)./handwriting-stand-upTurn a screen recording of handwriting (or a photo of handwritten text) into a single-file HTML "continuation" — the recording plays, the ink lifts off the page as solid 3D letters, a short animated story plays out in front of them (medieval-marginalia characters on a pop-up paper stage, captions, synthesized sound), and everything lies back down on the page at the end. Use when the user sends a video or photo of handwriting and asks to make it 立起来 / 站起来讲故事 / 做成 HTML 延续 / 让手写字变 3D / animate handwritten words into a story, or asks for a new story on an existing stand-up project./hdr-videoConvert an SDR video (or a clip of it) into a 10-bit HEVC HLG / BT.2020 HDR file whose highlights glow on HDR screens, and build a left/right SDR-vs-HDR comparison in a single file. Pure ffmpeg plus a generated 3D LUT (no zscale / libplacebo needed); parameters are chosen from measured luma stats, and the output tags are verified. Use when asked to make a video HDR / 做成 HDR / SDR 转 HDR / HLG / 亮瞎 / 高光发光, to make a clip look like an HDR reference, to compare SDR and HDR side by side (左右对比), or to judge or describe a scene that suits HDR./video-remake「videoRemake / 视频翻拍」:给一段有权使用的视频,聊几句,出另一个版本——镜头运动、节奏、每个节拍的时间点都照原片,内容整个换掉:换世界观(现代街头 → 古代皇宫、欧洲中世纪)、换画风(真人 → 动漫、水墨、黏土)、换完整角色(脸、身体、服装一起换)、或者一路穿越不同画风。流程:拆原片 → 和用户定节拍表 → 定妆图 → 逐张重绘关键帧(原片里的人先换成灰模)→ 按节拍分段、每段首尾都钉在关键帧上逐段生成 → 变速对齐、拼片配声 → 节点图管理页。生成视频这一步不绑定任何平台:用户说用什么就用什么——自己的显卡和本地模型、任何视频平台的接口、或者在网页上手工生成后把片子放回来。触发:videoRemake、video-remake、「翻拍这个视频」「把这个视频改成古代 / 中世纪 / 动漫风」「照这个视频的运镜做一个…版本」「换成另一个世界观」「整个角色换掉」「穿越不同画风」,以及成片后按段返工。只换演员的脸、别的都不动,用 copy-kakasi。不用于:把未同意的真人、未成年人、公众人物放进去;去水印;绕过平台下载限制。Other plugins' skills for the same job