Skip to main content

HTTPS with ngrok

Give a local Hrida.ai a public HTTPS address in one command, for development, demos and testing.

Best for: development and demos · Certificates: automatic, at ngrok's edge · Open ports: none

ngrok creates a secure tunnel from a public URL to your local machine. It's the fastest way to get HTTPS working for development, demos, or testing features that require a secure context (like Voice Calls).

When to use ngrok

ngrok is ideal for development and testing. For production deployments, use a reverse proxy like Nginx or Caddy, or a Cloudflare Tunnel for zero-trust access.

Prerequisites​

RequirementDetails
Hrida.aiRunning locally on port 8080 (default)
ngrok accountFree at ngrok.com, provides a stable authtoken

1. Install ngrok​

bash
brew install ngrok

2. Authenticate​

bash
ngrok config add-authtoken YOUR_AUTH_TOKEN

Find your authtoken at dashboard.ngrok.com/get-started/your-authtoken.

3. Start the tunnel​

bash
ngrok http 8080

ngrok outputs a public URL like:

Forwarding  https://a1b2-203-0-113-42.ngrok-free.app -> http://localhost:8080

Open that https:// URL in your browser. You're done.

Configure Hrida.ai​

Set HRIDAAI_URL so OAuth callbacks and internal links resolve correctly:

bash
docker run -d \
  -p 8080:8080 \
  -e HRIDAAI_URL=https://a1b2-203-0-113-42.ngrok-free.app \
  -v hrida-ai:/app/backend/data \
  --name hrida-ai \
  ghcr.io/hrida-ai/hrida-ai-studio:main
Warning

ngrok free-tier URLs change every time you restart the tunnel. Update HRIDAAI_URL accordingly, or use a ngrok custom domain (paid) for a stable URL.

Custom Domain (Optional)​

With a paid ngrok plan, claim a fixed subdomain so your URL never changes:

bash
ngrok http 8080 --url=your-name.ngrok-free.app

This gives you a permanent URL you can set once in HRIDAAI_URL and forget.

Quick Reference​

WhatCommand / Value
Start tunnelngrok http 8080
Custom domainngrok http 8080 --url=your-name.ngrok-free.app
Dashboarddashboard.ngrok.com
Inspect traffichttp://localhost:4040 (ngrok's local inspector)
Set CORS originCORS_ALLOW_ORIGIN=https://your-name.ngrok-free.app

Limitations​

ConcernDetail
Free-tier URLs rotateURL changes on every restart unless you use a custom domain
Interstitial warningFree-tier shows an ngrok splash page on first visit
Not for productionngrok adds latency and is a single point of failure; use a reverse proxy or Cloudflare Tunnel instead
Rate limitsFree tier has connection rate limits; paid plans remove them
Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.