Skip to content

HACS Custom Repository 404 and Repository not found: A Five-Layer Triage

Adding a custom repository in HACS, then finding nothing in the list, a Repository not found card, or a 404, is common. This guide narrows it through five layers: the repository itself, its structure, type selection, account and network, and version floor. Fork by version: on HA 2026.11+ use Settings > Marketplace, not /hacs; only 2026.10- uses classic HACS custom repositories. Every step, file name, key, and version number was checked against the official HACS site, HACS and the Marketplace, HACS Custom Repositories page, HACS publishing general requirements, HACS integration repository requirements, HACS other Git providers, HACS GitHub account FAQ, and HACS data sources.

State a timing premise first. The HACS site and Marketplace page state that from HA 2026.11 HACS ships built in as the Marketplace under Settings > Marketplace - nothing to download, and HA blocks installing the HACS custom integration from 2026.11; /hacs bookmarks and buttons open the Marketplace. The five layers below apply only to 2026.10 and older classic HACS. The prerequisites page separately requires standalone HACS on HA 2024.4.1 or newer. These are different forms; match yours. Migration detail is in HA Data Migration.

1. Layer one: is the repository something HACS can accept

A good share of 404 and Repository not found cases are not misconfiguration at all: the repository fails HACS's hard prerequisites. There are two official lines worth memorizing:

Start with three checks: is the repository on GitHub? Is it public? Does the URL point at its root? Repositories on Gitee, GitLab, or self-hosted Gitea are rejected however correct their contents - an official limit, not a bug. Private repositories are out of scope here.

Follow the official add flow on the Custom Repositories page: click the three dots in the top-right corner, select Custom repositories, add the repository URL, select the correct type, then click ADD. The type in the last step must match the repository's real type (see layer four); the URL itself is a repository address like owner/repo, without a .git suffix and not pointing into a subdirectory or a single file. If the repository or owner was renamed or deleted, the old URL naturally 404s - the address is stale, HACS is fine.

2. Layer two: repository structure, HACS's "known structure" unpacked

The warning on the custom repositories page matters: Not all repositories will work in HACS, since HACS still needs the repository to have a known structure. This layer unpacks that "known structure."

First, hacs.json must be in the repository root. The general requirements page says: This file must be located in the root of your repository. Of the supported keys, only name is required, the display name in the HACS UI; the rest - content_in_root, zip_release, filename, hide_default_branch, country, homeassistant, hacs, persistent_directory - are optional. Putting this file in a subdirectory, or omitting it entirely, is a frequent reason a repository never appears after saving.

Second, integration repositories have hard layout rules. The HACS integration requirements page states:

  • There may be only one integration per repository, that is, only one subdirectory under ROOT_OF_THE_REPO/custom_components/. If there is more than one, only the first one will be managed.
  • All files required for the integration to run must be inside custom_components/INTEGRATION_NAME/.
  • The official OK example looks like custom_components/awesome/__init__.py, custom_components/awesome/sensor.py, custom_components/awesome/manifest.json, plus README.md and hacs.json at the root.
  • One official Not OK example puts files in awesome/ without custom_components/; another leaves __init__.py and manifest.json flat at the repository root - valid only if content_in_root is set to true in hacs.json.

Third, the manifest.json keys must be present. The same official page requires manifest.json in the integration directory to define at least domain, documentation, issue_tracker, codeowners, name, and version, with values taken from the Home Assistant integration manifest documentation. For this layer, compare the repository against the OK example file by file and the missing piece becomes obvious. If you have already placed an integration by hand into custom_components/, note that HACS treats pre-existing elements specially; see layer six and HACS vs Manual custom_components.

3. Layer three: a wrong type makes the repository "added but invisible"

The fourth add step is Select the correct type; get it wrong and the repository may save successfully yet not appear where you expected. The HACS dashboard documentation lists the categories HACS understands: integration, dashboard (plugins/cards), theme, template, AppDaemon app, Python Script; the include-default-repositories page splits the default list into ./integration, ./plugin, ./python_script, ./template, ./theme, and ./appdaemon.

The test: an integration repository gets type integration, a custom card gets dashboard (plugin), a theme gets theme. Register a repository containing custom_components/xxx/ as a theme and HACS looks for files by theme rules and finds nothing - the symptom is an empty list or an error. Type and structure are two faces of the same thing; read layers two and three together.

