Skip to content
Back to skills

Filament Servers

FSecurity

Filament on a machine with no one at it — a Linux server or cloud VM, a Windows host, a Mac — installed with its one-line installer, kept running as a service (systemd, a scheduled task, launchd), reached and paired, set up over SSH from the desktop app, updated, rolled back and removed. Load it when the person asks to put Filament on a server, a VM or another computer, keep it running, update it, or why it does not start or answer.

  • 35 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsrustgoshellnodegitsecurity

Works with

  • claude code
  • terminal

Security analysis

F31/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • highPerforms destructive filesystem operations
  • criticalModifies startup scripts or system services for persistence
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro shows the line behind each finding and how to fix it

Scanned December 2, 2026

npx -y skills add invertibleMatrix/filament --skill filament-servers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Filament Servers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Filament Servers
[![Security: F — Skills Directory](https://www.skillsdirectory.com/api/skills/invertiblematrix-filament-servers/badge)](https://www.skillsdirectory.com/skills/invertiblematrix-filament-servers)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: filament-servers
description: Filament on a machine with no one at it — a Linux server or cloud VM, a Windows host, a Mac — installed with its one-line installer, kept running as a service (systemd, a scheduled task, launchd), reached and paired, set up over SSH from the desktop app, updated, rolled back and removed. Load it when the person asks to put Filament on a server, a VM or another computer, keep it running, update it, or why it does not start or answer.
---

# Filament on a server, a Windows host or a Mac

Pairing, the ways in, the desk and what one machine lets another do: the skill **filament-machines**.

## In six lines

1. The easy way is the desktop app: Settings › Remote access › **Set up over SSH…** installs, runs, connects and
   pairs a machine, step by step, and says each line the person must run themselves.
2. By hand: the installer's one line, then `filament service install`, then a way in, then `filament pair`.
3. A `sudo` line, an administrator's PowerShell, a password and a host key are the person's to run and answer. Say
   the line; never run one with a password in it.
4. Never run `filament stop`, `restart` or `update` from inside a chat of the Filament you run in: your own turn runs
   in it, so each is refused (exit 5), or cuts your turn with `--force`. On another machine, `--wait` is fine.
5. `filament service …`, `filament update …` and `filament pair` run on the machine itself (over SSH), never with
   `--machine`.
6. `filament status`, `filament service status` and `filament update --check` only read: look before changing.

## Install

Linux (x86_64 or arm64) and a Mac with Apple silicon:

```sh
curl -fsSL https://github.com/invertibleMatrix/filament/releases/latest/download/install.sh | sh
```

Windows (x64), in PowerShell, no administrator needed:

```powershell
irm https://github.com/invertibleMatrix/filament/releases/latest/download/install.ps1 | iex
```

Each build has its feed: `latest-server.yml` (Linux x86_64), `latest-server-arm64.yml`, `latest-server-darwin-arm64.yml`
(a Mac), `latest-server-win32-x64.yml` (Windows).

- Options go before `sh` (or as `$env:` variables before the PowerShell line): `FILAMENT_VERSION=1.2.3` (a release),
  `FILAMENT_NO_ENGINE=1` (no memory engine: about 53 MB instead of about 370 MB), `FILAMENT_RELEASES_URL=…` (a
  mirror), and on Windows `FILAMENT_NO_MODIFY_PATH=1` (the user PATH left as it is).
- **Refused**: an Intel Mac, macOS older than 13.5, a 32-bit system (Raspberry Pi OS 32-bit), musl (Alpine), glibc
  older than 2.28, Windows on ARM (use the desktop app there), Windows older than 10 1803 or Server 2019, and a
  machine missing `curl`/`wget`, `tar`, `gzip`, `sha512sum`/`openssl`, `base64`, `od`, `mktemp`, `readlink` or `ln`. A
  glibc older than the build's (2.35) installs, but terminals do not open.
- **Where it goes**: Linux and Mac `~/.local/share/filament/<version>/` with a `current` link and the command
  `~/.local/bin/filament` (it prints the PATH line if that folder is not on PATH; zsh gets `~/.zprofile`; a file or
  link of the person's already there is left alone, and the installer names `current/bin/filament` to run instead).
  Windows `%LOCALAPPDATA%\filament\<version>`, a `current` junction, `current\bin` on the user PATH. Two versions are
  kept; a failed install is undone.
- **Data folder**: Linux and Mac `~/.config/filament` (or `$XDG_CONFIG_HOME/filament`), Windows `%APPDATA%\Filament`;
  `--data-dir` or `FILAMENT_DATA_DIR` names another. A Mac's desktop app uses the same folder and port, so only one
  of the two runs at a time.
- It listens on `127.0.0.1:20300`.

## Keep it running: `filament service`

`filament service [status | install | uninstall | logs]` (`status` with none; `install --port <n>`, `uninstall
--force`, `status --json`). Once installed, `filament start`, `stop` and `restart` go through it.

- **Linux**: a systemd user unit, `~/.config/systemd/user/filament.service`, restarted 3 s after a crash. At boot only
  with lingering on: install says `loginctl enable-linger <user>` (or with sudo). No `systemctl` (WSL without
  systemd, a container): run `filament start` under tmux, screen or a restart policy; on WSL add `[boot]
  systemd=true` to `/etc/wsl.conf` and `wsl --shutdown`. `logs` follows `journalctl --user -u filament`.
- **Windows host**: Task Scheduler's `\Filament\Filament`, at boot with no one logged in, as the person without their
  password (no network shares, no Credential Manager). Installing and removing it take an administrator (a PowerShell
  run as administrator, or SSH as one). Log: `<data folder>\service\server.log`.
- **Mac**: launchd's LaunchAgent `~/Library/LaunchAgents/com.filamentdev.server.plist`, started as the person logs
  in. At boot with no one logged in: install prints one `sudo` line that installs its LaunchDaemon (`service status
  --json` gives it as `bootLine`; uninstall prints the line that removes it). start, stop and restart need no sudo.
  Logs: `<data folder>/service/server.log` and `runner.log`.
- **A Mac as a server**: a Mac that sleeps runs nothing (System Settings › Energy, or `sudo pmset -a sleep 0`); with
  FileVault on it runs nothing after a restart until its disk is unlocked at the Mac (`sudo fdesetup authrestart` for
  a planned one); macOS's prompts for `~/Documents`, `~/Desktop` and `~/Downloads` have no one to answer, so keep
  projects elsewhere or give Filament's Node Full Disk Access; Claude Code's sign-in sits in the login keychain, locked
  until someone logs in at the Mac.
- If Filament does not answer within a minute of install, the service is stopped and its last log lines printed.
- `stop`, `restart` and `service uninstall` are refused (exit 5) while a turn, a compaction, a sub-agent or a coding
  agent's task runs; `--force` cuts them. A Filament started by hand has nothing to restart it.

## Reach it and pair it

- Programs on the server need the owner key: a script sends the contents of `owner.key` in the data folder (made anew
  at each start) as the `x-filament-owner` header; the `filament` command line sends it itself.
  `server.loopbackTrust legacy` lets every program and account on the server in, and `filament doctor` warns; with no
  app running there, `filament settings set server.loopbackTrust token` sets it back. See **filament-machines**.
- **Tailscale** (no firewall rule): `filament settings set server.tailscale.serve true` with HTTPS on in the tailnet;
  on Linux, as a user other than root, first `sudo tailscale set --operator=$USER`.
  `server.tailscale.trustOwnLogin true` lets the person's own tailnet logins in unpaired.
- **The network**: `filament settings set server.lan.enabled true` (https on 20343, artifacts on 20344), then the
  firewall: `sudo ufw allow 20343:20344/tcp`; on Windows, as administrator, `New-NetFirewallRule -DisplayName Filament
  -Direction Inbound -Protocol TCP -LocalPort 20343-20344 -Action Allow`; on a Mac, whose firewall admits programs,
  `socketfilterfw --add` and `--unblockapp` on Filament's own `node` (again after each update). A cloud VM also needs
  its security group open.
- **An SSH tunnel**: `ssh -N -L 20400:127.0.0.1:20300 you@server`, then `filament connect http://127.0.0.1:20400
  <code>` with a code from `filament pair` there, or open the link `filament open --no-open` prints there.
- **Pair**: `filament pair [--view] [--json]` on the server: a code for 5 minutes and one claim, and its links. On the
  laptop: open a link, paste it in the app's **Add a machine…**, or `filament connect <link>`. The app's **Add a
  machine…** also takes `ssh://host`: its **Pair** runs `filament pair` over SSH and claims the code. Where the
  Filament app runs on the server, it makes its codes in its own window, and `ssh://` adds the server with no device.
- **The laptop's agents there**: once paired as Full, the server's card in the app's Settings › Remote access ›
  Machines: **Agents**, then as needed **Without asking**, **Coding agents** and **Full control** (acts as the person,
  only on a server they own). With no mode sent, a chat there runs in the server's `agentLoop.permissions`.
- Under **Full control** a command of theirs can read and change the server's keys and owner key and, with no app on
  the server, pair a device of its own that outlasts Full control; so can a command **Without asking** lets run
  unasked.

## Set up over SSH, from the desktop app

Settings › Remote access › **Set up over SSH…**: each step is skipped where it is done already, and a machine set
up says *Nothing to do*. Buttons: **Retry**, **Run in a terminal**.

1. **Reach it over SSH**: a host key not known yet opens a terminal to accept it; a changed one is refused (check it,
   then `ssh-keygen -R <host>`). A password prompt offers **Run in a terminal** to add this computer's key (a Windows
   host gets its own PowerShell line); no key here: `ssh-keygen -t ed25519`. The probe refuses what the installers
   refuse, and a Windows host whose SSH shell is Git, MSYS2 or Cygwin sh with no PowerShell.
2. **Install Filament**: this app's version (or the newest release where that one has no build for the machine). An
   older version installed is left alone, for **Update Filament**.
3. **Run it as a service**: `filament service install`; on Linux it tries lingering itself, else shows `sudo loginctl
   enable-linger $USER`; on a Mac it shows the LaunchDaemon's `sudo` line until it is in.
4. **Its coding agents and memory**: connects each coding agent installed there that is not off, and turns memory on.
   Sign-ins stay that machine's: **Sign in there…** on its card.
5. **A way in over https**: Tailscale's serve where Tailscale runs (and the operator line on Linux), else the network
   listener, with the firewall line on every run while that firewall is on.
6. **Pair this window with it**: by the tailnet, else the network (its certificate pinned), else an SSH tunnel. One
   paired through its SSH tunnel stays so: remove it from the window first for a setup to try its https ways again.

## Update and roll back

- `filament update [--check | --version <v> | --back] [--force | --wait] [--json]` on the machine: the newest release
  of the kind installed for its build, checked by SHA-512, unpacked beside the running one; `current` moves to it and
  the service restarts it once no turn runs (exit 5 while one does: the update is in, and the next restart takes it;
  `--wait` waits, `--force` cuts). The version before is kept; `--back` returns to it; `--version` picks any.
- A release that does not come up within a minute is left: `current` points back and the version before starts
  again (exit 1). A release built on a newer glibc than the machine's changes nothing.
- Where no Filament answers, a stopped one runs the new version at its next start; one its service cannot say of, or
  that runs and does not answer, is not restarted (exit 1; `--force` restarts it).
- A version that cannot read a file another saved (teams, agents, a Space, usage) sets it aside whole under a name
  with its version (`teams.json.v3.<when>`) and starts that store empty; the version that saved it takes it back.
  `filament update` names those files before it restarts.
- Refused: a git checkout (`git pull`, then `filament restart`), the desktop app (it updates itself), a build not in
  the installer's layout.
- **From the desk**: the machines menu's `Update Filament on <name> to <version>…`, or **Update all machines…**: the
  machine runs `filament update --wait` itself. One on 0.9.85 or older is updated over SSH.
- Running the installer again also installs a version, but restarts nothing: `filament restart` after.

## Remove it

- Linux and Mac: `filament service uninstall`, `rm -rf ~/.local/share/filament`, `rm -f ~/.local/bin/filament`; to
  forget its chats, keys and settings too, `rm -rf ~/.config/filament` (on a Mac, the desktop app's data as well).
- Windows (administrator): `filament service uninstall`, `Remove-Item -Recurse -Force "$env:LOCALAPPDATA\filament"`,
  to forget everything `"$env:APPDATA\Filament"` too, and take `current\bin` off the user PATH.
- Deleting data is the person's call alone: say the line, let them run it.

## When something goes wrong

- **The installer refuses**: its words name why (see Install); a 64-bit glibc distribution or a newer OS is the fix.
- **`filament` not found**: run the PATH line the installer printed, or open a new shell.
- **systemd's user manager does not answer**: WSL or a container (see Keep it running).
- **Does not start at boot**: lingering (Linux), the LaunchDaemon line (Mac).
- **The scheduled task "takes an administrator"**: an elevated PowerShell, or SSH as an administrator.
- **The laptop cannot reach it**: `filament settings get server.lan.enabled`, the firewall and security group, and
  the address `filament pair` prints. WSL behind NAT: `networkingMode=mirrored`, or the tailnet.
- **The host name is refused**: add it to `server.allowedHosts` (`filament settings set` on the server; where a
  desktop app runs, its person presses for it).
- **`filament chat` dropped or silent**: the turn goes on there; `filament chat --chat <id> <message>` continues.
- **Codex's sign-in hangs over SSH**: `filament agents sign-in codex --way chatgpt-code`.
- **Update said "unit starts another than current"**: `filament service install` again.
- **A script on the server gets 403**: it must send the owner key; the `filament` command line does.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.