Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security NachrichtenIT Security News Hourly Summary 2026-09-21 23h : 7 posts(21.09.2026 um 23:00 Uhr)
IT Security NachrichtenBigCommerce alerts merchants of data breach linked to Ribon apps(21.09.2026 um 23:18 Uhr)
IT Security DownloadsGitHub Release: matomo-org/matomo v5.14.0 (21.09.2026)(21.09.2026 um 23:11 Uhr)
IT NachrichtenWarner-Übernahme ist durch: Paramount erzielt Vergleiche(21.09.2026 um 22:48 Uhr)
IT Security NachrichtenIT Security News Hourly Summary 2026-09-21 23h : 7 posts(21.09.2026 um 23:00 Uhr)
IT Security NachrichtenBigCommerce alerts merchants of data breach linked to Ribon apps(21.09.2026 um 23:18 Uhr)
IT Security DownloadsGitHub Release: matomo-org/matomo v5.14.0 (21.09.2026)(21.09.2026 um 23:11 Uhr)
IT NachrichtenWarner-Übernahme ist durch: Paramount erzielt Vergleiche(21.09.2026 um 22:48 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

🌍 Exposing Your Hermes Agent to the Internet with Tailscale Funnel (Safely)

Run your local Hermes Agent anywhere, then securely expose it to your backend without renting a VPS or configuring Nginx. One of the coolest things about Hermes Agent is that it exposes an OpenAI-compatible API server. That means your…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Run your local Hermes Agent anywhere, then securely expose it to your backend without renting a VPS or configuring Nginx.




One of the coolest things about Hermes Agent is that it exposes an OpenAI-compatible API server.



That means your backend, frontend, mobile app, or even another AI agent can communicate with Hermes exactly like it would communicate with OpenAI.



But there's one problem...



Hermes usually runs on your local machine:




http://127.0.0.1:8642






That works great for local development.



It doesn't work when:




  • your backend is deployed on Vercel

  • your API lives on Railway

  • your frontend is hosted on Netlify

  • your mobile app needs to call Hermes

  • your teammate wants to use your agent



So how do you expose it safely?



The answer is Tailscale Funnel.









🤔 What is Tailscale Funnel?



Most developers immediately think:




"I'll just port forward."




Please don't.



Opening ports on your home network is usually a bad idea.



Instead, Tailscale Funnel gives you:




  • HTTPS

  • automatic certificates

  • encrypted traffic

  • secure networking

  • no reverse proxy setup

  • no VPS required



Think of it as:




Your Computer


Tailscale


Public HTTPS URL






Instead of exposing your machine directly to the internet, Tailscale securely publishes only the service you choose.









🏗 The Architecture



Here's what we're building.




                 Internet


https://my-machine.ts.net

Tailscale Funnel


Hermes API Server (8642)


Hermes Agent + Tools






Your backend simply calls the HTTPS endpoint.



It never needs to know your local IP.









📦 Step 1 — Enable the Hermes API Server



Hermes includes a built-in OpenAI-compatible API server.



Open:




~/.hermes/.env






Add:




API_SERVER_ENABLED=true

API_SERVER_KEY=my-super-secret-key

API_SERVER_PORT=8642

API_SERVER_HOST=127.0.0.1






Let's understand each option.






API_SERVER_ENABLED



Turns on the API server.




API_SERVER_ENABLED=true












API_SERVER_KEY



Protects your API.




API_SERVER_KEY=super-secret-key






Every request must include:




Authorization: Bearer super-secret-key






Never leave this empty.









API_SERVER_PORT



Default:




8642






You can change it if another application is already using that port.









API_SERVER_HOST



Normally:




127.0.0.1






Keep it this way when using Tailscale Funnel.



You do not need to bind Hermes to 0.0.0.0 just to use Funnel. Keeping it on localhost reduces unnecessary exposure.









🚀 Step 2 — Start Hermes



Start the gateway.




hermes gateway






You should see something similar to:




API server listening on

http://127.0.0.1:8642






Hermes is now running locally.









🧪 Step 3 — Test the API Locally



Before exposing anything, make sure Hermes works.




curl http://127.0.0.1:8642/v1/models \
-H "Authorization: Bearer my-super-secret-key"






If everything is configured correctly, Hermes should return the available model information.



Always test locally before exposing a service.









🌍 Step 4 — Install Tailscale



Install Tailscale on your machine.



Login:




tailscale login






Verify:




tailscale status






You should see your machine connected.









🌐 Step 5 — Create a Funnel



Now expose Hermes.




tailscale funnel 8642






Or on some setups:




tailscale funnel --bg 8642






Tailscale will generate something like:




https://my-computer.tailnet.ts.net






Now your local Hermes API is securely reachable over HTTPS. Tailscale terminates TLS for you and forwards requests to your local service.









🔍 Verify the Funnel



Run:




tailscale funnel status






You should see your public HTTPS URL and the local service it's forwarding to.









🔗 Your Backend Can Now Use Hermes



Instead of calling:




http://localhost:8642






Use:




https://my-computer.tailnet.ts.net/v1






Example:




const client = new OpenAI({
apiKey: process.env.HERMES_API_KEY,
baseURL: process.env.HERMES_URL
});









HERMES_URL=https://my-computer.tailnet.ts.net/v1

HERMES_API_KEY=my-super-secret-key






Nothing else changes.



Because Hermes speaks the OpenAI API format, many existing OpenAI SDKs work by simply changing the baseURL.









🧩 Complete Flow






Frontend





Backend





https://my-machine.tailnet.ts.net/v1





Tailscale Funnel





Hermes API Server





Hermes Agent





LLM Provider






Your backend doesn't need SSH.



It doesn't need VPN software.



It simply makes HTTPS requests.









💻 Example Backend






import OpenAI from "openai";

const client = new OpenAI({
apiKey: process.env.HERMES_API_KEY,
baseURL: process.env.HERMES_URL
});

const response = await client.chat.completions.create({
model: "hermes-agent",
messages: [
{
role: "user",
content: "Summarize today's meeting."
}
]
});

console.log(response.choices[0].message.content);






Notice that this looks almost identical to using the OpenAI SDK—the only difference is the baseURL.









🎯 Real-World Use Cases






Personal AI Assistant






Phone



Backend



Hermes at Home






Your phone can interact with your personal AI wherever you are.









Portfolio Website






Next.js



Hermes



Tools



Terminal






Your website can delegate tasks to Hermes without hosting the agent in the cloud.









Slack or Discord Bot






Slack



Backend



Hermes






The bot communicates with your local Hermes instance securely.









Mobile App






Flutter



Backend



Hermes






Perfect for testing AI features without deploying Hermes to a cloud VM.









🔐 Security Best Practices



Even though Funnel provides HTTPS, you should still secure your deployment.






✅ Always require an API key






API_SERVER_KEY=...






Never expose an unauthenticated API.









✅ Store secrets in environment variables






.env

HERMES_URL=...

HERMES_API_KEY=...






Avoid hardcoding secrets into your source code.









✅ Rotate API keys



If you suspect a key has been exposed, generate a new one and update your backend.









✅ Monitor logs



Review Hermes and Tailscale logs periodically to understand how your service is being used.









🚀 Tips






Keep Hermes on localhost



Prefer:




127.0.0.1






instead of




0.0.0.0






when using Funnel.









Use environment variables



Instead of:




apiKey: "abc123"






Use:




apiKey: process.env.HERMES_API_KEY












Verify locally first



If:




curl localhost:8642






doesn't work,



Funnel won't fix it.



Always verify the local service before troubleshooting networking.









Treat Hermes like any production API



Use authentication, monitor access, and update your software regularly.









📚 Useful Resources




  • Hermes Agent API Server Documentation

  • Hermes Configuration Guide

  • Tailscale Funnel Documentation

  • Tailscale Serve vs Funnel Documentation

  • OpenAI SDK Documentation









🎯 Final Thoughts



One of the biggest advantages of Hermes is that it exposes a standard OpenAI-compatible API.



That means you can build your backend once and point it at:




  • OpenAI

  • OpenRouter

  • Ollama

  • LM Studio

  • Hermes Agent



with only a configuration change.



By combining Hermes with Tailscale Funnel, you can securely expose your local agent over HTTPS without managing reverse proxies or opening firewall ports.



For personal projects, prototypes, and even some production workflows, it's a simple and elegant way to make a local AI agent available anywhere while keeping your networking setup straightforward.




"The best infrastructure is often the one you don't have to think about."


Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 🌍 Exposing Your Hermes Agent to the Internet with Tailscale Funnel (Safely)

Thematisch verwandte Begriffe: Exposing, Your, Hermes, Agent · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-45381 | Tautulli is a Python based monitoring and tracking tool for Plex Media S…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick