Skip to main content

Configuration

HyperVibes works without an .env file. On first start, it creates a private config.json containing authentication and credential-encryption secrets. Server and storage settings use environment variables, not config.json. Restart the app after changing settings.

Files and directories​

OShypervibes.sqlite directoryconfig.json directoryDisposable cache directory
Linux~/.local/share/hypervibes/~/.config/hypervibes/~/.cache/hypervibes/
macOS~/Library/Application Support/HyperVibes/Same as database~/Library/Caches/HyperVibes/
Windows%APPDATA%\HyperVibes\Same as database%LOCALAPPDATA%\HyperVibes\Cache\

On Linux, absolute XDG_DATA_HOME, XDG_CONFIG_HOME, and XDG_CACHE_HOME values replace the respective base directories. On Windows, missing or relative APPDATA and LOCALAPPDATA values fall back to the home directory's AppData\Roaming and AppData\Local directories.

APP_SQLITE_PATH overrides the database filename; APP_CACHE_DIR overrides the cache directory. There is no environment variable for a custom config filename. For container paths and backups, see Installation.

Config file​

config.json supports these fields only. Other keys do not configure the app. The app generates the secrets automatically; you normally do not need to edit them.

FieldValue
versionRequired number 1.
BETTER_AUTH_SECRETAuthentication secret containing at least 32 random characters.
AGENTS_ENCRYPTION_KEYCredential-encryption key: exactly 64 hexadecimal characters (32 bytes).

Back up the database and config.json together. Losing the encryption key prevents recovery of stored credentials. Keep the original secrets when upgrading or moving an installation. Do not replace the encryption key to reset access.

An existing database without saved configuration requires the original AGENTS_ENCRYPTION_KEY in the environment; startup does not silently generate a replacement. First-run environment secrets are saved in the new config file. Later environment overrides take precedence but do not update the saved file, so back up those overrides separately.

Environment variables​

Set variables in your shell, container environment, or an optional .env file. The source launch commands and packaged executable load .env from the current working directory. Existing shell variables take precedence over .env values. Relative storage and asset paths resolve from the working directory.

VariableDefaultPurpose
APP_HOST127.0.0.1Address the server binds to. Use 0.0.0.0 to listen on all IPv4 interfaces.
APP_PORT3003Server port, from 1 to 65535.
APP_ORIGINhttp://localhost:<APP_PORT>Exact browser origin for authentication. Must be HTTP(S), without credentials, a path, query, or fragment.
APP_ALLOW_INSECURE_HTTPfalseSet to true to allow non-loopback HTTP origins on a trusted private network. Only true and false are accepted.
APP_SQLITE_PATHOS database path aboveSQLite database filename.
APP_CACHE_DIROS cache directory aboveDisposable cached assets.
APP_STATIC_DIRApplication's static/ directoryStatic asset directory.
APP_BUILD_DIRApplication's .build/ directoryBuilt frontend directory.
BETTER_AUTH_SECRETSaved config valueOverride the authentication secret. At least 32 random characters.
AGENTS_ENCRYPTION_KEYSaved config valueOverride the credential-encryption key. Exactly 64 hexadecimal characters.
XDG_DATA_HOME~/.local/shareLinux/Unix database base directory; must be absolute to take effect.
XDG_CONFIG_HOME~/.configLinux/Unix config base directory; must be absolute to take effect.
XDG_CACHE_HOME~/.cacheLinux/Unix cache base directory; must be absolute to take effect.
APPDATAHome directory's AppData\RoamingWindows database and config base directory; must be absolute to take effect.
LOCALAPPDATAHome directory's AppData\LocalWindows cache base directory; must be absolute to take effect.

Do not use blank secret overrides. See the repository's .env.example for a starting point.

Access from another device​

Tailscale Serve is the preferred method. It provides private HTTPS with automatic certificates. Set APP_ORIGIN to its exact HTTPS address, keep APP_HOST=127.0.0.1 for a native installation, and leave APP_ALLOW_INSECURE_HTTP=false. For containers, keep the app bound to 0.0.0.0 inside the container and publish only to host loopback. Use Serve, not public Funnel access.

If you choose private LAN HTTP instead, use settings like these in .env, replacing the IP address:

APP_HOST=0.0.0.0
APP_ORIGIN=http://10.16.20.111:3003
APP_ALLOW_INSECURE_HTTP=true

Open that exact URL. HTTP sends sessions and app data without transport encryption. Use it only on a trusted private network, never directly on the public internet. Some browser wallets require HTTPS and may not work over LAN HTTP.