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-provider-poolside

v0.2.2

Published

OpenCode plugin for the Poolside AI model provider with live model discovery

Readme

Features

  • Live model discovery — fetches the current model catalog from the Poolside API at startup, with sensible Laguna fallbacks when the API is unreachable.
  • OpenAI-compatible — uses @ai-sdk/openai-compatible under the hood, so streaming, tool calls, and JSON mode work out of the box.
  • API key management — built-in auth hook for storing and loading your Poolside API key via OpenCode's /connect command.
  • Reasoning support — Laguna M.1 and XS 2.1 expose none, minimal, low, medium, high, and xhigh; Laguna S 2.1 exposes its supported none and xhigh modes through OpenCode's variant picker.
  • Zero config — add the plugin to your opencode.json and you're ready to go.

Quick start

1. Install the plugin

Add the package to your OpenCode config. OpenCode installs it automatically:

// ~/.config/opencode/opencode.json  or  .opencode/opencode.json
{
  "plugin": ["opencode-provider-poolside"]
}

The legacy opencode-provider-poolside/server entry point remains supported.

2. Get a Poolside API key

Create a developer API key at platform.poolside.ai → API Keys → New key.

3. Connect your API key

In OpenCode, run:

/connect poolside

Follow the prompts to enter your API key. OpenCode stores it securely and the plugin loads it automatically.

Alternatively, set the environment variable:

export POOLSIDE_API_KEY="your-api-key"

4. Start using Poolside models

opencode -m poolside/laguna-m.1

Or set a default model in your config:

{
  "model": "poolside/laguna-m.1",
  "small_model": "poolside/laguna-xs-2.1"
}

Available models

| Model | Context | Max output | Reasoning | |---|---:|---:|---| | poolside/laguna-m.1 | 262,144 | 32,768 | nonexhigh | | poolside/laguna-xs-2.1 | 262,144 | 32,768 | nonexhigh | | poolside/laguna-s-2.1 | 1,048,576 | 131,072 | none, xhigh |

The static catalog uses these verified Poolside limits. Authenticated model discovery enriches the catalog with live capabilities, while preserving these limits when the Poolside /models response is incomplete or stale.

Configuration

Provider options

The plugin sets these defaults automatically, but you can override them in your config:

{
  "provider": {
    "poolside": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Poolside",
      "env": ["POOLSIDE_API_KEY"],
      "options": {
        "baseURL": "https://inference.poolside.ai/v1"
      }
    }
  }
}

Custom base URL

If you use a Poolside deployment, set a custom base URL:

{
  "provider": {
    "poolside": {
      "options": {
        "baseURL": "https://your-deployment.example.com/openai/v1"
      }
    }
  }
}

Environment variable

export POOLSIDE_API_KEY="your-api-key"

How it works

  1. Config hook — On startup, the plugin registers the poolside provider with @ai-sdk/openai-compatible, sets the base URL and environment variable, and populates the model catalog.
  2. Model discovery — If POOLSIDE_API_KEY is available, the plugin fetches the live model list from https://inference.poolside.ai/v1/models. If the API is unreachable, it falls back to a static catalog of known Laguna models; verified limits remain in place if the endpoint reports stale values.
  3. Model aliases — OpenCode exposes models as poolside/laguna-* while sending Poolside's required poolside/laguna-* upstream IDs without duplicating the provider prefix.
  4. Auth hook — The plugin provides an API key auth method so you can manage your key with OpenCode's /connect poolside command.

Related projects

Unofficial project; not affiliated with Poolside, OpenCode, or Poolside AI. Poolside account limits and charges still apply. Licensed under MIT.