Add a custom HACS repository
hacs_add_custom_repositoryRegister a custom HACS or Marketplace repository by URL and category so it becomes installable; this adds the source only and does not install it.
Instructions
Register a custom repository with HACS / the Marketplace so it becomes installable.
Calls marketplace/repositories/add on HA 2026.11+ or
hacs/repositories/add on older HA, with url as its repository
field and category. This only registers the repository — it does not
install it.
Use when: a repository is not in the default store and needs adding
before it can be installed.
Not for: installing an already-registered repository — use
hacs_install_hacs_repository.
Returns: {"status": "ok", "backend": "marketplace"|"hacs"}, or an
error dict.
Errors: {"error", "code", "backend", "hint"} when url/category is
invalid or the command fails; the Marketplace needs the first-run
warning accepted (warning_not_accepted) and a connected GitHub account
(github_not_connected), both in Settings -> Marketplace (as an add-on
see hint);
unknown_command when neither backend is available.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"category": "<category>"
},
"name": "hacs_add_custom_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the repository to register, e.g. a GitHub repo URL. | |
| category | Yes | Category for the repository: integration, plugin, theme or template (HACS before HA 2026.11 also accepts appdaemon and python_script). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |