Skip to main content
Glama
FinTether
by finogeeks
README.md
**English** · [简体中文](README.zh-Hans.md) · [繁體中文](README.zh-Hant.md)

# FinTether: a remote control for your AI agent

**Your agent runs in the cloud. Your files, repos and command-line tools are on your computer. FinTether connects the two, and never opens a port on your home or office network.**

Think of FinTether as a remote control for your AI agent. Through it, the agent can use the tools and run commands on one of your computers, and those can be virtually anything. You decide which tools and commands it may use and which actions wait for your OK, every action is written down, and you can add FinShield on that computer to protect it.

| What you can let the agent do | What happens |
|---|---|
| **Read files** (`fs_read`) in the one folder you shared | Runs right away, if your policy allows reads |
| **Run a command you declared** (for example `pytest` or `make build`) | Runs right away if you marked it a harmless read; otherwise waits for your approval |
| **Write files** (`fs_write`) in the one folder you allowed | Always waits for you to click **Approve** in your browser |
| Other tools and commands on that computer | You can add them as declared commands, so the agent can use them under the same approval rules |

Every action is recorded in a tamper-evident log on both the gateway and the device.

**Example.** A cloud coding agent fixes a bug, but the integration tests only run on your office workstation. It calls your declared `run_tests` command through FinTether, the agent passes you the approval link, you click **Approve**, and the test output goes back to the agent. The agent never got a shell, and nothing else on the workstation was reachable.

