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

@chirag127/keyless-ai

v0.3.0

Published

Keyless AI failover meta-client. Tries 3 keyless OpenAI-compatible providers (kilo -> ovh -> pollinations) best-first; chat(messages, opts) -> string returns the first success, throws only if all fail. No API key. Framework-agnostic (Node + browser via gl

Readme

@chirag127/keyless-ai

Keyless AI failover meta-client. Wraps 3 keyless, OpenAI-compatible providers and tries them best-first — first success wins, throws only if all fail. No API key anywhere.

Install

npm i @chirag127/keyless-ai

Pulls the 3 provider packages as deps. Zero runtime deps beyond them; uses global fetch (Node 18+ / browser).

Usage

import { chat, listProviders, MODELS } from '@chirag127/keyless-ai';

// string prompt or OpenAI messages[]
const text = await chat('explain failover in one line');

const text2 = await chat([
  { role: 'system', content: 'Be terse.' },
  { role: 'user', content: 'hi' },
]);

listProviders(); // ['kilo','ovh','pollinations']

Override order

// per-call
await chat('hi', { order: ['ovh', 'kilo'] });

// or env (comma-separated), consumed when opts.order is absent
// KEYLESS_ORDER="ovh,pollinations"

Observe failures

await chat('hi', {
  onError: (name, err) => console.warn(`skip ${name}: ${err.message}`),
});

Any other opts (model, temperature, signal, baseUrl, …) pass straight through to whichever provider handles the call.

Failure mode

If every provider in the order throws, chat throws an AggregateError whose .errors holds the per-provider failures.

Providers (default order)

| Order | Provider key | Package | Endpoint | Notes | |---|---|---|---|---| | 1 | kilo | @chirag127/keyless-kilo | api.kilo.ai/api/gateway | kilo-auto/free auto-router; no auth | | 2 | ovh | @chirag127/keyless-ovh | oai.endpoints.kepler.ai.cloud.ovh.net/v1 | 429 → err.retryable=true | | 3 | pollinations | @chirag127/keyless-pollinations | text.pollinations.ai/openai | sends Referer: https://oriz.in |

opencode-zen removed — NOT keyless (requires ZEN_API_KEY). See @chirag127/keyless-opencode-zen README.

Combined model list (MODELS)

MODELS is the only place the cross-provider model catalogue lives. Shape: { provider: string, model: string }[]. Sorted best-first within each provider, providers in DEFAULT_ORDER.

import { MODELS, DEFAULT_ORDER } from '@chirag127/keyless-ai';

// MODELS[0] => { provider: 'kilo', model: 'kilo-auto/free' }
// Filter by provider:
const ovhModels = MODELS.filter(m => m.provider === 'ovh');

Test

npm test   # vitest, mocks each provider

MIT © chirag127