Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
import type { RegistryEntry } from "../../shared.ts";
export const huggingfaceProvider: RegistryEntry = {
id: "huggingface",
alias: "hf",
format: "openai",
executor: "default",
baseUrl: "https://router.huggingface.co/v1/chat/completions",
modelsUrl: "https://router.huggingface.co/v1/models",
authType: "apikey",
authHeader: "bearer",
models: [
{ id: "meta-llama/llama-3.1-8b-instruct", name: "Llama 3.1 8B" },
{ id: "meta-llama/llama-3.2-11b-instruct", name: "Llama 3.2 11B" },
{ id: "mistralai/mistral-7b-instruct", name: "Mistral 7B" },
{ id: "google/gemma-2-9b-it", name: "Gemma 2 9B" },
{ id: "Qwen/Qwen2.5-7B-Instruct", name: "Qwen 2.5 7B" },
{ id: "deepseek-ai/DeepSeek-V3", name: "DeepSeek V3" },
],
};