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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dexploarer/plugin-vercel-ai-gateway

v2.0.0

Published

Unified AI gateway for ElizaOS using Vercel AI SDK and OpenRouter

Readme

@dexploarer/plugin-vercel-ai-gateway

Unified AI gateway plugin for ElizaOS providing access to 200+ models across all major providers (OpenAI, Anthropic, Google, Meta, Mistral, xAI, etc.) via Vercel AI Gateway, OpenRouter, or direct Vercel AI SDK.

Features

  • Single API Key: Access 200+ models through Vercel AI Gateway or OpenRouter
  • Zero Markup: Vercel AI Gateway passes through provider pricing with no additional cost
  • Automatic Fallback: Cascading provider resolution based on available API keys
  • ElizaOS Native: Registers handlers for all ElizaOS ModelTypes

Installation

bun add @dexploarer/plugin-vercel-ai-gateway

Quick Start

import { gatewayPlugin } from '@dexploarer/plugin-vercel-ai-gateway';

const agent = {
  plugins: [gatewayPlugin],
  settings: {
    secrets: {
      // Option 1: Vercel AI Gateway (recommended - zero markup)
      AI_GATEWAY_API_KEY: "your-vercel-key",

      // Option 2: OpenRouter (single key for all providers)
      // OPENROUTER_API_KEY: "sk-or-...",

      // Option 3: Individual provider keys
      // OPENAI_API_KEY: "...",
      // ANTHROPIC_API_KEY: "...",
    },
  },
};

Model Support

| ModelType | Default Model | Provider | |-----------|---------------|----------| | TEXT_LARGE | claude-sonnet-4 | Gateway/OpenRouter | | TEXT_SMALL | gpt-4o-mini | Gateway/OpenRouter | | TEXT_EMBEDDING | text-embedding-3-small | Gateway/OpenRouter | | IMAGE | imagen-3 | Google via Gateway |

Available Models

Text Models:

  • Anthropic: claude-4-opus, claude-sonnet-4, claude-3.5-haiku
  • OpenAI: gpt-4o, gpt-4o-mini, o1, o1-mini, o3-mini
  • Google: gemini-2.0-flash, gemini-2.0-pro
  • Meta: llama-3.3-70b, llama-3.1-405b
  • DeepSeek: deepseek-v3, deepseek-r1
  • xAI: grok-3

Image Models:

  • Google: imagen-3, imagen-3-fast
  • OpenAI: dall-e-3
  • Flux: flux-pro

Embeddings:

  • text-embedding-3-small, text-embedding-3-large

Configuration

Override defaults via runtime settings:

settings: {
  GATEWAY_CONFIG: {
    defaultTextProvider: "vercel-gateway",
    defaultImageProvider: "vercel-gateway",
    models: {
      textLarge: "claude-4-opus",
      textSmall: "claude-3.5-haiku",
      image: "imagen-3-fast",
    },
  },
}

Environment Variables

| Variable | Description | |----------|-------------| | AI_GATEWAY_API_KEY | Vercel AI Gateway (zero markup, recommended) | | OPENROUTER_API_KEY | Single key for all providers via OpenRouter | | OPENAI_API_KEY | Direct OpenAI access | | ANTHROPIC_API_KEY | Direct Anthropic access | | GOOGLE_GENERATIVE_AI_API_KEY | Direct Google access | | GROQ_API_KEY | Direct Groq access | | TOGETHER_API_KEY | Direct Together access | | FIREWORKS_API_KEY | Direct Fireworks access | | MISTRAL_API_KEY | Direct Mistral access |

Development

bun install       # Install dependencies
bun run build     # Build (tsc)
bun run dev       # Watch mode
bun run clean     # Remove dist/
bun run lint      # ESLint

License

MIT