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

opencode-fastmode

v0.1.0

Published

Fast mode toggle for OpenCode GPT-5.4 requests

Readme

opencode-fastmode

Workaround plugin for GPT-5.4 fast mode in OpenCode.

This package avoids slash-command hacks. It uses:

  • an OpenCode plugin that applies serviceTier: "priority" in chat.params
  • a small CLI that updates the persisted fast mode state

It is not first-class OpenCode fast mode support. It does not add /fast, prompt status UI, or model-level controls metadata inside OpenCode itself. It only applies the request option for supported model calls.

Because the toggle happens outside the chat flow, it does not require a model reply and does not add transcript noise.

Quick start

Local development

  1. Install the CLI from this repo:
npm install -g /absolute/path/to/opencode-fastmode
  1. Load the plugin from a global OpenCode plugin shim:
export { FastmodePlugin, default } from "/absolute/path/to/opencode-fastmode/index.js"

Save that as ~/.config/opencode/plugins/fastmode.js.

  1. Restart OpenCode.

  2. Toggle and verify:

oc-fast on
oc-fast status

After publishing to npm

  1. Install:
npm install -g opencode-fastmode
  1. Add the plugin to ~/.config/opencode/opencode.jsonc:
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-fastmode"]
}
  1. Restart OpenCode.

What it supports

  • openai/gpt-5.4
  • all OpenCode agents that use openai/gpt-5.4
  • persisted state in ~/.config/opencode/fastmode.json

What it does not support

  • /fast inside OpenCode
  • prompt status line indicators
  • OpenCode model controls metadata
  • upstream migration behavior or compatibility aliases

State file

~/.config/opencode/fastmode.json is the shared state between the CLI and the OpenCode plugin.

  • oc-fast on|off|toggle writes to this file
  • the plugin reads this file for every chat.params call
  • if the file is missing, fast mode defaults to OFF

Example:

{
  "models": {
    "openai/gpt-5.4": {
      "enabled": true
    }
  }
}

Yes, it is still needed in the current design. It is what makes the toggle persistent without requiring a model message, a slash command, or an OpenCode restart for every change.

If you delete it, the package will simply recreate default state on the next CLI write.

Install

1. Install the package for the CLI

After publishing to npm:

npm install -g opencode-fastmode

For local development:

npm install -g /absolute/path/to/opencode-fastmode

2. Load the plugin in OpenCode

After publishing to npm, add it to ~/.config/opencode/opencode.jsonc:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-fastmode"]
}

For local development before publishing, you can load the repo directly from a global plugin file:

export { FastmodePlugin, default } from "/absolute/path/to/opencode-fastmode/index.js"

Place that file in ~/.config/opencode/plugins/ and restart OpenCode.

CLI usage

oc-fast on
oc-fast off
oc-fast toggle
oc-fast status
oc-fast path

Example output:

Fast mode enabled for openai/gpt-5.4

Use this for current state feedback:

oc-fast status

How it works

When fast mode is enabled, the plugin checks each model call in chat.params. If the current model is openai/gpt-5.4, it sets:

{
  "serviceTier": "priority"
}

No reasoning or verbosity settings are modified.

This mirrors the manual options.serviceTier = "priority" workaround people have discussed for OpenCode config overrides.

Verify it is active

  • run oc-fast status
  • make sure your active model is openai/gpt-5.4
  • restart OpenCode after changing plugin installation/config

Development

Run tests:

npm test

Publish

  1. Create a GitHub repo
  2. Push this project
  3. Publish to npm:
npm publish

Then switch your OpenCode config to the npm package name and remove any local plugin shim.