drolu/agent-skills/synapse-gateway-setup
Claude Code and agent skill by drolu/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Install, configure, and operate the Synapse Gateway binary (the ReactorPro gateway, now distributed as `synapse-gateway` — install with `pip install synapse-gateway`, `npm i -g @hyperspaceng/synapse-gateway`, or the one-liners at synapse.hyperspace.ng) as a headless service on any server — Linux (systemd), macOS (launchd), Windows, or Docker — federate it into a NATS/Synapse agent mesh, and deploy reactorpro-agentd, the headless concurrent agent worker that attaches to a gateway as a second executor. Use this skill whenever the user wants to deploy ReactorPro's gateway, stand up a ReactorPro server or VPS, run synapse-gateway as a background service, enable the mesh bridge, let agents in one organisation reach agents in another, connect ReactorPro desktop apps to a shared gateway, run a gateway with no desktop app attached, run a server-side headless agent (reactorpro-agentd) with a given provider, API key and model, expose a skills library to a headless worker, or troubleshoot a gatew …
Install
npx vskill@latest install drolu/agent-skills/synapse-gateway-setupSKILL.md
The same SKILL.md was published earlier as drolu/agent-skills/synapse-gateway-setup.
ReactorPro Gateway — Server Setup
The ReactorPro gateway is a single static Go binary. It serves the ReactorPro web UI, brokers connections from ReactorPro desktop apps, and can join a NATS/Synapse agent mesh so that agents in one organisation reach agents in another. There are no runtime dependencies: no Docker, no Go toolchain, no Node, no shared libraries. One file, one token, one config.
Use this skill to stand it up on a server and keep it running.
Install (one line, every OS — native binaries, offline after install)
PyPI — first choice on all platforms:
Platform wheels bundle the synapse-gateway + reactorpro-agentd native binaries (checksum-verified at build time) and put synapse-gateway / synapse-agentd commands on PATH. Node.js: npm i -g @hyperspaceng/synapse-gateway. One-line bootstrappers (macOS/Linux/Windows, download from GitHub Releases + verify SHA256SUMS):
GitHub release assets keep their historical reactorpro-gateway-<goos>-<goarch> names; the pip/npm-installed commands are synapse-gateway / synapse-agentd.
Which kind of deployment are you building?
The gateway works with or without a desktop app attached, and the settings differ. Answer this first — it changes what you configure and what you can expect.
| If… | Go to | |
|---|---|---|
| No ReactorPro desktop app will connect — a VPS, jump host, or central node | **Gateway only** | |
| One organisation, one site, desktop apps connecting | **Standard site** | |
| Several of your own sites that should find each other | references/scenarios.md → S3 | |
| Another company involved | references/scenarios.md → S4 | |
| Some edges are not upgraded yet | references/scenarios.md → S5 (read this — it prevents the most confusing failure) | |
| Regulated or hostile-adjacent traffic | references/scenarios.md → S6 | |
| A partner organisation with no desktop agents of their own | references/scenarios.md → S7 |
references/scenarios.md carries the full playbooks: what to set, how to verify, and what each scenario cannot do.
The shape of a deployment
Five things matter, and getting the first three wrong is the usual cause of a gateway that "runs" but does not work:
- A gateway token. The only required setting. Nothing else is mandatory.
- A listen address. Defaults to
:443, which is almost never what you want on a server.
Set it explicitly.
- A persistent data directory. Holds the SQLite database and the mesh identity. The
identity is not reproducible — lose it and the keypair is gone for good.
- A service manager so it survives logout, reboot, and crashes.
- Optionally, the mesh bridge — disabled unless explicitly enabled and pointed at a NATS
server.
Quick start
Install with the bundled script — it detects the platform, downloads from GitHub Releases, and verifies the SHA-256 checksum before installing:
Then confirm it is actually healthy, not merely running:
/healthz only proves the process is listening. The authenticated checks are what tell you the gateway is configured correctly — see Verify the deployment below.
Manual install
Binaries are published per release for five targets. Download the matching one:
| Platform | Asset | |
|---|---|---|
| Linux x86-64 | reactorpro-gateway-linux-amd64 | |
| Linux ARM64 | reactorpro-gateway-linux-arm64 | |
| macOS Intel | reactorpro-gateway-darwin-amd64 | |
| macOS Apple silicon | reactorpro-gateway-darwin-arm64 | |
| Windows x86-64 | reactorpro-gateway-windows-amd64.exe |
Verify the checksum. These are unsigned binaries; the checksum is the only integrity signal you get, and it is worthless if you skip it.
Pin a version by replacing latest/download with download/v1.5.8.
You can also confirm what you are running without downloading anything — GitHub exposes a server-computed digest per asset:
Configure
Settings come from command-line flags, environment variables, or both. Flags win over environment variables; for each setting the flag's value is simply initialised from the environment, so passing the flag overrides it.
Two rules of thumb:
- Put the token in the environment, never in the command line. Arguments are visible to every
user on the host via ps. Use an EnvironmentFile (systemd), a 0600 file sourced by a launcher (launchd), or the service's environment (Windows).
- Quote only what needs quoting. The gateway trims whitespace but does not strip quote
characters from a value — so quotes must not be part of the value. Quotes that are file syntax are fine: systemd's environment-file parser and a shell source both remove surrounding quotes before the gateway sees the value, which is how you pass a path containing spaces. The failure mode is quotes that reach the process literally, e.g. docker run -e LIVEAGENT_GATEWAY_TOKEN='"abc"' — the gateway then expects the quotes to be sent by every client, and Bearer abc gets a 401.
Minimal configuration:
The five settings that cover almost every deployment:
| Setting | Flag | Env var | Default | |
|---|---|---|---|---|
| Gateway token | -token | LIVEAGENT_GATEWAY_TOKEN | (required) | |
| Listen address | -http-addr | LIVEAGENT_GATEWAY_HTTP_ADDR | :443, or :$PORT if PORT is set | |
| Data directory | — | LIVEAGENT_GATEWAY_DATA_DIR | user config dir | |
| TLS cert / key | -tls-cert / -tls-key | LIVEAGENT_GATEWAY_TLS_CERT / _KEY | (off — plain HTTP) | |
| Mesh on/off | -mesh-enabled | LIVEAGENT_GATEWAY_MESH_ENABLED | false |
Run synapse-gateway --help for the full list. references/configuration.md documents every flag with its default and when to change it.
Choosing a listen address
127.0.0.1:3000— behind a reverse proxy or only for local apps. **Preferred for anything
internet-facing**; the proxy terminates TLS.
:3000— reachable from the LAN. Required when desktop apps on other machines connect
directly, and when running in a container.
:443(the default) — only correct if the gateway itself terminates TLS.
The gateway speaks plain HTTP unless you give it -tls-cert and -tls-key. Terminating TLS at nginx/Caddy/Cloudflare in front of a loopback bind is simpler to operate and keeps certificate renewal out of the gateway.
The data directory
LIVEAGENT_GATEWAY_DATA_DIR is the base for two files:
gateway.db— SQLite database of per-agent tokens. Auto-created. Safe to back up.mesh/reactorpro-identity.json— the mesh identity. Not reproducible. See below.
Without it the gateway falls back to the OS user-config directory (~/.config/liveagent on Linux, ~/Library/Application Support/liveagent on macOS, %AppData%\liveagent on Windows). Set it explicitly on a server so the location is obvious and service-independent.
Back up `mesh/reactorpro-identity.json` before your first upgrade. The file holds an Ed25519 keypair and a fingerprint computed over the agent id and the public key. Edit the id inside it and the file refuses to load; point the config at a different id and startup fails with "the agent id is part of the fingerprint and cannot be reassigned". Every outbound envelope is signed and carries that fingerprint, and the manifest advertises it so peers can pin this gateway.
So losing the identity file is not silent: a new keypair is minted under the same agent id, and any peer that already pinned the old fingerprint will refuse this gateway as an identity mismatch. Restore from backup, or accept the new identity and tell your peers.
Access control
The gateway has exactly one authentication mechanism:
That header form is required — a bare token, ?token=, or a custom header is rejected with 401. Everything under /api/ is gated by it. Two exceptions:
GET /healthz— unauthenticated, returns{"ok":true}. Safe for load balancers and
orchestrator probes.
GET /plus/assets/*— the embedded web UI, unauthenticated (the UI asks for the token
itself).
Give each desktop agent its own credential rather than sharing the gateway token: POST /api/agents/{id}/token. Per-agent tokens let you revoke one machine without rotating every client. references/api.md has the request shapes.
Run it as a service
Pick the section for the platform. Full unit files, hardening options, and Docker notes are in references/service-managers.md.
Linux — systemd
The environment file must be readable by the service user — 0600 owned by root works because systemd reads it as root before dropping privileges, but 0640 root:reactorpro is clearer if you ever start the binary by hand.
macOS — launchd
~/Library/LaunchAgents/ng.reactorpro.gateway.plist starts at login; put the same file in /Library/LaunchDaemons/ to start at boot (needs sudo and a UserName). RunAtLoad starts it, KeepAlive restarts it after a crash. Keep the token in a 0600 file the launcher reads at start time rather than inline in the plist. A working pair of files is in references/service-managers.md, and the templates ship in scripts/.
Windows
The binary is not a Windows service — sc.exe create will fail. Either use a wrapper (NSSM, WinSW) or a Task Scheduler entry with "Run whether user is logged on or not" and a trigger of "At startup". Set the token as a machine environment variable (setx /M) so it is not in the task's arguments.
Docker
An image is published as ghcr.io/drolu/liveagent-gateway. That name is a legacy internal identifier kept deliberately; it is the ReactorPro gateway. Mount the data directory as a volume so the identity survives container replacement, and remember to publish the port (-p 3000:3000) with --http-addr=:3000.
Connecting desktop apps
In each ReactorPro desktop app, open Settings → Remote:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/synapse-gateway-setup/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/drolu/agent-skills/synapse-gateway-setup)