4. Layer four: GitHub authentication and network, custom repositories always use the API

The HACS data sources documentation states that custom repositories always reach out to the GitHub API because the HACS data generator does not know about them (verbatim: Custom repositories will always reach out to the GitHub API). Browsing a repository, clicking Update information, updating a download, startup, and the 6-hour and 48-hour refresh intervals all use the GitHub REST API for fresh data. In other words, custom repositories depend on GitHub connectivity more than repositories in the default catalog.

On accounts, the HACS GitHub account FAQ gives a checkable number: unauthenticated GitHub API requests are rate limited to 60 per hour, which HACS finds insufficient, so it uses a scope-less OAuth token to make authenticated requests and read public information only (profile, repository info, gists). The prerequisites page also asks that you not block outgoing requests to GitHub or Cloudflare. On a restricted network, or with an expired or missing token, custom repositories may fail to refresh, showing as intermittent failures or a spinner that never ends. Mark this layer's conclusion needs-site-confirm: whether you hit rate limiting and the state of your token depend on your network and on what the HACS interface tells you; this article will not assert it for you.

One boundary: HACS has no official command-line tool. HACS is a custom integration; repositories are added and removed through the interface menu. Any hacs ... subcommand online is not an official CLI; follow your on-site version and the repository's docs, mark it needs-site-confirm, and do not copy it as an official step.

5. Layer five: version floor, the repository needs a newer Home Assistant than you have

Sometimes the structure is correct and the type is right, yet the repository still will not install or update. Look at two version numbers:

  • The repository's own hacs.json has an optional homeassistant key meaning the minimum Home Assistant version that repository requires; an official example uses "homeassistant": "0.99.9", and the docs say to append b0 to allow beta versions.
  • The HACS dashboard documentation, in its section on downloading a specific version, says that when you run an older Home Assistant and a newer repository version requires a newer one, you can pick an older version under Need a different version? in the download dialog - but not all repositories support versioning.

The test: if the error carries a version number or the HACS UI names a required Home Assistant version, check that repository's hacs.json and documentation and, if needed, choose an older version. Upgrading Home Assistant or rolling back a failed upgrade is covered in HAOS Upgrade and Rollback. A custom card that installs but shows a blank screen is a resource-registration topic in Lovelace Dashboard; neither is repeated here.

6. Layer six: responsibility boundary, who to report to

If the problem survives the first five layers, escalation should follow the official boundary. The HACS dashboard documentation is explicit: report an issue with a third-party element to the repository owner, not to HACS or Home Assistant; use Open issue in the repository entry's three-dots menu to open that repository's issue tracker, choose New issue, and add a detailed description. This is the same logic as the HACS Existing Elements page: the official explanation is that HACS will not scan the local file system for existing elements, because of trust - if HACS did not initially download an element, there is no way to know which version you have, so existing elements must be downloaded again through HACS. That also explains why a hand-copied integration shows up as "not found" in HACS: it is not a 404, HACS simply does not claim elements it did not download.

One limit: a repository's internal file layout, its own authentication, and its error wording are outside HACS's official documentation and change between versions. This article invents no repair command for a particular error. Trust your Home Assistant version, that repository's documentation, and the on-site message; mark the finding needs-site-confirm.

7. Acceptance checklist before calling it done

  • On-site form confirmed: HA 2026.11+ uses the built-in Marketplace (Settings > Marketplace); only 2026.10- uses standalone HACS
  • Repository is public on GitHub; Gitee/GitLab/private repositories ruled out
  • URL is owner/repo, no .git, no subdirectory; repository and owner not renamed or deleted
  • hacs.json sits in the repository root with the required name
  • Integration repository has a single subdirectory under custom_components/, all files present, all six manifest.json keys set
  • The chosen type matches the repository's real category at add time (integration/dashboard/theme/template, etc.)
  • GitHub connectivity works and GitHub plus Cloudflare are not blocked; token and rate-limit state checked on site
  • The repository homeassistant requirement is not above the on-site version; an older version selected in the download dialog if needed
  • Any hacs ... command treated as unofficial and marked needs-site-confirm; third-party repository problems routed to its own issue tracker

Each step answers one yes-or-no question. Do not fix "non-compliant structure" and "GitHub rate limiting" in the same round: one changes repository files or the choice, the other waits for quota or configures a token, and they roll back differently. Walk the five layers by hand first, then consider a check card.