npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

oh-my-opencode-config

v0.4.0

Published

Interactive CLI for managing model assignments in oh-my-opencode.json

Readme

oh-my-opencode-config

Interactive CLI to manage model assignments in oh-my-opencode.json for OpenCode.

Use it to pick models and variants per agent and category, validate capabilities, and keep configs safe with backups.

Install

Requires Bun.

curl -fsSL https://bun.sh/install | bash
bun add -g oh-my-opencode-config

Quick start

oh-my-opencode-config
oh-my-opencode-config list

Run oh-my-opencode-config --help for the full command list.

Commands

| Command | What it does | | --- | --- | | menu | Open the interactive menu | | list | Show current config | | status | Check config health | | configure agents | Assign models to agents | | configure categories | Assign models to categories | | configure quick-setup | Apply Standard or Economy presets | | diff | Show changes from defaults | | doctor | Diagnose issues (--fix repairs cache) | | backup list | List backups | | backup restore <timestamp> | Restore a backup | | profile save/use/list/delete/rename/template | Manage profiles | | import [path] | Import config JSON | | export [path] | Export config JSON | | refresh | Refresh models cache | | clear-cache | Clear models cache | | undo | Restore most recent backup | | history | Show change history |

Global flags

  • --config <path> Override the oh-my-opencode.json path.
  • --opencode-config <path> Override the opencode.json path for custom models.
  • --refresh Force refresh of the models cache.
  • --json Output as JSON (where supported).
  • --verbose Include detailed logs and stack traces.
  • --dry-run Preview changes without writing.
  • --template <path> Override the profile template path used by profile save.

Configuration files

This tool writes oh-my-opencode.json and reads opencode.json for custom models.

Discovery order:

  1. --config
  2. ./.opencode/oh-my-opencode.json (current directory)
  3. ~/.config/opencode/oh-my-opencode.json

Models cache: ~/.cache/opencode/models.json

oh-my-opencode.json

{
  "agents": {
    "oracle": { "model": "google/antigravity-gemini-3-pro", "variant": "high" }
  }
}

oh-my-opencode.template.json

Used as a base when saving profiles. Create it with profile template or provide one via --template <path>.

Example template:

{
  "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
  "google_auth": false,
  "sisyphus_agent": {
    "default_builder_enabled": true,
    "replace_plan": true
  },
  "git_master": {
    "commit_footer": false,
    "include_co_authored_by": false
  },
  "disabled_hooks": ["comment-checker"]
}

opencode.json

This is OpenCode’s main config. This CLI does not write it. It reads model definitions here so custom/plugin models show up in the picker. Use --opencode-config if your file lives elsewhere.

Minimal example:

{
  "plugin": ["opencode-antigravity-auth@latest"],
  "provider": {
    "google": {
      "models": {
        "antigravity-gemini-3-pro": {
          "name": "Antigravity Gemini 3 Pro",
          "variants": { "high": {}, "low": {} }
        }
      }
    }
  }
}

Agent requirements

| Agent | Required capabilities | | --- | --- | | oracle | reasoning, tool_call | | librarian | tool_call | | explore | tool_call | | multimodal-looker | attachment | | prometheus | reasoning, tool_call | | metis | reasoning | | sisyphus | reasoning, tool_call | | atlas | reasoning, tool_call | | hephaestus | reasoning, tool_call | | momus | reasoning |

Troubleshooting

Custom models not showing

  1. Check that opencode sees the model:
    opencode models | grep antigravity
  2. Confirm the plugin and model are in opencode.json.
  3. Refresh the cache:
    opencode models --refresh

Cache missing

Run oh-my-opencode-config refresh, or let doctor offer a refresh.

Permission denied

Ensure you can write to the config directory.

Concurrent modification

If another process writes the config, the CLI aborts to avoid data loss.

Defaults source

Defaults are synced from the upstream oh-my-opencode repository. See src/shared/model-requirements.ts in that repo for the current fallback chains.

Contributing

We use a developmain flow.

  1. Work on develop.
  2. Create a changeset before release.
  3. Open a PR from develop to main.

Development

bun install
bun run dev
bun run test
bun run check
bun run typecheck

License

MIT