Eight worked recipes AI agents can reproduce: pick a safe model, check GPU fit, verify any downloaded file, escape gated models, audit before recommending, trace provenance, use the HF_ENDPOINT drop-in, and wire Hugging Bay into MCP.
Hugging Bay is intentionally crawlable for search engines, answer engines, user-requested AI fetches, frontier AI assistants, and open-source agents. Public pages describe verified open-source AI artifact metadata, provenance, licenses, community trust signals, and selective hosted mirrors with hashes. Hugging Bay does not bypass gated or restricted upstream access controls.
Machine-readable entrypoints: robots.txt, AI search guidance, well-known AI search JSON, AI citation packs, well-known AI citation JSON, llms.txt, llms-full.txt, AI crawler policy, AI bot allowlist, answer-engine manifest, agent manifest, OpenAPI, and indexing status.
A user asks for a model to do some task (e.g. summarization) on their own hardware, and it must be commercially usable and not carry a known-bad safety verdict.
GET https://huggingbay.xyz/api/agents/find-model?task=summarization&commercial=1&gpu=rtx4090-24&limit=3curl -s 'https://huggingbay.xyz/api/agents/find-model?task=summarization&commercial=1&gpu=rtx4090-24&limit=3'commercial=1 filters to models whose license permits commercial use. gpu must be one of: rtx4090-24, rtx3090-24, rtx3060-12, t4-16, a100-80, h100-80, mac-m3-max-64. Prefer the bestPick field; the full array is there if you want to explain the ranking.
The user has a specific card (say an RTX 4090, 24 GB) and a context length in mind, and wants to know if a model fits before downloading tens of gigabytes.
GET https://huggingbay.xyz/api/v1/artifacts/{artifactId}/fit?gpu=rtx4090-24&ctx=8192GET https://huggingbay.xyz/api/artifacts/{artifactId}/quantizationsGET https://huggingbay.xyz/api/agents/deployment-plan?id={artifactId}&gpu=rtx4090-24&ctx=8192curl -s 'https://huggingbay.xyz/api/agents/deployment-plan?id={artifactId}&gpu=rtx4090-24&ctx=8192'Placeholders in braces are yours to fill: {artifactId} is a Hugging Bay artifact id (e.g. from a find-model result or a model page), {sha256} is a 64-hex-char file digest, {owner}/{name} is a Hugging Face-style repo path, and {gpuId} is one of: rtx4090-24, rtx3090-24, rtx3060-12, t4-16, a100-80, h100-80, mac-m3-max-64. ctx is the context window in tokens; larger ctx needs more VRAM for the KV cache. The deployment-plan endpoint already picks a variant that fits, so you rarely need to reason about quant math yourself.
The user already has a model file on disk — from Hugging Face, a mirror, a Discord link, wherever — and wants to know if Hugging Bay has a safety verdict on those exact bytes.
GET https://huggingbay.xyz/api/safety?sha256={sha256}shasum -a 256 model.gguf | awk '{print $1}' | xargs -I{} curl -s 'https://huggingbay.xyz/api/safety?sha256={}'Placeholders in braces are yours to fill: {artifactId} is a Hugging Bay artifact id (e.g. from a find-model result or a model page), {sha256} is a 64-hex-char file digest, {owner}/{name} is a Hugging Face-style repo path, and {gpuId} is one of: rtx4090-24, rtx3090-24, rtx3060-12, t4-16, a100-80, h100-80, mac-m3-max-64. You can also look up by repo instead of hash: https://huggingbay.xyz/api/safety?repo={owner}/{name}. A not-found is not a pass — it just means Hugging Bay has not scanned those bytes.
The model the user wants is gated (requires accepting terms or a token), which blocks automated download. They want an ungated, equivalent model instead.
GET https://huggingbay.xyz/api/artifacts/{artifactId}/alternativescurl -s 'https://huggingbay.xyz/api/artifacts/{artifactId}/alternatives'Placeholders in braces are yours to fill: {artifactId} is a Hugging Bay artifact id (e.g. from a find-model result or a model page), {sha256} is a 64-hex-char file digest, {owner}/{name} is a Hugging Face-style repo path, and {gpuId} is one of: rtx4090-24, rtx3090-24, rtx3060-12, t4-16, a100-80, h100-80, mac-m3-max-64. Alternatives are ranked; the first ungated entry is usually the best swap.
Before you put your name on a recommendation, you want the full picture: the one-call report, what is actually inside the binary, and whether the model card is trustworthy.
GET https://huggingbay.xyz/api/v1/artifacts/{artifactId}/reportGET https://huggingbay.xyz/api/artifacts/{artifactId}/inspectionGET https://huggingbay.xyz/api/artifacts/{artifactId}/card-doctorcurl -s 'https://huggingbay.xyz/api/v1/artifacts/{artifactId}/report'Placeholders in braces are yours to fill: {artifactId} is a Hugging Bay artifact id (e.g. from a find-model result or a model page), {sha256} is a 64-hex-char file digest, {owner}/{name} is a Hugging Face-style repo path, and {gpuId} is one of: rtx4090-24, rtx3090-24, rtx3060-12, t4-16, a100-80, h100-80, mac-m3-max-64. The report is the fast path; inspection and card-doctor are for when you need to defend the recommendation.
A model is a fine-tune or a re-quant of something else, and the user needs to know where it came from and which license actually governs it before they ship on top of it.
GET https://huggingbay.xyz/api/artifacts/{artifactId}/familyGET https://huggingbay.xyz/api/v1/artifacts/{artifactId}/reportGET https://huggingbay.xyz/api/artifacts/{artifactId}/manifest-diff?against={otherArtifactId}curl -s 'https://huggingbay.xyz/api/artifacts/{artifactId}/manifest-diff?against={otherArtifactId}'Placeholders in braces are yours to fill: {artifactId} is a Hugging Bay artifact id (e.g. from a find-model result or a model page), {sha256} is a 64-hex-char file digest, {owner}/{name} is a Hugging Face-style repo path, and {gpuId} is one of: rtx4090-24, rtx3090-24, rtx3060-12, t4-16, a100-80, h100-80, mac-m3-max-64. {otherArtifactId} is the base model or sibling you are comparing against. License lineage matters: a permissive fine-tune of a restrictively-licensed base does not launder the base license.
The user has existing code or CLI habits built around Hugging Face and wants the exact same commands to pull hash-verified bytes through Hugging Bay with a one-line change.
GET https://huggingbay.xyz/api/models/{owner}/{name}HF_ENDPOINT=https://huggingbay.xyz huggingface-cli download {owner}/{name}Placeholders in braces are yours to fill: {artifactId} is a Hugging Bay artifact id (e.g. from a find-model result or a model page), {sha256} is a 64-hex-char file digest, {owner}/{name} is a Hugging Face-style repo path, and {gpuId} is one of: rtx4090-24, rtx3090-24, rtx3060-12, t4-16, a100-80, h100-80, mac-m3-max-64. File bytes stream from https://huggingbay.xyz/{owner}/{name}/resolve/{rev}/{path} (302 to hosted, hash-verified bytes). Only files whose hosted/downloadable flag is true actually stream from Hugging Bay; others 404 rather than lie.
You are building an agent and want it to call Hugging Bay's model-selection and safety tools natively, instead of hand-rolling HTTP calls.
POST https://huggingbay.xyz/api/mcpPOST https://huggingbay.xyz/api/mcpcurl -s -X POST 'https://huggingbay.xyz/api/mcp' -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"find_and_verify_model_for_task","arguments":{"task":"summarization","commercial":true,"gpu":"rtx4090-24","limit":3}}}'The endpoint speaks JSON-RPC 2.0. Use method 'tools/list' to enumerate and 'tools/call' to invoke. Available tools: find_and_verify_model_for_task, plan_local_deployment, get_model_report, will_it_fit, check_artifact_safety, get_quantizations, find_ungated_alternatives, get_model_family, get_card_doctor, inspect_model_binary, diff_manifests, get_integration_snippets. The same tools back the REST recipes above, so anything in this cookbook is reachable from an agent.