Skip to content

hyAway Setup Guide

Connect hyaway.com to your Hydrus Network client.


Choose your setup

SetupBest ForDifficulty
Same MachineUsing hyaway.com on the same computer as HydrusEasy (~2 min)
Remote AccessAccessing Hydrus from your phone, laptop, or another deviceMedium (~10 min)

Already have remote access configured? If you're using a reverse proxy, VPN, or another method to expose Hydrus remotely, that will work as well. Just use your existing URL in the Connect from hyaway.com section.


Enable the Hydrus client API

This step is required for both setups.

The Client API lets external apps like hyAway communicate with Hydrus.

  1. In Hydrus, go to services → manage services
  2. Look for an existing client api service, or click add → client api to create one
  3. Set the port to 45869 (Hydrus default)
  4. Leave allow non-local connections unchecked (both same-machine and Tailscale setups use local connections)
  5. Check support CORS headers (required for connecting between hyaway.com and your own domain)
  6. Click Apply

Why CORS? When you visit hyaway.com, your browser runs code from that website. By default, browsers don't let websites talk to other servers (like your local Hydrus) — this is a security feature. Enabling CORS tells Hydrus "it's okay for hyaway.com to connect to me."

Hydrus manage services dialog with CORS enabled

Verify the API is running

Open your browser and navigate to:

http://127.0.0.1:45869

You should see a welcome page.

Hydrus API welcome page


Setup A: Same machine

Use this setup if you're browsing hyaway.com on the same computer where Hydrus is running.

Your endpoint URL is: http://127.0.0.1:45869

That's it! Skip to Connect from hyaway.com.


Setup B: Remote access with Tailscale

Use this setup to access Hydrus from your phone, laptop, or any other device.

┌─────────────────┐     Tailscale      ┌──────────────────────┐
│  Your Phone/    │◄──── secure ──────►│  Home Computer       │
│  Laptop         │      tunnel        │                      │
│                 │                    │  ┌────────────────┐  │
│  hyaway.com ────┼────────────────────┼─►│ Hydrus :45869  │  │
│                 │                    │  └────────────────┘  │
└─────────────────┘                    └──────────────────────┘

Tailscale creates an encrypted, private network between your devices — no port forwarding or firewall configuration needed.

Install Tailscale

  1. Download and install Tailscale on your home computer (where Hydrus runs)
  2. Install Tailscale on any devices you want to access Hydrus from (phone, laptop, etc.)
  3. Sign in with the same account on all devices — this creates your tailnet (your private Tailscale network)

Tailscale app showing connected devices

Expose Hydrus via Tailscale Serve

On your home computer, open a terminal:

  • Windows: Press Win + X and select Terminal or PowerShell
  • Mac: Open Terminal from Applications → Utilities
  • Linux: Open your terminal app

Run this command to start Tailscale Serve in background mode:

bash
tailscale serve --bg --https 45869 http://127.0.0.1:45869

This command means: "Proxy http://127.0.0.1:45869 (local Hydrus) to HTTPS port 45869 on my tailnet." The --bg flag runs it in the background so you can close the terminal.

Want to try it temporarily first? Run without --bg to test. Press Ctrl+C to stop when done.

To disable later: Run tailscale serve --https=45869 off to stop exposing Hydrus.

If this is your first time using Tailscale Serve, it will prompt you to enable HTTPS for your tailnet.

You'll see output like:

Available within your tailnet:

https://my-computer.tail1234.ts.net:45869/
|-- proxy http://127.0.0.1:45869

Serve started and running in the background.
To disable the proxy, run: tailscale serve --https=45869 off

