opencode-config

opencode-config is a skill for Claude Code, Codex from znlgis/my-opencode-deepseek-config. It costs 80 tokens per session (4,727 once invoked), scanned E, original, MIT.

A local guide for editing OpenCode configuration, including its main config file, agents, skills, commands, permissions, and model routing. OpenCode is a tool for configuring coding agents and their workflows.

In plain words
What is it for?
It helps add or modify agents, skills, commands, permissions, references, and other OpenCode settings.
Why use it?
It records this repository’s required file locations, allowed models, naming conventions, and configuration shapes so changes match local rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions AGENTS.md; mentions OpenCode.

Good fit It helps add or modify agents, skills, commands, permissions, references, and other OpenCode settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/my-opencode-deepseek-config/opencode-config
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 znlgis/my-opencode-deepseek-config --skill opencode-config
Clone the repo
git clone --depth 1 https://github.com/znlgis/my-opencode-deepseek-config

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-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/opencode-config/github.svg)](https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/opencode-config)
Your own site
<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/opencode-config"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/opencode-config/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-config

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/opencode-config"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/opencode-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,727 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 2 findings. 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.00080 $0.04727
Opus 5.5 $0.00032 $0.01891
Sonnet 5.5 $0.00016 $0.00945
Haiku 4.5 $0.00008 $0.00473

Measured yesterday against content hash ce818b2a1049, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade E, and why

opencode-config scanned grade E with 2 findings 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 yesterday.

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.

- `deny` `.env*` reads (except `.env.example`); deny private keys and credential files (`*.pem`, `*.key`, `*.p12`, `*.pfx`, `id_*`, `.ssh/id_*`, `*.npmrc`, `*.pypirc`, `*.git-credentials`, `*.netrc`); `ask` on destructiv

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `deny` `.env*` reads (except `.env.example`); deny private keys and credential files (`*.pem`, `*.key`, `*.p12`, `*.pfx`, `id_*`, `.ssh/id_*`, `*.npmrc`, `*.pypirc`, `*.git-credentials`, `*.netrc`); `ask` on destructiv
opencode/skills/opencode-config/SKILL.md · 178 lines

How it starts

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

OpenCode Config Authoring (v2)

For the authoritative v2 shapes, read the schema in the local docs repo rather than reconstructing them from memory — packages/schema/src/config*.ts is the loader's own contract: C:\Users\Administrator\.local\share\opencode\repos\github.com\anomalyco\opencode@dev. This file only covers this repository's local conventions plus the traps already paid for.

Repository layout

Path Role
opencode.jsonc Global config: model, permissions, plugins, agents, commands, compaction
AGENTS.md Global rules auto-loaded into every agent's context
agents/<name>.md One custom agent per file (frontmatter + system prompt)
skills/<name>/SKILL.md On-demand skills, auto-discovered from the config dir

Hard constraints

  • Only the natively multimodal deepseek/deepseek-flash, with its thinking variants #low / #high / #max. Never another model; the one model handles both text and visual input. A variant (deepseek/deepseek-flash#low) is a thinking mode of the allowed model, not another model.
  • v2-only, native keys. This repo targets OpenCode v2 (the desktop app's bundled opencode-cli.exe, desktop 2.4.4 measured on 2026-12-04). OpenCode 1.18.x is not supported. Write the v2-native spellings — plugins, providers, agents, commands, permissions, media — never the v1 spellings (plugin, provider, agent, command, permission, attachment, small_model, autoupdate, top-level subagent_depth).
  • The opencode on PATH is the wrong binary. Measured 2026-10-16, re-measured 2026-12-04: WinGet ships 1.18.4 there, while the runtime in use is the desktop app's 2.4.4 (2026-12-04). Always invoke "$env:LOCALAPPDATA\Programs\@opencode-aidesktop\resources\opencode-cli.exe"; opencode --version → 1.18.4 means you are about to test the wrong thing.

Target runtime: desktop v2 (CLI 2.4.4)

2.4.3/2.4.4 added no static config keys: permission.ts is unchanged; config.ts only gained Config.Patch's agents.title.model (a patch API shape, not a config key); normalize.ts refactored formatter/lsp normalization and added the MCP OAuth camelCase migration, with unsupportedTopLevel and the legacy branches unchanged. provider.ts raised the DeepSeek/Gemini default headerTimeout to 10 minutes; variant.ts/aisdk.ts/openai-chat.ts are stream/protocol refactors and still carry settings.reasoningEffort → reasoning_effort and body.thinking. 2.4.3 added optional agent name (ID override); 2.4.4 added the experimental.tool.auto / experimental.permission.save policy actions (not used here) and removed the recommended_api flag. (Compared tag-by-tag on 2026-12-04.)

Read the full file on GitHub · 178 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. yesterday Changed · +4 lines scan C → E ce818b2a1049
  2. 6d ago Changed · +3 lines 146a04b29c2b
  3. 12d ago Changed · +3 lines 3459dd880113
  4. 17d ago Changed 238d404fea33
  5. 22d ago Changed 66b69e7d492e
  6. 26d ago Changed 9fec8a608221
  7. 1mo ago Changed · -7 lines 21a80b069068
  8. 1mo ago Changed · +7 lines bbccbc124c0a
  9. 1mo ago Changed a49827950c35
  10. 1mo ago First seen · 168 lines · 80 tokens per session scan C c018b30a852d

Subscribe to this mod's changes

opencode-config is a skill published in the GitHub repository znlgis/my-opencode-deepseek-config (66 stars, last pushed yesterday), licensed MIT. It adds 80 tokens to every session and 4,727 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it E with 2 findings (reaches for credential files, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

opencode-config compared with skills from other repositories

opencode-config next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opencode-configznlgis/my-opencode-deepseek-configSkill66yesterdayMITE80Claude Code, Codex
orca-emulator-androidstablyai/orcaSkill159ktodayMITA102Claude Code, Codex
skill-creatorzhayujie/CowAgentSkill48ktodayMITA61Claude Code, Codex
ralplanYeachan-Heo/oh-my-claudecodeSkill41kyesterdayMITA21Claude Code
create-verification-skillYeachan-Heo/oh-my-claudecodeSkill41kyesterdayMITA45Claude Code
rememberYeachan-Heo/oh-my-claudecodeSkill41kyesterdayMITA20Claude Code
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill4.0ktodayApache-2.0A75Codex