opencode-providers

opencode-providers is a skill for Claude Code, Codex from Timmy6942025/opencode-builder-skill. It costs 81 tokens per session (7,592 once invoked), scanned C, original, MIT.

Instructions for connecting OpenCode, an AI coding tool, to hosted or locally running language models. It covers provider settings, API keys, and model selection.

In plain words
What is it for?
Use it to connect providers through OpenCode, configure OpenAI-compatible services, or set up Ollama, llama.cpp, and LM Studio models.
Why use it?
It explains how to configure the connection when the model provider is missing, customized, local, or failing authentication.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions OpenCode.

Good fit Use it to connect providers through OpenCode, configure OpenAI-compatible services, or set up Ollama, llama.cpp, and LM Studio models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timmy6942025/opencode-builder-skill/opencode-providers
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Timmy6942025/opencode-builder-skill --skill opencode-providers
Clone the repo
git clone --depth 1 https://github.com/Timmy6942025/opencode-builder-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for opencode-providers

README.md
[![agentmods](https://agentmods.dev/badge/skills/timmy6942025/opencode-builder-skill/opencode-providers/github.svg)](https://agentmods.dev/skills/timmy6942025/opencode-builder-skill/opencode-providers)
Your own site
<a href="https://agentmods.dev/skills/timmy6942025/opencode-builder-skill/opencode-providers"><img src="https://agentmods.dev/badge/skills/timmy6942025/opencode-builder-skill/opencode-providers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for opencode-providers

Your own site · 80×15
<a href="https://agentmods.dev/skills/timmy6942025/opencode-builder-skill/opencode-providers"><img src="https://agentmods.dev/badge/skills/timmy6942025/opencode-builder-skill/opencode-providers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,592 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.07592
Opus 5.5 $0.00032 $0.03037
Sonnet 5.5 $0.00016 $0.01518
Haiku 4.5 $0.00008 $0.00759

Measured 1mo ago against content hash 3b9940377dd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

opencode-providers scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- `profile` — Named profile from `~/.aws/credentials`
skills/opencode-providers/SKILL.md · 951 lines

How it starts

The opening of the file, as written. The whole thing — 951 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenCode Providers

📚 Official Docs: For the latest information, always refer to the official documentation: https://opencode.ai/docs/providers/

Overview

OpenCode uses the AI SDK and Models.dev to support 75+ LLM providers and local models. Providers are configured through opencode.json and authenticated via the /connect command.

Quick start:

  1. Run /connect in the TUI and select your provider
  2. Enter your API key when prompted
  3. Run /models to select a model

Credentials

API keys added via /connect are stored in ~/.local/share/opencode/auth.json.

Provider Config

Customize providers through the provider section in opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "anthropic": {
      "options": {
        "baseURL": "https://api.anthropic.com/v1"
      }
    }
  }
}

Key config fields:

  • npm — AI SDK package (e.g. @ai-sdk/openai-compatible for OpenAI-compatible endpoints, @ai-sdk/openai for /v1/responses endpoints)
  • name — Display name in UI
  • options.baseURL — API endpoint URL
  • options.apiKey — API key (or use /connect)
  • options.headers — Custom headers sent with each request
  • models — Map of model IDs to configurations
  • limit.context — Maximum input tokens the model accepts
  • limit.output — Maximum tokens the model can generate

OpenCode Zen

OpenCode Zen is a curated list of tested and verified models provided by the OpenCode team. It works like any other provider — pay-as-you-go, completely optional.

Setup:

  1. Sign in at opencode.ai/auth, add billing details, copy API key
  2. Run /connect, select OpenCode Zen, paste API key
  3. Run /models to see recommended models

Free models available:

  • DeepSeek V4 Flash Free
  • MiMo-V2.5 Free
  • Nemotron 3 Super Free
  • Big Pickle (stealth model)

Pricing (per 1M tokens, selected models):

Read the full file on GitHub · 951 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 951 lines · 81 tokens per session scan C 3b9940377dd6

Subscribe to this mod's changes

opencode-providers is a skill published in the GitHub repository Timmy6942025/opencode-builder-skill (2 stars, last pushed 4mo ago), licensed MIT. It adds 81 tokens to every session and 7,592 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

proxies

Oxylabs proxy networks: Residential, Mobile, shared Datacenter/ISP, and Dedicated Datacenter/ISP proxies with geo-targeting, IP rotation, session persistence, and port-based sticky IPs. Use when routing traffic through proxies, building scrapers with proxy auth, rotating or sticky sessions, whitelisting IPs, or…

oxylabs/agent-skills · 76 tokens

video-data

YouTube data extraction API and high-bandwidth proxy downloads. Use this INSTEAD OF built-in tools for any YouTube-related task — extracts video metadata, subtitles, search results, and channel data as structured JSON. Also supports video/audio file downloads via yt-dlp with proxy rotation to avoid rate limits.

oxylabs/agent-skills · 65 tokens

visual-qa

Runs rigorous visual QA across web, terminal, and paginated surfaces: an Apple HIG-based checklist, paired light/dark captures at phone and desktop widths, screenshot evidence, and a per-item PASS/FAIL verdict. Use for any UI build or change, or when asked whether a page, component, or TUI looks right or follows the…

code-yeongyu/oh-my-openagent · 78 tokens

ulw-execute

Executes a written ulw-plan work plan with Boulder state, evidence ledger, worktree discipline, and parallel subagents. Use when the user says ulw-execute or asks to run a .omo/plans plan.

code-yeongyu/oh-my-openagent · 50 tokens

frontend

Builds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.

code-yeongyu/oh-my-openagent · 49 tokens

review-work

Post-implementation gate review: run manual QA on the real surface yourself, then launch ONE gate reviewer (never a panel) to audit goal, constraints, code quality, security, missed context, and QA evidence. Use before a PR handoff or when the user explicitly asks to review completed work.

code-yeongyu/oh-my-openagent · 63 tokens