/skillry-ai-and-agent-systems:free-model-workersfrom skillry-ai-and-agent-systems
Hands small, bounded jobs to free models via OpenCode CLI worker sub-agents. Lead writes a brief, worker runs in an isolated folder, lead checks every result. For public or synthetic inputs only.
Ships in skillry-ai-and-agent-systems. 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.
None: SKILL.md is the whole skill.
Let a lead agent hand small, well-defined jobs to free models and keep working while they run. The worker is a separate opencode run process with its own folder, its own permissions and a written brief; the lead checks every result before using it. Free tiers have limits and some keep or train on what you send, so this skill is for public or synthetic inputs and for jobs whose result the lead can verify.
| Provider | Models | Limits | Data terms | Key |
|---|---|---|---|---|
| OpenCode Zen free models | opencode/<model>-free; list with opencode models opencode | Not published; a "Free limit reached" error ends the run. Only official OpenCode clients may use them. | Differs by model. Some are zero retention and no training; others are free "to collect feedback", keep data or may train on it. Read the model's entry on opencode.ai/docs/models. | none |
| NVIDIA API catalog (trial) | nvidia/<org>/<model>; list with opencode models nvidia | Rate limited per account (HTTP 429); no fixed number is published. | Trial use only (testing, evaluation, prototyping, research), not production. NVIDIA logs prompts and outputs and may use them to improve its models. Send no confidential or personal data. Trial terms | NVIDIA_API_KEY from build.nvidia.com |
| OpenRouter free models | openrouter/<org>/<model>:free | 20 requests per minute; 50 a day, or 1,000 a day after buying at least 10 credits (limits). | Free endpoints may log or train on prompts. The account's privacy settings decide whether such providers are used (privacy). | OPENROUTER_API_KEY |
Model names and limits change often. List models at run time instead of copying names from this file, and read the provider's current terms for the model you pick.
out/. Never point a worker at a real project checkout.opencode models <provider>. Match it to the job, and check its data terms against the inputs.opencode run has no run timeout of its own). Read-only jobs get the read-only permission profile; jobs that write files get edit rights inside the job folder only.Brief template (brief.md in the job folder):
Goal: <one sentence>
Inputs: <files in this folder, all public or synthetic>
Constraints: <language, length, style, what not to change>
Output: write <file> in out/ (or answer in one line: <format>)
Acceptance: <the check the lead will run>
Do not ask questions; if something is unclear, state the assumption in the output.
Run a read-only worker (the permission map is the format OpenCode 1.19 applies; OpenCode 2 still reads it):
JOB="$(mktemp -d)"; mkdir -p "$JOB/out" "$JOB/data"
cp brief.md public-input.txt "$JOB/"
cd "$JOB" && env \
PWD="$JOB" XDG_DATA_HOME="$JOB/data" \
OPENCODE_DISABLE_PROJECT_CONFIG=1 OPENCODE_DISABLE_EXTERNAL_SKILLS=1 \
OPENCODE_DISABLE_CLAUDE_CODE=1 OPENCODE_DISABLE_AUTOUPDATE=1 \
OPENCODE_CONFIG_CONTENT='{"permission":{"edit":"deny","bash":"deny","task":"deny","webfetch":"deny","websearch":"deny","external_directory":"deny"}}' \
timeout 600 opencode run --pure --format json -m "opencode/<model>-free" --dir "$JOB" \
"Read brief.md and do the job it describes." < /dev/null
Keep < /dev/null: opencode run adds piped standard input to the message and waits for it to close, so a worker started from a script or another agent can otherwise hang before it starts. For a job that writes files, change "edit":"deny" to "edit":"allow"; external_directory stays denied, so edits stay inside the job folder. For a research job that reads the web, allow webfetch. For NVIDIA or OpenRouter, read the key from your secret store in front of the command, as in NVIDIA_API_KEY="$(<your secret tool>)" env ..., so it sits in that command's environment and never in its arguments; then pass -m nvidia/<org>/<model> or -m openrouter/<org>/<model>:free. timeout is GNU coreutils; on macOS use gtimeout or any wrapper that kills the process after the limit.
out/.PWD and --dir both point at the job folder (OpenCode resolves the project, and the external_directory boundary, from PWD).bash, task and external_directory, and denies edit unless the job writes files.< /dev/null) and the run has a wall-clock limit.--auto, --dangerously-skip-permissions) is used. In opencode run, a permission that resolves to "ask" can hang, so deny it explicitly.PWD; a worker started without it has been seen reading and writing one directory above its folder.Done means each delegated job ran in its own folder under the read-only or folder-bounded permission profile, with public or synthetic inputs and keys only in the environment. The lead checked every result against its acceptance check before using it, and the run record names the provider, model, outcome and verdict.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
5 skills in this plugin
/agent-workflow-designDesign agent systems: roles, handoffs, tool boundaries, routing; LangGraph, Copilot SDK, MCP server scaffolds./prompt-systems-reviewPrompts: write and review, safety and bias, hallucination risk, final execution prompts, AI studio prototypes./rag-vector-search-reviewRAG and retrieval: chunking, embeddings, vector and hybrid search, ranking, grounding.npx claudepluginhub fluxonlab/skillry --plugin skillry-ai-and-agent-systems