Home Assistant Add-on
This is a set of community add-ons and is not officially supported. If you have any issues, please reach out to the author.
This Home Assistant add-on allows you to easily run Newt or Pangolin-CLI directly in Home Assistant.
Features
- Easy installation via Home Assistant Add-on Store
- Automated setup and execution of the Newt/Pangolin-CLI container
- Supports
amd64,armv7,armhf, andaarch64architectures - Automatic restart on crash
Installation
Newt
1. Add the GitHub Repository as an Add-on Source
- Go to Settings → Add-ons → Add-on Store.
- Click the menu (three dots in the top right) and select Repositories.
- Add the following URL:
orhttps://github.com/boomam/home-assistant-addons orhttps://github.com/Ferdinand99/home-assistant-newt-addonhttps://git.opland.net/Ferdinand99/home-assistant-newt-addon/
- Click Add and wait for the repository to load.
2. Install and Start the Add-on
Pangolin-CLI
- Find Pangolin-CLI in the list and click Install.
- Go to the Configuration tab and enter your values for:
- PANGOLIN_ENDPOINT (e.g.,
https://example.com) - SITE_ID
- SITE_SECRET
- PANGOLIN_ENDPOINT (e.g.,
- Click Save and then Start.
- Check the Logs tab to verify that everything is running correctly.
Newt
- Find Newt Add-on in the list and click Install.
- Go to the Configuration tab and enter your values for:
- PANGOLIN_ENDPOINT (e.g.,
https://example.com) - NEWT_ID
- NEWT_SECRET
- PANGOLIN_ENDPOINT (e.g.,
- Click Save and then Start.
- Check the Logs tab to verify that everything is running correctly.
Configuration
After installation, you can configure the add-on via the Home Assistant UI:
Pangolin-CLI
PANGOLIN_ENDPOINT: "https://example.com"
SITE_ID: "your_site_id"
SITE_SECRET: "your_site_secret"Newt
PANGOLIN_ENDPOINT: "https://example.com"
NEWT_ID: "your_newt_id"
NEWT_SECRET: "your_newt_secret"Docker Environment Variables
Pangolin-CLI
The following environment variables are passed to the Newt container:
PANGOLIN_ENDPOINTSITE_IDSITE_SECRET
Newt
The following environment variables are passed to the Newt container:
PANGOLIN_ENDPOINTNEWT_IDNEWT_SECRET
Exposing Home Assistant through addon
- Connect addon to your Pangolin by completing environment variables and starting the addon
- In Pangolin create new HTTP resource for your new Tunnel with subdomain
- Within the created Resource add new Target Configuration
| Method | IP / Hostname | Port |
|---|---|---|
| HTTP | 127.0.0.1 | 8123 |
- In Home Assistant's
configuration.yamladd these two sections:
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
homeassistant:
allowlist_external_urls:
- "https://<subdomain>.example.com" # <-- Replace with URL of created resource in Pangolin4.5: If you want to use SSO Authentication in Pangolin you need to set up the configuration.yaml like this:
http:
cors_allowed_origins:
- https://google.com
- https://www.home-assistant.io
ip_ban_enabled: true
login_attempts_threshold: 2
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- Local IP of your NEWT instance
- VPS IPYou also need to set up Resource rules in the pangolin dashboard. See rule overview here.
Many thanks to steuerlexi for finding this out!
https://github.com/fosrl/pangolin/issues/757#issuecomment-2903774897
Please see http documentation and allowlist_external_urls on Home Assistant site.
- Restart Home Assistant and your new Pangolin Proxy should be alive
Troubleshooting
Add-on does not start?
- Check the logs in Home Assistant (
Settings → Add-ons → Newt → Logs). - Ensure that
PANGOLIN_ENDPOINT,NEWT_ID, andNEWT_SECRETare set correctly.
Changes in configuration do not take effect?
-
Restart the add-on after making changes.
-
Try removing the container manually:
docker stop newt docker rm newt -
Then start the add-on again.
Docker not available?
- Home Assistant OS manages Docker automatically, but check if the system has access to Docker by running:
docker info
If this fails, there may be a restriction in Home Assistant OS.
Useful Links
Was this page helpful?

