doctor

doctor is a command for Claude Code from paruff/uFawkesAI. It costs 15 tokens per session (856 once invoked), scanned A, a copy of oc-health, MIT.

A configuration health check for OpenCode, its selected models, authentication setup, and provider availability.

In plain words
What is it for?
Use it to validate installed configuration files, check provider authentication safely, and report the health of the configured model channels.
Why use it?
It detects missing or invalid configuration and provider problems before they prevent OpenCode from starting or using its intended models.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: agent in frontmatter; mentions Gemini CLI; mentions OpenCode.

Good fit Use it to validate installed configuration files, check provider authentication safely, and report the health of the configured model channels.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/paruff/ufawkesai/doctor
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.

Clone the repo
git clone --depth 1 https://github.com/paruff/uFawkesAI

Made for: Claude Code.

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 doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/paruff/ufawkesai/doctor/github.svg)](https://agentmods.dev/commands/paruff/ufawkesai/doctor)
Your own site
<a href="https://agentmods.dev/commands/paruff/ufawkesai/doctor"><img src="https://agentmods.dev/badge/commands/paruff/ufawkesai/doctor/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 doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/paruff/ufawkesai/doctor"><img src="https://agentmods.dev/badge/commands/paruff/ufawkesai/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod 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.00015 $0.00856
Opus 5.5 $0.00006 $0.00342
Sonnet 5.5 $0.00003 $0.00171
Haiku 4.5 $0.00002 $0.00086

Measured 12d ago against content hash 5af1b57b0aa0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

doctor scanned grade A with 0 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to oc-health — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

opencode/commands/doctor.md · 79 lines

How it starts

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

You are a configuration diagnostician for OpenCode. Perform a comprehensive health check on this setup. The canonical config lives in this repo's opencode/ directory and is installed to ~/.config/opencode/ by opencode/sync.sh — check the installed files (that is what opencode boots from). Never print a full API key — first 8 characters only.

1. Check Core Configuration Files

Verify existence and syntax of:

  • ~/.config/opencode/opencode.jsonc (JSONC — validate by running opencode debug config and checking it exits 0)
  • ~/.config/opencode/fallback.json (pure JSON — python3 -m json.tool <file>)

For each file, report: exists (yes/no), valid syntax (yes/no).

2. Verify Provider Authentication

This setup runs on free channels only: Google models come from opencode-antigravity-auth's OAuth (Gemini CLI + Antigravity quotas), and the opencode provider hosts free models — no paid API keys required.

Use !echo $VARIABLE | head -c 8 (first chars only, never the full key):

  • GEMINI_API_KEY — optional; OAuth is the primary path. Unset is fine (⚠ info).
  • NVIDIA_API_KEY — leftover export in ~/.zshrc; nvidia-proxy is REMOVED, so this key is unused → warn if set.
  • OPENROUTER_API_KEY — openrouter fallback hops were removed → info only.
  • OPENCODE_ZEN_TOKEN — unset is fine if auth is stored via opencode auth.

Also confirm opencode-antigravity-auth is registered (step 4) — without it the google/* models have no quota source.

3. Validate Agent Model Availability

List the default model and each agent.<name>.model in the installed opencode.jsonc (there is no tier routing — one explicit model per agent). For each ID:

  • verify it is declared in the installed opencode.jsonc under provider.<name>.models (model definitions must live there — the auth plugin has no config hook; an undeclared model is a validation failure → ✗)
  • live quota is not testable without spending requests — list the ID for manual verification if you cannot confirm it locally

Read the full file on GitHub · 79 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. 12d ago First seen · 79 lines · 15 tokens per session scan A 5af1b57b0aa0

Subscribe to this mod's changes

doctor is a command published in the GitHub repository paruff/uFawkesAI (2 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 856 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to oc-health, differing in 5 lines, and is treated as a copy.