Flythrough

The gateway

Lets flythrough.work use the models on your computer.

Your text goes from the page to the gateway on this machine, then to the model you run here (the claude command, or a local Ollama).

Where your text goes The flythrough.work server sends the page bundle to your browser. Your text goes from the browser to the gateway on your computer, and from there to a local model (Ollama or vLLM) or to a model command (Claude Code or Codex). A model command talks to its provider, such as Anthropic or OpenAI. Your text is never sent back to the flythrough.work server. flythrough.work the server page bundle your computer Browser the review page Gateway 127.0.0.1:7878 Local model Ollama, vLLM Model CLI Claude Code, Codex Model provider Anthropic, OpenAI Your text goes along the blue arrows only. A local model keeps it on this machine.

Install on Linux or macOS

On Linux (x86-64 or ARM64) or a Mac with Apple silicon, in a terminal:

curl -fsSL https://flythrough.work/gateway/install.sh | sh

Read the script first if you like. It is short, and it does nothing as root.

Install on Windows

On Windows 10 or 11, in PowerShell:

irm https://flythrough.work/gateway/install.ps1 | iex

Read the script first if you like. It needs no administrator rights.

This is the x86-64 build. Windows on ARM has no build of its own yet, and the installer stops there.

Install on NixOS

The release is a flake that fetches the Linux build (x86-64 or ARM64) by its hash. Add it to your system's flake:

{
  inputs.flythrough-gateway.url = "https://flythrough.work/gateway/flythrough-gateway-nix.tar.gz";
  inputs.flythrough-gateway.inputs.nixpkgs.follows = "nixpkgs";

  outputs = { nixpkgs, flythrough-gateway, ... }: {
    nixosConfigurations.my-machine = nixpkgs.lib.nixosSystem {
      modules = [
        flythrough-gateway.nixosModules.default
        { services.flythrough-gateway.enable = true; }
      ];
    };
  };
}

To try it first, without installing:

nix run https://flythrough.work/gateway/flythrough-gateway-nix.tar.gz -- serve

Check it

On any system:

flythrough-gateway status

Then open the review. It finds the gateway on its own.

Download by hand

flythrough-gateway-x86_64-linux.tar.xz flythrough-gateway-aarch64-linux.tar.xz flythrough-gateway-aarch64-macos.tar.xz flythrough-gateway-x86_64-windows.zip

Check them against SHA256SUMS: sha256sum -c SHA256SUMS on Linux, shasum -a 256 -c SHA256SUMS on macOS, Get-FileHash FILE on Windows. The program is not signed or notarized, so macOS blocks one downloaded in a browser: run xattr -d com.apple.quarantine on it first. The install script does not need that.

Remove it

On Linux:

systemctl --user disable --now flythrough-gateway
rm -r ~/.local/share/flythrough-gateway ~/.local/bin/flythrough-gateway
rm ~/.config/systemd/user/flythrough-gateway.service

On macOS:

launchctl bootout gui/$(id -u)/work.flythrough.gateway
rm -r ~/.local/share/flythrough-gateway ~/.local/bin/flythrough-gateway
rm ~/Library/LaunchAgents/work.flythrough.gateway.plist

On Windows, in PowerShell:

schtasks /Delete /TN work.flythrough.gateway /F
Remove-Item -Recurse $env:LOCALAPPDATA\Programs\flythrough-gateway

On NixOS, take the module and the input out of your flake.

Then take that folder out of your user PATH in Settings. Your history and settings are kept apart from the program (on Linux and macOS in ~/.local/state and ~/.config, on Windows in %LOCALAPPDATA%\flythrough-gateway and %APPDATA%\flythrough-gateway); delete them too if you want them gone.

Configuration and features

The gateway answers only the sites you allow, and each site only with the backends and powers you give it. Everything it does is written to a history you can read.

What it does

The file

It is read from ~/.config/flythrough-gateway/config.json (or --config FILE), and its keys are checked strictly: an unknown key is an error, not ignored. Every key but version is optional.

With no file, the gateway uses a built-in one: flythrough.work may use claude with every tool anywhere. Write a file to give it less.

A file that allows the local Ollama for flythrough.work and nothing else:

{
  "version": 1,
  "backends": [
    { "label": "ollama", "protocol": "ollama", "url": "http://127.0.0.1:11434" }
  ],
  "policies": { "open": {} },
  "scopes": { "strict": {} },
  "sites": [
    {
      "origin": "https://flythrough.work",
      "grants": [ { "backend": "ollama", "scope": "strict" } ]
    }
  ],
  "unlistedSites": "refuse",
  "locked": true
}

The commands below that change the configuration save it to this file, unless you say --run, which changes only this run.

Commands

Your history and settings are in ~/.local/state/flythrough-gateway and ~/.config/flythrough-gateway, apart from the program; on Windows in %LOCALAPPDATA%\flythrough-gateway and %APPDATA%\flythrough-gateway. The history holds your conversations in full, so do not share the file as it is.