opencode-models
Skill by darribas
Edits the model and provider wiring in frontend_agent/opencode.json. It adds and removes models for Ollama and OpenAI-compatible servers, changes the default model, and resolves loose model names against live catalogs.
Install opencode-models
Built from the published package, never by AI.
git clone --depth 1 https://github.com/darribas/gds_env /tmp/gds_env && mkdir -p ~/.claude/skills && cp -r /tmp/gds_env/frontend_agent/skills/opencode-models ~/.claude/skills/opencode-modelsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/darribas/gds_env /tmp/gds_env && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gds_env/frontend_agent/skills/opencode-models ~/.gemini/antigravity-cli/skills/opencode-modelsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
opencode-models is an agent skill for editing frontend_agent/opencode.json, the baked opencode config for the gds_agent image. It covers two providers: ollama, reached through OLLAMA_HOST, and openai, which works with any OpenAI-compatible server such as vLLM or llama.cpp, reached through OPENAI_HOST. The skill adds and removes model entries, changes the default model, and resolves loose model names against the live Ollama tag list or the endpoint's model list.
When adding a model, the skill first establishes which provider serves it, then queries that provider's catalog and validates the JSON afterwards. For a longer context window, it describes creating a new Ollama tag from a Modelfile with num_ctx on the Ollama host, then registering that tag in opencode.json. It is written for people maintaining this repository's opencode configuration.
Written from the project's SKILL.md and checked against it.
What it can do
- Add a modelAdds an entry to the ollama or openai provider after checking the live model list on that host.
- Remove a modelDeletes a model entry from opencode.json and repoints the default if it was removed.
- Change default modelUpdates the top-level model field to a provider/tag entry that exists in the config.
- Resolve loose namesMatches a partial model name case-insensitively against the live Ollama tag list or endpoint model list.
- Create context variantDescribes creating a larger-context Ollama tag from a Modelfile with num_ctx, then registering it.
What you need
- Access to an Ollama host via OLLAMA_HOST
- An OpenAI-compatible server via OPENAI_HOST, optional
- curl
- python3 or jq
Try asking
- Add an Ollama model to opencode after checking the ollama list.
- Change opencode's default model to the one I name.
- Create a 128k context version of an existing Ollama model.
Good to know
- Adding an entry does not create the model on its backend.
- Context variants are described only for the ollama provider.
- Adding a third provider is outside the skill's scope.
- Removing an entry does not delete the model on its server.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: frontend_agent/skills/opencode-models/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to opencode-models
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
opencode-models: common questions
How does opencode-models decide which provider a model belongs to?
If only one host resolves, that provider is used. If both resolve, the name is matched against both live catalogs, and an ambiguous or missing match means asking the user.
Can it make a bigger context window for an openai-provider model?
The source says context length for that provider is set on the server, so the skill asks how that server exposes the option instead of guessing.
Does it validate the changes it makes?
Yes. After any edit it checks that opencode.json is valid JSON and that the default model matches an entry under the same provider.
How do I install opencode-models?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is opencode-models free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is opencode-models safe to use?
It scores 67 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to opencode-models?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
