Self-host Hoppscotch
Self-hosted API development platform: a web app for building, sending and sharing API requests, with workspaces and an admin dashboard. Run your own Hoppscotch on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.
Updated November 23, 2026
Running your own Hoppscotch usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make Hoppscotch behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.
Just ask your agent
Open a Plus workspace (Hoppscotch runs in Docker, which Plus and Pro include), tap Launch to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:
Set up Hoppscotch on this workspace and give me the link. Follow https://envhaven.com/self-host/hoppscotch.md
Then open the link it sends and create your Hoppscotch account straight away, before anyone else finds the address. That is the whole request: the address in it is this page’s Markdown copy, and the agent follows the instructions for it further down, with every setting Hoppscotch’s docs require.
Or keep it private with Tailscale
The preview URL puts Hoppscotch on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives Hoppscotch an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace’s Vars pane as TS_AUTHKEY, and ask the agent:
Set up Hoppscotch on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/hoppscotch.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
- A Tailscale container runs beside Hoppscotch, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
- Anything other services have to reach, such as a webhook, still needs a public address. Keep self-hosted apps private with Tailscale covers both, and what Tailscale’s free plan includes.
| At a glance | |
|---|---|
| What it is | Developer tools and monitoring |
| License | MIT |
| Runs as | Docker (hoppscotch/hoppscotch (all-in-one); hoppscotch/hoppscotch-frontend, hoppscotch/hoppscotch-backend and hoppscotch/hoppscotch-admin as separate images) |
| Memory | 2 GB to host the built output; 4 GB to generate the build image (docs) |
| Plan that fits | Plus or larger |
| Web port | 3000 |
| Documentation | docs.hoppscotch.io/documentation/self-host/community-edition/install-and-build |
What your agent takes care of
- Installing it. Hoppscotch runs from the official image,
hoppscotch/hoppscotch (all-in-one); hoppscotch/hoppscotch-frontend, hoppscotch/hoppscotch-backend and hoppscotch/hoppscotch-admin as separate images, with its data in folders under~/apps/hoppscotch. - Putting it on an HTTPS address. The workspace’s preview URL serves it, and your own domain can too.
- Locking it down first. What Hoppscotch’s docs say to set before it faces the internet, below.
- Telling you what to back up: the PostgreSQL database (external to the Hoppscotch containers) and the .env file (DATA_ENCRYPTION_KEY, DATABASE_URL, URLs) (docs).
The settings it needs behind a proxy
VITE_BASE_URL: Public URL of the web app; VITE_SHORTCODE_BASE_URL can match it. (docs)VITE_SHORTCODE_BASE_URL: Base URL for shareable shortcodes. (docs)VITE_ADMIN_URL: Public URL of the admin dashboard (port 3100 by default). (docs)VITE_BACKEND_GQL_URL,VITE_BACKEND_WS_URL,VITE_BACKEND_API_URL: Public URLs of the backend for GraphQL, WebSocket (wss:// when served over HTTPS) and REST; the browser calls them directly. (docs)WHITELISTED_ORIGINS: Origins allowed to talk to the backend and desktop app; list the real public URLs. (docs)ENABLE_SUBPATH_BASED_ACCESS: With the AIO container, serves app at /, admin at /admin and backend at /backend on one port (80), which suits a single-host proxy or tunnel. (docs)HOPP_ALTERNATE_PORT: Changes the in-container Caddy HTTP port (default 80), for non-root runs. (docs)TRUST_PROXY: When true, the client IP is the left-most X-Forwarded-For entry; default false. (docs)- OAuth callback URLs: Provider callbacks point at the public backend URL (…/v1/auth/<provider>/callback), so they must be updated from localhost. (docs)
- HTTPS and secure cookies: Docs recommend TLS because authentication uses secure HTTP cookies. (docs)
Before it faces the internet
- The first person to log in through the admin dashboard (port 3100) becomes administrator, so complete that step before exposing the port. (docs)
- Community Edition allows anyone who can reach the app to register. (docs)
- DATA_ENCRYPTION_KEY is a 32-character key; the example file ships a placeholder that must be replaced. (docs)
- The repo compose files use the database password testpass; the deploy file is labelled not for personal deployments. (docs)
- Use HTTPS because authentication relies on secure cookies. (docs)
Things to ask next
Everything after the install is one more sentence to the agent. Some that come up:
- “Add a check for every site I run, and alert me on Telegram when one goes down.”
- “Put it behind a login before anyone else finds the address.”
- “Move Hoppscotch to app.example.com.” Add the domain on the dashboard’s Domains page with a CNAME to
domains.envhaven.app, and the agent changes Hoppscotch’s address settings to match. - “Update Hoppscotch to the latest release.” It pulls the new image and recreates the container, data kept.
Instructions for the agent
The agent reads these from the page’s Markdown copy. They also work pasted on their own, if you would rather give them in your own words.
Set up Hoppscotch on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, hoppscotch/hoppscotch (all-in-one); hoppscotch/hoppscotch-frontend, hoppscotch/hoppscotch-backend and hoppscotch/hoppscotch-admin as separate images, starting from the docs' compose file: https://github.com/hoppscotch/hoppscotch/blob/main/docker-compose.yml. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- The docs' setup includes: PostgreSQL (required; the docs expect you to run it yourself, the compose profiles add a postgres container).
- Keep the compose file in ~/apps/hoppscotch and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to Hoppscotch's port 3000.
- The preview URL terminates HTTPS in front of Hoppscotch: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/hoppscotch.md for the preview URL, as Hoppscotch's docs describe for running behind a proxy; skip any that apply only when Hoppscotch serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/hoppscotch.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set Hoppscotch up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.
What to know
- In Docker, Hoppscotch’s containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
- Default layout uses three TCP ports (app 3000, admin 3100, backend 3170) and the browser talks to the backend directly, so an HTTP-only tunnel needs a route per service or the AIO subpath mode; docs say port 80 and 443 ingress is the future default. (docs)
- The backend GraphQL subscriptions use a WebSocket (wss) URL, so the tunnel must pass WebSocket traffic. (docs)
- Sign-in needs an OAuth provider (GitHub, Google, Microsoft) or email; email needs SMTP. Without SMTP the admin dashboard shows invite links to copy by hand. (docs)
- SMTP is configured with an smtps:// URL or custom host, port 587 (TLS) or 465 (SSL), so outbound SMTP must be open. (docs)
- Building the image needs 4 cores and 4 GB RAM; use the prebuilt Docker Hub images on a small VPS. (docs)
- Database tables are not created automatically: run prisma migrate deploy once inside the backend or AIO container. (docs)
- A weekly anonymous usage ping is sent unless data sharing is turned off in settings. (docs)
- Request proxying is a per-client toggle; the default proxy URL offered is Hoppscotch’s hosted proxy (PROXY_APP_URL), an external service. (docs)
- A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.
Without a workspace
The manual route, on a server you run:
- Rent a Linux VPS, secure SSH, and create a user for the app.
- Install Docker and write a compose file from the official image.
- Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
- Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
- Keep the firewall closed except for the proxy, and schedule backups and updates.
Hoppscotch’s own documentation covers each step for its install methods.
Sources
Facts about Hoppscotch come from its own documentation, checked on 2026-11-23:
- docs.hoppscotch.io/documentation/self-host/community-edition/install-and-build
- docs.hoppscotch.io/documentation/self-host/community-edition/prerequisites
- github.com/hoppscotch/hoppscotch/blob/main/.env.example
- docs.hoppscotch.io/documentation/self-host/community-edition/admin-dashboard
- docs.hoppscotch.io/documentation/self-host/community-edition/telemetry
- docs.hoppscotch.io/documentation/self-host/community-edition/setup-and-access
- github.com/hoppscotch/hoppscotch/blob/main/docker-compose.deploy.yml