Docs

Run a node

Your machine joins the network, does three jobs and earns for each one.

What you need

  • A computer that stays on. A desktop, a laptop or a rented machine all work.
  • Node.js 22 or newer.
  • Docker, if you want to rent out sealed computers to AI agents.
  • An address other machines can reach: a public IP or host name, with ports 9101, 9102 and 9103 open.

One command

On an Ubuntu or Debian machine, one line installs everything, starts your node with all three jobs and keeps it running after a restart.

curl -fsSL https://tangentsystems.net/install.sh | sudo bash

It prints your node id once the node is part of the network. Run it again any time to update. Your keys are never touched.

To change what the node does, put a setting before bash:

curl -fsSL https://tangentsystems.net/install.sh | sudo TANGENT_EXIT=0 bash
TANGENT_EXIT=0
Do not be the last hop to the open web.
TANGENT_COMPUTE=0
Do not rent out sealed computers.
TANGENT_GATEWAY=0
Do not put off grid payments on chain.
TANGENT_HOST=<address>
Set your public address yourself.
TANGENT_FREE_MB=<n>
How many MB a path may carry before your node asks to be paid.
HELIUS_API_KEY=<key>
A free Helius key. With it your node registers its payout wallet with Privacy Rings by itself, so it can be paid.

The rest of this guide does the same by hand and explains each part.

Install by hand

The code is on GitHub. Get it, open its folder and install it.

git clone https://github.com/tangentsystem/tangent.git
cd tangent
npm install

If you will rent out computers, start Docker and get the machine images once. It builds the browser image and pulls the rest, so the first run takes a few minutes.

node bin/node.js setup

Start

node bin/node.js --coordinator https://tangentsystems.net --host <your public address>

--coordinator tells the node where the network lives. --host is the address other nodes and users reach you at.

Turn on the jobs you want:

node bin/node.js --coordinator https://tangentsystems.net --host <your public address> \
  --compute --exit --gateway
--compute
Rent out sealed computers to AI agents. Needs Docker.
--exit
Be the last hop, the one that opens connections to the open web.
--gateway
Put off grid payments on chain. Needs a Solana RPC: set HELIUS_API_KEY or pass --rpc-url.
--peer host:port
Link to a nearby node for off grid payments. Repeat it for more.
--region eu-west
A rough region to show on the map.

When the log shows node.ready, you are part of the network. The node.identity line holds your node id.

The three jobs

Private internet

Every node carries private traffic. Data crosses three nodes on its way out and each one sees only the step before and the step after. With --exit your node can be the last step. It earns for every megabyte it carries.

Off grid payments

Your node passes signed payments to its peers until one of them gets online. With --gateway it is the one that puts them on chain. The gateway and every node that carried a payment share its tip.

Sealed computers

With --compute, AI agents rent locked machines on your node, paid for every second. Each one runs in its own Docker container and reaches the web only through three other nodes.

That traffic is paid from your node's own wallet, shown in the egress.ready log line. Deposit to it like any wallet (see Payments); without credit, machine traffic stops after a small free amount.

Earnings and payouts

Users pay your node with signed vouchers as they go. Your node cashes the newest one for each session, so it is paid for exactly what was used. Off grid tips are claimed the moment a payment lands.

See what your node has earned, what is waiting and what was paid:

curl https://tangentsystems.net/api/nodes/<your node id>/earnings

Payouts go out in batches through Helius Privacy Rings once unpaid earnings pass 0.01 SOL.

Where they go:

  • Leave out --payout and the node makes its own payout wallet. With HELIUS_API_KEY set it registers that wallet with Privacy Rings by itself. The log line payout.fund_this_wallet shows the address and how much SOL it needs for that first.
  • Or pass --payout <address> with your own Privacy Rings wallet that is already registered.

Keep it running

  • Stop it with Ctrl+C. It finishes cleanly.
  • Start it again with the same command. It keeps its identity and keys and rejoins the network by itself.
  • Use whatever starts programs at boot on your machine, such as a systemd service, so it comes back after a restart.
  • If the network cannot be reached for a while, the node keeps the vouchers it holds and tries again every few seconds.

Keys and backups

Everything lives in one data folder: ~/.tangent/node, or the folder you pass with --data.

keys/
Your node identity, its payout wallet and the other keys.
backups/
A copy of every key, written before the key itself.
backups/machine-wallets/
Wallet keys of rented computers, encrypted.
offgrid/
Payments your node is carrying.
credit/
Credit being bought. It holds real value.

Keys are made once and never overwritten. If a saved key is damaged, the node stops rather than make a new one. Copy the whole folder somewhere safe.

Rented computer wallets: your node keeps each key, encrypted, for 30 days after the computer ends so its renter can get it back. Then it deletes that key.