{
  "id": "huggingface",
  "enabledByDefault": true,
  "providers": ["huggingface"],
  "providerAuthEnvVars": {
    "huggingface": ["HUGGINGFACE_HUB_TOKEN", "HF_TOKEN"]
  },
  "providerAuthChoices": [
    {
      "provider": "huggingface",
      "method": "api-key",
      "choiceId": "huggingface-api-key",
      "choiceLabel": "Hugging Face API key",
      "choiceHint": "Inference API (HF token)",
      "groupId": "huggingface",
      "groupLabel": "Hugging Face",
      "groupHint": "Inference API (HF token)",
      "optionKey": "huggingfaceApiKey",
      "cliFlag": "--huggingface-api-key",
      "cliOption": "--huggingface-api-key <key>",
      "cliDescription": "Hugging Face API key (HF token)"
    }
  ],
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "discovery": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "enabled": { "type": "boolean" }
        }
      }
    }
  },
  "uiHints": {
    "discovery": {
      "label": "Model Discovery",
      "help": "Plugin-owned controls for Hugging Face model auto-discovery."
    },
    "discovery.enabled": {
      "label": "Enable Discovery",
      "help": "When false, OpenClaw keeps the Hugging Face plugin available but skips implicit startup discovery from ambient Hugging Face credentials."
    }
  }
}
