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

hermes-free-model-switch

v1.0.4

Published

Hermes plugin — /free-model and /free-model-end slash commands for switching to temporarily free LLM models

Readme

hermes-free-model-switch

Switch all Hermes surfaces (gateway session, delegation, cron jobs) to a temporarily free model, then automatically revert at a scheduled time.

Quick start

# Install — copies plugin + scripts, enables the plugin
npx hermes-free-model-switch install

# Or install from source with hermes itself
hermes plugins install npm:hermes-free-model-switch

# Restart the gateway
hermes gateway restart

Usage

Switch to a free model

/free-model stepfun/step-3.7-flash:free
/free-model deepseek/deepseek-v4-flash:free --provider deepseek
/free-model arcee-ai/trinity-mini:free --provider openrouter

When --provider is omitted, the plugin uses whatever provider is configured in model.provider from your config.yaml. Pass --provider explicitly when your configured provider can't serve the model (e.g., a Nous model when your default provider is OpenRouter).

Targeting specific surfaces

By default, the switch affects three surfaces: gateway config (model.default), delegation config (delegation.model), and all LLM-driven cron jobs. Use flags to restrict what changes:

# Only change the gateway session default — leave delegation + cron alone
/free-model stepfun/step-3.7-flash:free --gateway-only
/free-model arcee-ai/trinity-mini:free --provider openrouter --gateway-only

--gateway-only is shorthand for --skip-delegation --skip-cron. You can also pass the individual flags via the set-model.py CLI directly:

python3 set-model.py --model stepfun/step-3.7-flash:free --provider nous --skip-delegation --skip-cron
python3 set-model.py --model stepfun/step-3.7-flash:free --provider nous --skip-cron
python3 set-model.py --model stepfun/step-3.7-flash:free --provider nous --skip-delegation

What each switch affects:

| Surface | model.default | delegation.model | cron jobs | |---------|:-:|:-:|:-:| | Default (no flags) | ✓ | ✓ | ✓ | | --gateway-only | ✓ | ✗ | ✗ | | --skip-cron | ✓ | ✓ | ✗ | | --skip-delegation | ✓ | ✗ | ✓ |

This switches:

  • model.default and delegation.model in config.yaml
  • All LLM-driven cron jobs (skips no_agent jobs)
  • Takes a snapshot so you can revert cleanly

Schedule automatic revert

/free-model-end 2026/06/01 23:00

This activates a pre-installed one-shot cron job that runs set-model.py --revert at the given time, restoring the previous model everywhere.

Revert manually

python3 ~/.hermes/scripts/set-model.py --revert

Revert is stack-based — you can revert multiple times to walk back through previous model states.

What's installed

| Path | Purpose | |------|---------| | ~/.hermes/plugins/free-model/ | Plugin: /free-model and /free-model-end slash commands | | ~/.hermes/scripts/set-model.py | Core model-switching engine | | ~/.hermes/scripts/revert-model.py | Wrapper for revert cron |

Model validation

The plugin validates that the model string:

  • Is not empty
  • Has no spaces
  • Includes a provider prefix (e.g., org/model:free)

If something looks wrong, the command returns a clear error before touching config.

Snapshot management

Every switch creates a snapshot of config.yaml and cron/jobs.json. Snapshots are stored in ~/.hermes/model-snapshots/ with a maximum stack depth of 5 — older entries are pruned. Snapshots older than 30 days are cleaned up automatically.

If a write fails mid-switch (e.g., disk full, permission error), the plugin automatically rolls back from the snapshot.

Requirements

  • Hermes Agent v0.15.0+
  • Node.js 16+ (only needed for the npx installer path)
  • Python 3.9+ (for set-model.py)

Environment

The plugin respects $HERMES_HOME if set, falling back to ~/.hermes otherwise.

Platform support

| Platform | Status | |----------|--------| | Linux | Primary target. Fully tested. | | macOS | Should work — same POSIX semantics. Not regularly tested. | | Windows | Compatible in principle (no platform-specific deps) but untested. |

Known caveats on non-Linux:

  • Running set-model.py directly from a terminal requires python3 on PATH (ignores shebangs on Windows — use py instead).
  • chmod calls are no-ops on Windows (harmless).
  • The installer, revert wrapper, and hermes cron calls all shell out to the hermes CLI — that binary must be on PATH for your platform.

If you test on macOS or Windows, please report issues.

License

MIT