sriinnu

Kosha Discovery — AI skill for Claude Code

AI community

Discovery registry for AI models, credentials, and pricing across local and cloud providers.

How to install Kosha Discovery

This entry records only its repository, not the path inside it, so there is no exact command to give. Open sriinnu/kosha-discovery and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Kosha Discovery does

Discovery registry for AI models, credentials, and pricing across local and cloud providers. Library, CLI, and HTTP API.

Alternatives in AI

  • Cursor Tools — by eastlondoner - Creates a versatile AI command interface supporting multiple providers and models with flexi 4.7k ★
  • Chat Ollama — ChatOllama is an open source agentic app for running AI agents across local and hosted models 3.5k ★
  • DontFeedTheAI — Transparent anonymization proxy for AI-assisted pentesting 654 ★

README

Kosha — AI Model Discovery

kosha-discovery

**Tells your agent — or your code — which model to use and what it costs.**

kosha discovers models across 45 providers and local runtimes, finds your API keys wherever they already live (env vars, Claude CLI, Codex, gcloud ADC, AWS SSO), fills in pricing and context limits, and answers questions like *the cheapest model with tool use and 128k context that I actually hold a key for*. It ships as a TypeScript library, a CLI, an HTTP API, an OpenAI-compatible proxy with a spend ledger, and an MCP server.

It works with no API keys at all — discovery falls back to the public models.dev and LiteLLM catalogs, so `kosha list` is useful on a fresh machine.

Install

npm install @sriinnu/kosha-discovery       # library / server
npm install -g @sriinnu/kosha-discovery    # global `kosha` CLI

Requires Node.js 22+.

Quick start

Library

import { createKosha } from "@sriinnu/kosha-discovery";

const kosha = await createKosha();

const models   = kosha.models();                          // ModelCard[] across every provider
const cheapest = kosha.cheapestModels({ role: "image" }); // ranked by price, with missingCredentials
const sonnet   = kosha.model("sonnet");                   // alias → canonical ID; undefined if unknown
console.log(sonnet?.pricing); // { inputPerMillion: 2, outputPerMillion: 10, cacheReadPerMillion: 0.2, ... }

CLI

kosha discover                       # query every provider; writes ~/.kosha/cache and the manifest
kosha list --provider anthropic      # read from the local cache
kosha model sonnet                   # one model, alias-aware
kosha routes claude-opus-5           # every serving route for a model (direct, OpenRouter, Bedrock, …)
kosha cheapest --role embeddings     # rank by price for a role
kosha doctor --ci                    # deprecations + provider health; non-zero exit for C