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

cogeai

v1.0.1

Published

AI-powered command generator — describe what you want, get a shell command back

Readme

coge

AI-powered command generator. Describe what you want — get a shell command back.

Free to use with reasonable daily consumption — all supported providers offer free API tiers. Just grab the API keys and go. Provider list based on free-llm-api-resources.

Supports multiple LLM providers. When multiple API keys are configured, races them in parallel and returns the fastest response.

Quick Start

  1. Install globally:
npm install -g cogeai
  1. Set at least one provider API key:
export COGE_GEMINI_API_KEY="your-key"
  1. Run:
coge "find all TODO comments in javascript files"
  1. Press Enter to execute, c to copy, Esc to cancel.

Usage

coge <prompt>                  Generate a shell command from description
coge --configure | -c          Configure provider and model
coge --pull models <provider>  Fetch available models for a provider

Options:
  --non-interactive              Print command and exit (for pipelines)
  --debug                        Show config, provider, and timing info
  --help, -h                     Show this help message

Examples

# Generate and execute a command
coge "list files larger than 100MB"

# Use in a pipeline
coge --non-interactive "compress all pngs in current dir" | bash

# See which provider won the race
coge --debug "disk usage by directory"

Race Mode

When multiple providers have API keys configured, coge automatically races them in parallel:

  • >3 providers configured — races 3 random ones (always including your default)
  • 2-3 providers configured — races all of them
  • 1 provider configured — uses it directly, no race

This is the default behavior — no extra flags needed.

Providers

| Provider | Environment Variable | |---|---| | gemini | COGE_GEMINI_API_KEY | | openai | COGE_OPENAI_API_KEY | | openrouter | COGE_OPENROUTER_API_KEY | | groq | COGE_GROQ_API_KEY | | cerebras | COGE_CEREBRAS_API_KEY | | mistral | COGE_MISTRAL_API_KEY | | codestral | COGE_CODESTRAL_API_KEY | | cohere | COGE_COHERE_API_KEY | | cloudflare | COGE_CLOUDFLARE_API_KEY | | github-models | COGE_GITHUB_MODELS_TOKEN | | huggingface | COGE_HUGGINGFACE_API_KEY | | vercel-ai | COGE_VERCEL_API_KEY | | ollama | (no key needed — local) |

Set the env vars for any providers you want to use. The more you set, the faster the race.

Configuration

Config file location: ~/.config/coge/config.json (or $XDG_CONFIG_HOME/coge/config.json).

Created automatically on first run. Edit manually or use:

coge --configure

Config structure

{
  "provider": "gemini",
  "model": "gemini-2.5-flash",
  "providers": {
    "gemini": {
      "default": "gemini-2.5-flash",
      "available": ["gemini-2.5-flash", "gemini-2.5-pro"]
    }
  }
}

Updating available models

Fetch the latest model list from a provider's API:

coge --pull models gemini

License

ISC