Docs

Reference

Every command and option of the node, the client and the agent tools.

Basics

Run every command from the folder of the Tangent Systems code, after npm install. Node.js 22 or newer. The code is on GitHub.

--coordinator is where the network lives. Use https://tangentsystems.net. The client and agent tools also read it from TANGENT_COORDINATOR.

Add --help to any of the three to see its options.

node

node bin/node.js --coordinator https://tangentsystems.net --host <address> [options]
node bin/node.js setup

setup gets the Docker images that rented computers use.

--coordinator <url>
Where the network lives. Required.
--host <address>
Public host name or IP that others reach this node at.
--data <dir>
Data folder for keys, backups and off grid payments. Default ~/.tangent/node.
--bind <address>
Address to listen on. Default 0.0.0.0.
--relay-port <n>
Private internet port. Default 9101; 0 picks a free one.
--api-port <n>
Port for rented computers. Default 9102.
--offgrid-port <n>
Off grid peer port. Default 9103.
--peer <host:port>
Off grid peer to link with. Repeat for more.
--udp-port <n>
Also find peers on the local network over UDP on this port.
--exit
Be an exit: open connections to the open web.
--gateway
Put off grid payments on chain. Needs HELIUS_API_KEY or --rpc-url.
--rpc-url <url>
Solana RPC for the gateway.
--cluster <name>
mainnet (default) or devnet.
--compute
Rent out sealed computers. Needs Docker.
--compute-dev
For development without Docker. These machines are not sealed.
--no-egress
Rented computers get no network at all.
--mcp
Agent tools at /mcp on the port for rented computers, for this machine only, paid from the node's wallet.
--payout <address>
Your own registered Privacy Rings wallet for payouts. Default: a payout wallet the node makes.
--region <name>
Rough region shown on the map, for example eu-west.
--price-mb <lamports>
Price per MB carried. Default 10000.
--free-mb <n>
MB a path may carry before your node asks to be paid. Default 1.
--price-tx <lamports>
Price per off grid payment. Default 0; tips pay carriers.
--price-second <lamports>
Price per second of a small computer. Default 1000; medium is twice that, large four times.
--tor-control <host:port>
Also publish the relay as a Tor onion service. Password from TOR_CONTROL_PASSWORD.
--coordinator-id <id>
Pin the network identity instead of reading it on start.
--dev-allow-private
For development: allow private and loopback addresses.

client

node bin/client.js <command> --coordinator https://tangentsystems.net [options]

Every command also takes --data <dir> (default ~/.tangent/client) and --coordinator-id <id>. Answers are printed as JSON.

wallet
Your wallet address. Made on first use.
deposit
Where to send SOL through Privacy Rings for this wallet.
balance
Wallet balance and the credit left on each throwaway account. current marks the account each node is paid from now.
credit
Buy credit: one throwaway account per node that has none. --nodes <ids> comma separated (default every live node), --tokens <n> per account (default 1). --top-up also adds --tokens to nodes that already have an account, on a fresh throwaway account; with --same-account on the account the node already has.
withdraw
Send wallet balance out through Privacy Rings and wait until it has left. --to <address>, --lamports <n>, --public for a plain public address, --timeout-sec <n> (default 120). --id <withdrawal id> follows an earlier one.
proxy
Private internet: a local SOCKS5 proxy over three hops. --socks-port <n> (default 1080), --hops <n> (default 3), --tokens <n> per node and per top up (default 1), --top-up-limit <lamports>, --same-account.
rent
Rent a computer, run commands, stop it, print the bill. --node <id>, --image <name>, --size <small|medium|large>, --cmd "<command>" (repeat), --hold-seconds <n>, --tokens <n>, --top-up-limit <lamports>.
recover-wallet
Get back the wallet key of a computer you rented. --node <id> and --machine <id>. Saved to <data>/recovered/.
offgrid-send
Send a payment without internet and wait for its receipt. --peer <host:port>, --keypair <file>, --nonce-account <address>, --nonce-value <hash>, --to <address>, --lamports <n>, --tip <lamports>, --tip-account <address>, --timeout-sec <n> (default 120).
mcp
Agent tools on stdio. --node <id> to pick a node, --http <port> to serve them on 127.0.0.1 instead, --tokens <n>, --top-up-limit <lamports>.

Automatic top up: proxy, rent and mcp buy more credit by themselves when a node's account runs low. --top-up-limit is the most they spend that way in any 24 hours, across every run with the same data folder (default 10000000, which is 0.01 SOL; 0 turns it off).

mcp

node bin/mcp.js --coordinator https://tangentsystems.net [--node <id>] [--data <dir>]

The same as client.js mcp, for agent settings files. The tools are listed in Agents.

Environment

TANGENT_COORDINATOR
Client and agent tools: used when --coordinator is left out.
HELIUS_API_KEY
Node: Solana RPC for --gateway and for registering its own payout wallet.
TOR_CONTROL_PASSWORD
Node: password of the Tor control port.
DOCKER_HOST
Node: the Docker to use for --compute.