{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "xp3ta-hermes-console--close-old-gateway-network-exposure",
 "repo": "xP3ta/hermes-console",
 "repo_url": "https://github.com/xP3ta/hermes-console",
 "repo_slug": "xp3ta-hermes-console",
 "title": "Close the old Gateway port left open by a previous setup",
 "page_title": "How to close the old Gateway port left open by a previous setup with Hermes Console",
 "summary": "Remove the network exposure from an older helper so only the Dashboard stays reachable from your phone.",
 "who": "A person who installed Hermes with an older setup helper, uses Console 1.3 on all phones, and wants to stop the Gateway from listening on the network.",
 "problem": "An older helper saved an API_SERVER_KEY and opened port 8642 on your network, which is more exposure than Console needs.",
 "outcome": "The Gateway no longer listens on your network, Console still connects through the Dashboard, and the old key is kept unless you choose to remove it.",
 "steps": [
  "Update every phone that uses Console to version 1.3 or newer, because the cleanup is meant to run only after that.",
  "On the computer, run `curl -fsSL https://raw.githubusercontent.com/xP3ta/hermes-setup/main/hermes-dashboard-setup.sh | sh -s -- --retire-gateway-exposure`, or the PowerShell form with `-RetireGatewayExposure` from the README.",
  "Keep the API_SERVER_KEY, or add `--also-remove-api-key` to the command if you want it removed too.",
  "Optional: if you do not use Hermes' API server for anything else, delete the API_SERVER_KEY line from `~/.hermes/.env` and restart the Gateway with `hermes gateway restart`.",
  "Open Console and confirm it still connects to your Dashboard."
 ],
 "agent_prompt": "In the xP3ta/hermes-console setup, run the retire-gateway-exposure option from the xP3ta/hermes-setup helper on <target host>, keeping the API_SERVER_KEY. Expected output: a message that the Gateway exposure was undone. Verify that Console on every phone still connects to the Dashboard before removing anything else.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Run the cleanup only after every phone uses Console 1.3, because the README warns that older versions still depend on the Gateway.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "dart",
 "requirements": [
  "A computer or server where Hermes Agent is installed or can be installed",
  "Terminal on Linux or macOS, or PowerShell on Windows, on that machine",
  "An Android phone with Console installed",
  "Your home network or Tailscale so the phone can reach the Dashboard"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "This cleanup downloads and runs a script from the internet, so check the script first and run it only on the machine that hosts Hermes."
  },
  {
   "tag": "credentials",
   "notice": "Deleting the API_SERVER_KEY stops Hermes' API server from starting, which can break other tools that use that key."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/xp3ta-hermes-console/close-old-gateway-network-exposure/",
 "md": "https://dedupedai.com/use-cases/xp3ta-hermes-console/close-old-gateway-network-exposure/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/xp3ta-hermes-console--close-old-gateway-network-exposure.json",
 "api_version": "v1"
}