Take note of your Tailscale URL (e.g., https://my-computer.tail1234.ts.net:45869) — you'll need it in the next step. You can also find this in the Tailscale app by clicking on your machine name to copy it.


Connect from hyaway.com

  1. Open hyaway.com/settings/connection (or go to Settings → Connection from the homepage)
  2. If using Tailscale, make sure it's connected on your device

Step 1: Set the API endpoint

Enter your endpoint URL:

  • Same machine: http://127.0.0.1:45869
  • Tailscale: https://my-computer.tail1234.ts.net:45869 (your URL from the previous step)

Click Check endpoint to verify the connection. You should see the Hydrus and API version numbers.

Note: Your browser may ask for permission to access your local network. This is expected — Tailscale addresses are treated as private network addresses. Click Allow to continue.

Browser local network access prompt

hyAway API endpoint settings


Step 2: Get an access key

Choose one of these options:

In Hydrus:

  1. Go to services → review services

  2. In the left panel, expand local and select client api

  3. Click add → from api request — a dialog will appear waiting for the request

    Hydrus waiting for request dialog

In hyaway.com:

  1. Click Request new API access key

Back in Hydrus:

  1. A permission approval dialog will appear — review the permissions and click Apply

    Hydrus permission approval dialog

In hyaway.com:

  1. You'll see New API access key saved — the key is stored automatically
  2. Click Check API connection to verify everything works

Note: If you see a "Complete the Hydrus permissions flow" message after checking, make sure you clicked Apply in the Hydrus dialog, then click Check API connection again.

Option B: Use an existing key

  1. In Hydrus, go to services → review services, then select local → client api in the left panel
  2. Click add → manually
  3. Give the key a name (e.g., "hyAway")
  4. Select the permissions you want to grant
  5. Copy the 64-character access key
  6. In hyaway.com, paste the key and click Check API connection

Step 3: Verify connection

Once configured, you'll see these success messages in each card:

  • Endpoint is valid!
  • API access key is valid!
  • Session key is valid!

Hyaway access key valid card

Step 4: Start browsing

At this point, hyaway.com should be connected to your Hydrus client and you can start browsing. e.g. Pages

Permissions reference

hyAway requests these permissions from the Hydrus Client API:

PermissionRequiredPurpose
Search for and fetch files✓ YesCore functionality — browsing and viewing files
Import and delete filesOptionalArchive/trash file management
Manage pagesOptionalView and interact with Hydrus pages
Manage databaseOptionalAccess thumbnail dimensions and namespace colors
Edit file timesOptionalSync view statistics to Hydrus

You can grant all permissions or only the ones you need.


Troubleshooting

"Connection refused" or "Network error"

  • Check Hydrus is running and the Client API is enabled
  • Verify the port is 45869 (or matches your configuration)
  • Check the URL — use https:// for Tailscale URLs
  • Confirm Tailscale is connected on both your device and home computer

"403 Forbidden" when requesting access key

  • Make sure you have the "add → from api request" dialog open in Hydrus
  • The dialog must be open before you click the request button in hyaway.com

"419 Session Expired"

hyAway automatically refreshes expired sessions. If it persists:

  • Check that your access key is still valid in Hydrus
  • Try Settings → Connection → Reset and reconfigure

hyaway.com can't reach Hydrus

Same machine setup:

  • Confirm Hydrus is running and http://127.0.0.1:45869 loads in your browser

Tailscale setup:

  • Confirm tailscale serve is running on your home computer
  • Verify you're using the correct Tailscale URL (run tailscale status to check)
  • On the home computer, confirm http://127.0.0.1:45869 loads in a browser
  • Ensure Tailscale is connected on your current device

Finding your Tailscale URL

Run this command on your home computer:

bash
tailscale status

Look for your machine name and domain, e.g., my-computer.tail1234.ts.net


Security notes

Why Tailscale?

Tailscale creates an encrypted, private network between your devices. When you use Tailscale Serve:

  • Hydrus is only accessible to devices on your tailnet — not the public internet
  • All traffic is encrypted end-to-end
  • You don't need to open ports on your router or configure firewalls
  • Your Hydrus instance remains "local only" — Tailscale handles the secure tunneling

Access keys vs session keys

  • Access key: long-lived secret (treat it like a password). In Hydrus terms, the access key is the account.
  • Session key: short-lived key derived from the access key. Session keys expire, and they also reset when the Hydrus client restarts.

hyAway uses session keys by default, which means:

  • Your access key is only used to obtain a session key when needed, rather than being sent with every API request.
  • If the Hydrus client restarts (or the session expires), hyAway will request a fresh session key automatically.

hyAway stores your endpoint + keys in your browser's local storage.

Tailscale Serve vs Funnel

  • Tailscale Serve: Private, only accessible to your tailnet
  • Tailscale Funnel: Valid only if you explicitly want public access. It is not private, anyone on the internet can try to connect.

Stopping Tailscale Serve

If using Tailscale and you want to stop exposing Hydrus:

bash
# If running in foreground: press Ctrl+C

# If running in background:
tailscale serve --https=45869 off

Getting help