Integration guide

apifare for GitHub Copilot (VS Code)

Give GitHub Copilot (VS Code) one prepaid key for every API it needs. There is no separate provider account or provider API key for eligible capabilities, and it all runs under hard caps and a kill switch.

Get a key

1 · Get a key

Create an account at /start: email in, token out (shown once). Save the token somewhere safe.

2 · Add apifare to GitHub Copilot (VS Code)

Add this to .vscode/mcp.json in your workspace, or run MCP: Open User Configuration to add it for every workspace. VS Code uses a servers key; the inputs block makes it ask for your token once and store it securely instead of saving it in the file.

{
  "inputs": [
    {
      "type": "promptString",
      "id": "apifare-token",
      "description": "apifare token",
      "password": true
    }
  ],
  "servers": {
    "apifare": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "apifare-mcp"],
      "env": { "APIPAY_TOKEN": "${input:apifare-token}" }
    }
  }
}

Start the server from the file (or reload VS Code) and enter your token when prompted: Copilot's agent can then use the apifare tools.

3 · Try it

Ask GitHub Copilot (VS Code) to search the web for X, then to fetch a URL, then what's the weather in London. Every call is debited from your balance and lands on your signed, exportable audit chain.

4 · Stay in control

Set daily or monthly caps per agent, and keep the kill switch ready. Both are checked before a call is dispatched. When the balance runs out, your agent gets an HTTP 402 with a top-up link it can hand you; the error catalog lists every stop and what unblocks it.

What GitHub Copilot (VS Code) can call

Everything on the key: search, filings, registries, weather, and ready-to-run tools, plus any provider key you vault yourself. Exact per-call prices are on /capabilities.

Config checked against GitHub Copilot (VS Code)'s MCP docs on 2026-09-12. Markdown version: /integrations/vscode.md.

More integrations

Claude Code · Claude Desktop · Cursor · Windsurf · Zed · Cline · OpenAI Codex CLI · Gemini CLI · Hermes Agent · Kimi CLI · Qwen Code · LibreChat

Model guides

Calling a model's API directly instead? Give it apifare tools with a plain tool loop: DeepSeek · Kimi · Qwen · OpenAI GPT · Gemini.