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

@stratusagent/provider-openai

v0.11.4

Published

The OpenAI-compatible chat-completions provider as a Stratus plugin: registers `openai-compatible`, selectable by a soul, credentialed per agent through the plugin seam

Downloads

158

Readme

@stratusagent/provider-openai

The OpenAI-compatible chat-completions provider, as a plugin. It registers a provider named openai-compatible through the plugin seam (19), and a soul selects it the way it selects a built-in:

---
id: ava
provider: openai-compatible
model: llama3
credentials: [openai.apiKey]
---

Install and enable

npm install @stratusagent/provider-openai
// ~/.stratus/config.json — a trusted config only
{
  "plugins": {
    "@stratusagent/provider-openai": {
      "enabled": true,
      "baseUrl": "http://127.0.0.1:11434/v1",   // any chat-completions endpoint; omit for api.openai.com
      "model": "llama3"                          // the default when a soul names none
    }
  }
}

Then store the key it uses, as a named credential — the agent's own entry, or one the fleet shares — and list it in each soul's credentials::

stratus credential set openai.apiKey                # shared by every agent that lists it
stratus credential set openai.apiKey --agent ava    # ava's own account

Settings

| Key | What it sets | | --- | --- | | baseUrl | The endpoint. Default: the OpenAI API | | model | The model when a soul or config names none. A run with neither is refused, naming both places | | headers | Extra request headers, name to value | | vision | Whether the model takes images. Default true; false for a text-only model | | requestTimeoutMs | Upper bound on one request. Default five minutes; 0 disables |

How this differs from provider: openai

Same adapter — createOpenAICompatibleProvider from @stratusagent/providers, unchanged — arriving the way a third party's provider would, which is why it exists:

  • The key is a per-agent credential, resolved on every request. openai.apiKey goes through the manifest-bound resolver for the agent the request is for: its own entry first, then the shared one. Two agents on one installed plugin can bill to two accounts, a rotated key takes effect on the next turn, and an agent whose soul does not list the name cannot use it. Nothing here reads process.env.
  • The endpoint is the plugin's setting, not a stored sign-in's binding. The built-in openai selection keeps its stored sign-in, its endpoint-bound key, and STRATUS_API_KEY; none of that reaches this plugin, and none of it is needed here.
  • It works as a fallback target: fallbackProvider: openai-compatible with a fallbackModel fails over to it under the same rules as a built-in.

Diagnostics show it as plugin:openai-compatible.