Skip to content
VS Code

Kosha Model Discovery for VS Code

io.github.sriinnu/kosha-discovery

Tells your agent which model to use and what it costs, across 45 providers and local runtimes.

client:VS Code transport:stdio runtime:npm

Install Kosha Model Discovery in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "anthropic-api-key",
      "description": "ANTHROPIC_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "openai-api-key",
      "description": "OPENAI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-api-key",
      "description": "GOOGLE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "openrouter-api-key",
      "description": "OPENROUTER_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "xai-api-key",
      "description": "XAI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "typesafe-api-key",
      "description": "TYPESAFE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "kosha-cache-ttl-hours",
      "description": "KOSHA_CACHE_TTL_HOURS",
      "password": true
    }
  ],
  "servers": {
    "kosha-discovery": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sriinnu/kosha-discovery"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "${input:anthropic-api-key}",
        "OPENAI_API_KEY": "${input:openai-api-key}",
        "GOOGLE_API_KEY": "${input:google-api-key}",
        "OPENROUTER_API_KEY": "${input:openrouter-api-key}",
        "XAI_API_KEY": "${input:xai-api-key}",
        "TYPESAFE_API_KEY": "${input:typesafe-api-key}",
        "KOSHA_CACHE_TTL_HOURS": "${input:kosha-cache-ttl-hours}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Kosha Model Discovery in other clients