[![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
[![Works with FinShield](https://img.shields.io/badge/works%20with-FinShield-0a7)](https://finaios.ai/en/products/finshield/)

https://github.com/user-attachments/assets/bb398df7-f7fa-46fa-a0a5-3e933f0a02b6

*Watch the 47-second overview* — narrated motion graphic, drawn in code and SVG (not generated images, and not a recording of customer or user data). If the player does not load, [download the MP4](docs/media/fintether-explainer.mp4) ([English captions](docs/media/fintether-explainer.srt)).

**Next:** [understand the pieces](#how-it-works) · [see the first successful task](docs/first-task.md) · [set it up](#get-started)

## Who holds the remote?

The agent does, and you decide what is on it. That is the opposite direction from phone "remote control" features such as [Claude Code Remote Control](https://code.claude.com/docs/en/remote-control), where **you** use your phone to steer one vendor's agent session that runs on your computer. If all you need is to keep an eye on that session from your phone, those features are simpler: no gateway, domain or certificate.

FinTether is for the case where the agent runs somewhere else (a cloud agent, a server, another laptop) and needs to reach into **your** machine for a few specific things. It works with any agent that speaks MCP over HTTPS, whatever model it uses, through a gateway you host yourself.

## Why not just SSH, a VPN, or a tunnel?

Those connect machines. FinTether limits what an agent may do once they are connected.

| | SSH key for the agent | VPN or tunnel + your own MCP server | FinTether |
|---|---|---|---|
| What the agent can reach | A full shell as that user | Whatever your server exposes | Only the tools you listed, inside the folders you chose |
| Asks you before a write | No | Only if you build it | Always, with an **Approve** click in the browser |
| Access per agent, per device, revocable | Per key | Only if you build it | OAuth grant per agent and device; revoke on the owner page |
| Record of every call | Shell history, if kept | Only if you build it | Hash-chained audit logs on gateway and device |
| Inbound port on the device's network | Usually, or a VPN | Depends on the tool | None: the device dials out |

## How it works

You're away from your desk, but the work you need is on a computer at home or in the office: the repo you never pushed, the export still on disk, the command-line tool that only runs locally. FinTether lets you send an agent, running in the cloud or on another computer, to that machine to carry on the work there with its files and tools. It works only when that computer is online, paired with you, and the action is allowed.

There are three pieces, and you run all of them yourself:

| Piece | What it is | Where it runs |
|---|---|---|
| **Gateway** (`fintether-gateway`) | Your own small server. Agents talk to it, you sign in to it, and devices connect out to it. | A Linux server or cloud VM with a domain name and an HTTPS certificate |
| **Device daemon** (`fintetherd`) | A background program on the computer that has the files and tools. It dials **out** to your gateway, so nothing needs to be opened on that computer's network. | The Mac (Apple silicon) or Linux x86_64 computer you want the agent to reach. See [platforms](#v011-at-a-glance) for Windows. |
| **Your agent** | Any AI agent that speaks [MCP](https://modelcontextprotocol.io/) over HTTPS: Cursor, Codex, your own harness. FinTether does not include a chat app or a model. | Anywhere: the cloud, your laptop, another server |

And one person: **you, the owner**. You set one password on your gateway, pair each device, decide which agent may use which tools, and click **Approve** before anything is written on a device.

![FinTether architecture: agents and operators call the gateway; the enrolled device dials out; policy, approval, and allowlisted tools run on-device; optional FinShield execution guard; audit logs are local on gateway and device.](docs/architecture.png)

How a request travels: the agent calls your gateway's MCP address → the gateway checks the agent's permission and forwards the request over the connection the device opened → `fintetherd` checks your local policy, runs the allowed tool inside the folders you chose (optionally inside FinShield), and sends only the result back. Reads you allowed run straight away. Writes wait for your click in the browser. Both the gateway and the device keep their own tamper-evident audit log on disk.

## What you need before you start

- **A Linux server with a domain name and a TLS certificate** for the gateway (a small cloud VM and a free Let's Encrypt certificate are enough). This is the biggest setup step; there is no hosted gateway in the open-source edition.
- **The device:** a Mac with Apple silicon or a Linux x86_64 computer, which has to be online while the agent works. If it is asleep or `fintetherd connect` is not running, that tool call fails right away; there is no offline queue.
- **Your own agent and model.** FinTether does not ship a chat UI or a model.
- **A plan for the limits.** Folders, policy, approvals and FinShield are how you keep the agent's reach small. Connecting two machines does not by itself protect anything.

## Get started

### The five steps, at a glance

1. **Gateway:** put `fintether-gateway` on a server that has a domain name and a TLS certificate. → [gateway-setup](docs/gateway-setup.md)
2. **Owner:** open the gateway's one-time setup page and choose your owner password. → [gateway-setup § Create the owner](docs/gateway-setup.md#5-create-the-owner-account)
3. **Device:** on your Mac or Linux computer, run `fintetherd pair`, type the gateway address and the pairing code from your owner page, then keep `fintetherd connect` running with the folders you want to share. → [fintetherd](docs/fintetherd.md)
4. **Agent:** register your agent with the gateway once, then sign in from the agent and choose which tools it may use. → [connect-an-agent](docs/connect-an-agent.md)
5. **Work:** the agent reads files you allowed, and asks you before it writes. → [pairing-and-approvals](docs/pairing-and-approvals.md)

Install from the release tag, not from `main`, and read each script before you run it:

```sh
# Device (Mac with Apple silicon, or Linux x86_64)
curl -fsSLO https://raw.githubusercontent.com/finogeeks/fintether/v0.1.2/install.sh
env FINTETHER_VERSION=0.1.2 sh install.sh

# Gateway (Linux server, as root)
curl -fsSLO https://raw.githubusercontent.com/finogeeks/fintether/v0.1.2/install-gateway.sh
sudo FINTETHER_VERSION=0.1.2 sh install-gateway.sh
```

- **Operator (recommended):** the release installers above and the [agent setup overview](docs/agent-setup.md). No Rust needed.
- **Guided walkthrough:** [getting started](docs/getting-started.md).
- **Contributor / embedder:** [developer guide](docs/developer-guide.md) · [build from source](docs/build-from-source.md).

### Setup

| I want to… | Go to |
|---|---|
| **Pass setup to my agent** (no Rust; gateway + device on two machines) | [Agent setup overview](docs/agent-setup.md) — skills on [gateway](skills/fintether-gateway-setup/SKILL.md) · [device](skills/fintetherd-setup/SKILL.md) (on tag **`v0.1.2`**; pin that tag for binaries and installers) |
| Understand the words (owner origin, TLS certificate, pairing, PKCE…) | [Concepts and glossary](docs/concepts.md) |
| See the whole journey before I start | [Getting started](docs/getting-started.md) |
| Read one fixture file on my device | [First successful task](docs/first-task.md) |
| Optional same-machine trial (Linux x64 binaries only) | [Getting started → Try it locally](docs/getting-started.md#try-it-on-one-computer-first) |
| Put a real gateway on a cloud server, with a TLS certificate | [Set up the gateway](docs/gateway-setup.md) |
| Install the gateway on Linux (root) | [gateway-setup → automated install](docs/gateway-setup.md#automated-install-recommended) |
| Optional Standard gateway in Docker (build from this repo; not the primary install) | [packaging/gateway/README.md](packaging/gateway/README.md) |
| Install and run `fintetherd` on my device, and know every option | [fintetherd guide](docs/fintetherd.md) |
| Let a device connect to my gateway, and approve what agents do | [Pairing and approvals](docs/pairing-and-approvals.md) |

### Agents

| I want to… | Go to |
|---|---|
| Point Cursor, Codex or my own agent at the gateway | [Connect an agent](docs/connect-an-agent.md) |

### Hardening

| I want to… | Go to |
|---|---|
| Add FinShield on the device | [Use FinShield with fintetherd](docs/finshield.md) |

### Maintain and develop

| I want to… | Go to |
|---|---|
| Update fintetherd or the gateway | [Updating](docs/updating.md) |
| Compile from source (**developers only** — not for agents) | [Build from source (advanced)](docs/build-from-source.md) |

## Security at a glance

| Control | What happens |
|---|---|
| Encryption | Agents, browsers and devices all reach the gateway over HTTPS/TLS. The device also remembers ("pins") your gateway's identity when it pairs. |
| Device joins only with your code | A one-time pairing code from your owner page, valid 15 minutes, plus a yes/no confirmation on the device |
| Agent access | OAuth 2.1 with PKCE. Each agent gets only the tools you type in on the consent page, for one device. Revoke any time. |
| Writes | Always wait for your **Approve** click in the browser |
| On the device | Your `policy.json`, the folders you passed, optional FinShield |
| Records | Hash-chained audit logs on the gateway and on the device; check them with `fintether-cli audit-verify` |

Details: [security checklist](docs/gateway-setup.md#security-checklist), [SECURITY.md](SECURITY.md).

## Recommended: run with FinShield

[FinShield](https://finaios.ai/en/products/finshield/) sets limits on what AI tools can do on your computer: which files, programs and network connections they may use. It is free to download, optional, and highly recommended.

FinTether lets the agent use the tools and commands on your computer. FinShield contains *how* those tools run, with operating-system-level confinement. When you turn on the FinShield backend and FinShield is missing or broken, `fintetherd` refuses to run tools instead of running them unguarded.

| | Built-in backend (default) | With FinShield |
|---|---|---|
| How tools run | Limited to the folders you chose; writes need your approval. Not a hardened sandbox. | Each tool run is wrapped by FinShield's OS confinement |
| If the guard is missing | Not applicable | Fails closed: the tool does not run |
| Install | Nothing extra | Install FinShield, then add `--execution-backend finsafe` to `fintetherd connect` |

Step by step: [docs/finshield.md](docs/finshield.md).

## Release status and platforms

FinTether is pre-1.0. **v0.1.2** is the latest published release on the [Releases page](https://github.com/finogeeks/fintether/releases), with `SHA256SUMS`. Downloads are **unsigned**, so macOS shows a Gatekeeper warning the first time (the [fintetherd guide](docs/fintetherd.md#macos-allow-an-unsigned-download) shows how to allow it). Use the tagged installers and the agent skills above, not a Rust compile, for first-time setup.

### v0.1.2 at a glance

| | Supported now | Not yet / known limits |
|---|---|---|
| **Device** | macOS (Apple silicon), Linux x86_64 | Windows x64: the `fintetherd` binary ships as a release zip, but guided `pair` / `connect` is not supported yet, so use a Mac or Linux device for first-time setup. No Linux arm64 device, no Intel Mac. |
| **Gateway** | Linux x64 and arm64 release tarballs | No macOS gateway binary |
| **Connectivity** | Live session while `fintetherd connect` runs | No offline tool-call queue if the device sleeps |
| **Trust** | [Releases](https://github.com/finogeeks/fintether/releases) ship `SHA256SUMS` | Unsigned binaries (macOS Gatekeeper on first run) |

## For operators and developers

### What is open source here?

| Layer | What it is |
|---|---|
| **This repository (Apache-2.0)** | `fintether-gateway`, `fintetherd`, MCP/OAuth operator surfaces, built-in execution backend, hash-chained audit |
| **Optional add-on ([FinShield](docs/finshield.md))** | OS-level confinement for tool runs; separate product and license |
| **Reference / ecosystem** | [FinClaw harness](docs/agent-harnesses.md) — not required to self-host |
| **Commercial** | [FinTether Enterprise](docs/editions.md) |

### What you run vs. what's in the repo

Self-hosting needs **two programs from this repository** (release binaries or install scripts). The other top-level `fintether-*` crates are libraries and developer tools.

| You install / run | Built from | Ignore for first-time setup |
|---|---|---|
| **`fintether-gateway`** | `fintether-server` crate (`src/bin/fintether-gateway.rs`) | Protocol, audit, and test crates (see [developer guide](docs/developer-guide.md)) |
| **`fintetherd`** | `fintetherd` crate (uses `fintether-agent`, `fintether-runtime`, …) | `fintether-cli` (audit verify and dev ops), `fintether-testkit` / `fintether-integration` (tests) |
| **Your MCP agent** | Not in this repo | `fintether-agent` is for embedders, not the chat agent you use daily |

### Trust and session flows

Device **pairing** and the ongoing **outbound WebSocket** are separate from **agent OAuth 2.1 + PKCE**. See the [sequence diagram in Concepts](docs/concepts.md#two-trust-paths).

## Reference

| Doc | Contents |
|---|---|
| [http-api.md](docs/http-api.md) | Every HTTP and MCP route and how it is authorized |
| [developer-guide.md](docs/developer-guide.md) | Crates, protocol, `tools.toml`, embedding, test harness |
| [agent-harnesses.md](docs/agent-harnesses.md) | FinClaw reference harness and legacy token mode |
| [workspace-execution.md](docs/workspace-execution.md) · [environment-preparation.md](docs/environment-preparation.md) | Managed workspaces and runtimes over MCP |
| [production-deployment.md](docs/production-deployment.md) | Audit files, policy reload, release artifacts |
| [Product and demand research](docs/research/README.md) | Dated user research, evidence and proposed priorities |

## Editions

This repository is **FinTether**, open source under Apache-2.0. **FinTether Enterprise** is the commercial edition. See [editions.md](docs/editions.md) and [finaios.ai](https://finaios.ai/en/products/fintether/enterprise/).

## License

FinTether is licensed under the [Apache License, Version 2.0](LICENSE). Third-party components are listed in [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md); attribution is in [NOTICE](NOTICE).

**FinShield** and **FinClaw** are separate products with their own terms; install scripts only fetch pinned binaries you choose to install.

---

FinTether is part of [FinAI OS](https://finaios.ai/) by Finogeeks.