One endpoint,
every model.
Tare is an OpenAI-compatible gateway in front of every model you use — ours and the ones you bring yourself. One base URL, one key, and every token accounted for.
Local Nodes
What this solves: Tell a customer Local Node apart from the Tare server path. Requests do not land on one shared node.
A call has two execution paths. Accounting lands in one ledger. The request itself does not merge onto one node.
Your own Local Node
A Local Node is a process that runs in your own network. It serves only your own BYOK channels. The channel has to be marked LOCAL_NODE. Checking the Channels box that routes through a Local Node writes allowLocalEgress: true at the same time. You do not file a separate approval.
Business code connects directly, by default at http://127.0.0.1:8090/v1. The request and the response stay between your network and the upstream. They do not pass through Tare. Tare keeps one gRPC long connection: it pushes candidate channels, the price list, data-protection rules, and account status, takes usage back, and pushes the computed fee back.
If the node is down, that direct call fails. Tare's servers do not send it for you.
There is one more case. A call that reaches Tare's address on a channel marked LOCAL_NODE goes through the tunnel to your node; if no node of yours is online at that moment, Tare calls the upstream itself. The request succeeds, but it leaves from our address instead of yours — which matters when the upstream accepts only your own egress address. Watch the heartbeat in the console and keep the node supervised. Channels whose key lives only on the node (including subscription channels) have no such fallback: while no node is online the channel is skipped and the route moves to the next one.
For Tare to hand calls to your node, the node must run 0.4.11 or later; older versions count as offline for this.
You can register more than one. Which machine the business hits is the address you put in the client. Tare does not split requests that hit the server across these nodes.
The node fails over through the candidates it was pushed, and within a tier picks a channel by session and weight, the same as the server. It calls each upstream in the Dialect configured on the channel (OpenAI, Responses, Anthropic, Gemini, Azure OpenAI and Bedrock all work). Images and video can be sent to the node directly too (0.4.11 and later); image responses carry b64_json only, without a hosted url. Failures the node reports have no floor fee. Call Traces do not keep the request body or the model's answer.
If the upstream accepts only your own egress address, use this path.
Through the Tare server
Platform channels, and BYOK channels whose egress is still direct, enter Tare. The server connects to the upstream.
If you do not want to run your own, use the official node Tare operates: https://tare-node.jamerly.ai (set the OpenAI SDK base_url to https://tare-node.jamerly.ai/v1). Send your own Tare API key. Nothing to install, and no registration token. It is not in your network, so it cannot satisfy "this traffic must leave from my own network." Channels marked LOCAL_NODE still leave from your own node.
A few things to know before you use it
- Only your own BYOK channels can enter a customer node. Platform channels are not pushed to it.
- Checking the box that routes through a Local Node writes
allowLocalEgress: trueat the same time. You do not file a separate request. If the channel view still showsallowLocalEgress: false, that channel is not handed to the node, and the call still goes direct from the server. - Each node listens on its own address. You choose which address the business calls. Calls that hit Tare are not spread across these nodes.
- Changes you make in the console reach connected nodes within seconds: adding or modifying channels and routes, a channel being disabled or restored, balance running out, data protection rule changes. A node that has been disconnected does a full refresh when it reconnects.
- The registration token and the node's own credential cannot be retrieved again after they are first shown; if you lose them, you can only regenerate a token and register again.
Setup steps
There is no Docker image to pull here: the image is not in a public registry. The only path that actually works is the binary. Linux (amd64 / arm64) and macOS (Apple Silicon / Intel) both have packages.
1. Install it
On the machine that will run it:
# Linux (needs root)
sudo bash <(curl -fsSL https://www.jamerly.ai/tare-local-node/install.sh)
# macOS (do not use sudo)
bash <(curl -fsSL https://www.jamerly.ai/tare-local-node/install.sh)
Three things about this command:
- Linux needs root. The script checks permissions before it downloads anything, so without
sudoit stops there. - Write it as
bash <(curl ...). Withcurl ... | bashthe script itself holds standard input, and the questions then read the script's own next line. - For an unattended run, pass
--token "<token>" --key "<API key>". The script also accepts-tand-k.
On a Mac, do not use sudo: with it $HOME becomes /var/root, so the binary and the LaunchAgents entry land in root's home, and your own login never loads the service.
To read it before it touches anything, save the script first: curl -fsSL https://www.jamerly.ai/tare-local-node/install.sh -o tare-node-install.sh. The script still downloads the binary from s.jamerly.ai, so saving it does not let you install without a network.
The script picks the package for this machine and installs the binary. Run in a terminal, it shows a code and a link: open the link on any device where you are signed in to jamerly.ai, check the code, and approve, and the script creates the registration token and an Inference key (named after the host) for you, with no trip to the console. With --token and --key it uses those instead. When it is done it offers to share this machine's models right away; see Sharing local models. It then leaves the node running as a supervised service — systemd on Linux, launchd on macOS. systemd starts it at boot; launchd starts it when you log in. Both restart it after a crash. A Mac that reboots stays offline until someone logs in, and while it is offline Tare calls the upstream itself. It installs to /usr/local/bin/tare-local-node on Linux, or ~/.local/bin/tare-local-node on macOS, and it ends by probing http://127.0.0.1:8090/v1/models: if that endpoint answers, the node is up. Registration has to confirm too: if the credential never lands, the installer prints ❌ and exits non-zero, and the node never appears in the console.
By hand instead, unpack the matching file:
| Machine | Package |
|---|---|
| Linux, amd64 | tare-local-node-linux-amd64.tar.gz |
| Linux, arm64 | tare-local-node-linux-arm64.tar.gz |
| Mac, Apple Silicon | tare-local-node-darwin-arm64.tar.gz |
| Mac, Intel | tare-local-node-darwin-amd64.tar.gz |
Two examples; take the package name for your own machine from the table above.
# Linux, amd64
curl -fLO https://s.jamerly.ai/tare-local-node/stable/tare-local-node-linux-amd64.tar.gz
tar xzf tare-local-node-linux-amd64.tar.gz
# Mac, Apple Silicon
curl -fLO https://s.jamerly.ai/tare-local-node/stable/tare-local-node-darwin-arm64.tar.gz
tar xzf tare-local-node-darwin-arm64.tar.gz
On a Mac, a binary that arrived through a browser, a chat app or mail carries a quarantine flag, and macOS will not run it until you clear it: xattr -d com.apple.quarantine ./tare-local-node. chmod +x does not clear it. Files fetched with curl are not flagged.
2. Generate a registration token
Console → Local Nodes → Generate registration token. Like a key, it is shown only once, so copy it immediately. It is single-use and valid for 24 hours. After it is used, you can still see which node it registered as.
3. Start the node
Start it with this token and any inference key under the account (Console → API Keys):
TARE_CONTROL_BASE_URL=https://tare.jamerly.ai \
TARE_TUNNEL_ADDR=tare-grpc.jamerly.ai:443 \
TARE_REGISTRATION_TOKEN=<the token from step 2> \
TARE_API_KEY=<your own inference key> \
./tare-local-node
These are the ones you set yourself. TARE_TUNNEL_TLS and TARE_NODE_AUTH_MODE are explained further down, so this is not the full list.
| Variable | Default | What it sets |
|---|---|---|
TARE_CONTROL_BASE_URL | https://tare.jamerly.ai | Control plane address. Do not add /api |
TARE_TUNNEL_ADDR | tare-grpc.jamerly.ai:443 | Tunnel address. The node turns TLS on by itself |
TARE_REGISTRATION_TOKEN | — | The one-time token from step 2 |
TARE_API_KEY | — | One inference key under your account |
TARE_NODE_LISTEN | 127.0.0.1:8090 | Where the node listens |
TARE_NODE_CREDENTIALS_PATH | /etc/tare-local-node/credentials.json on Linux, ~/.config/tare-local-node/credentials.json on macOS | Where the long-lived credential is written |
TARE_NODE_HELD_KEYS | keys.json next to the credentials file | Keys kept only on the node (subscription channels, and channels with Keep the API key only on my node) |
Do not put /api on TARE_CONTROL_BASE_URL. The tunnel uses a public hostname, and the node turns TLS on by itself (TARE_TUNNEL_TLS=auto).
On success it writes a long-lived credential to /etc/tare-local-node/credentials.json on Linux, or ~/.config/tare-local-node/credentials.json on macOS, and completes registration. Seeing it in the console is the sign that this step worked: Online, with Tunnel connected. For a few seconds after a disconnect the two disagree. After that, restarts no longer need the token: it reads this file, and the token has been consumed anyway.
The key reaches the disk in the clear, in three places: node.env, the launchd plist on macOS, and the credential file.
The installer sets all three to 600: node.env (/etc/tare-local-node/node.env on Linux, ~/.config/tare-local-node/node.env on macOS), the plist (~/Library/LaunchAgents/com.jamerly.tare-local-node.plist), and the credential file (/etc/tare-local-node/credentials.json on Linux, ~/.config/tare-local-node/credentials.json on macOS). Until registration finishes, the first two also hold the one-time registration token. Keep all three out of any cloud-synced folder and out of version control.
4. Hand the channel to your node
Console → Channels → edit one of your own BYOK channels → check Route through a local node.
After you check it, this channel leaves from your node: a call aimed at the node address reaches it there, and one that arrives at Tare's address travels through the tunnel to it. A channel you did not hand over stays on the server path and never enters this node.
Also check Keep the API key only on my node and the channel's key stays on your node; Tare does not store it. The key goes where it does for subscription channels: in keys.json on the node, keyed by channel id (/etc/tare-local-node/keys.json on Linux, ~/.config/tare-local-node/keys.json on macOS). If the account has several nodes, add the entry on each. Only your nodes can run such a channel: when none of them is online, a call that arrives at Tare's address skips this channel instead of being sent from Tare.
5. Point the business at the node
Point the client's base URL at http://127.0.0.1:8090/v1 on that machine. The model name is the same as when you call Tare. The node speaks the request shapes of the OpenAI, Anthropic, Google GenAI, Azure OpenAI and Bedrock SDKs, so those clients work against it unchanged: /v1/chat/completions, /v1/responses, /v1/messages, /v1/completions, /v1/embeddings, /v1/images, /v1/videos/generations and /v1/models are all served (images and video need 0.4.11 or later).
Calls need one of your own Tare API keys (Authorization: Bearer). By default the node checks that key with Tare and caches the answer for 60 seconds (TARE_NODE_AUTH_MODE=resolve).
TARE_NODE_LISTEN can change the listen address, but anything that can connect to this port can spend money from your account, so treat it as the key itself.
Export one of your own inference keys first; the examples below read it as $TARE_API_KEY: export TARE_API_KEY=<your own inference key>.
curl http://127.0.0.1:8090/v1/chat/completions \
-H "Authorization: Bearer $TARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "GLM 5.1",
"messages": [{"role": "user", "content": "hello"}]
}'
The node sends a heartbeat every 20 seconds to prove it is alive, and every 8 minutes it uses the inference key you gave it to refresh the list of channels handed to it for direct calls. That key is used only for this, and is never used to make model calls on your behalf.
Node to node (P2P)
Nodes also connect to each other directly. Subscription channels use this: the channel runs on the node that holds it, and another node (yours, or a buyer's) hands it the call.
- At start the node opens UDP port 8091 and reports its addresses to Tare: the machine's own addresses, and its public address as seen by a STUN server. It then connects to every node it may need and keeps those connections open, so a call does not wait for a handshake.
- Tare only introduces the two nodes. Each side accepts only the certificate Tare named, and requests and responses go directly between them.
- Two nodes in the same network use the internal address.
- When the nodes cannot connect (for example both behind strict NAT), calls go through Tare as before.
| Variable | Default |
|---|---|
TARE_PEER | on; off turns P2P off |
TARE_PEER_LISTEN | 0.0.0.0:8091 (UDP) |
TARE_PEER_STUN | stun.cloudflare.com:3478,stun.l.google.com:19302; off to skip |
TARE_PEER_PUBLIC_ADDR | empty; set ip:port if you forward a public UDP port to the node |
On the Local Nodes page, a node that is reachable this way shows P2P; hover it for the addresses.
Keeping the node running
The installer leaves a supervised service behind. These are the commands for each one:
# systemd (Linux)
systemctl status tare-local-node
journalctl -u tare-local-node -f
systemctl restart tare-local-node
# launchd (macOS)
launchctl list com.jamerly.tare-local-node
launchctl unload ~/Library/LaunchAgents/com.jamerly.tare-local-node.plist
launchctl load ~/Library/LaunchAgents/com.jamerly.tare-local-node.plist
tail -f ~/Library/Logs/tare-local-node/stderr.log
To ask the node directly whether it is answering, still using the $TARE_API_KEY you exported above:
curl -s http://127.0.0.1:8090/v1/models -H "Authorization: Bearer $TARE_API_KEY"
Automatic updates
The node upgrades itself to new releases; you don't need to rerun the install command.
- It checks every 30 minutes. A new version is downloaded and verified first, and the node restarts into it only once no request is in progress and it has been quiet for 15 seconds.
- The restart takes a second or two. Requests sent during it wait in line instead of being refused.
- It only installs versions signed by Jamerly, and it only moves to newer versions.
- If a new version keeps failing to start, the node goes back to the previous one and does not try that version again.
- On the Local Nodes page, hover over a node's Agent version to see the result of its last check.
To restart only during certain hours, or to turn automatic updates off, add a line to node.env (Linux) and restart the service:
TARE_UPDATE_WINDOW=02:00-05:00 # restart only between 2:00 and 5:00 local time; may cross midnight, e.g. 22:00-04:00
TARE_AUTO_UPDATE=off # no automatic updates
On macOS, add the same variables to EnvironmentVariables in the plist, then launchctl unload and load it once.
If you run the node in your own container with the binary baked into the image, recreating the container brings back the image's version, which then upgrades itself again. To pin a version, set TARE_AUTO_UPDATE=off and upgrade by changing the image.
How this differs from the server path
The model name, the shape of requests and responses, streaming (the node asks the upstream for usage in the final frame), and the X-Generation-Id response header are the same on both sides. Call Traces have token counts and cost on both. The body differs. See the table.
| Through the Tare server | Your own Local Node | |
|---|---|---|
| Does the request pass through Tare | Yes | No. Tare has only the control connection |
| Channels involved | Platform channels, and BYOK direct | Only BYOK marked LOCAL_NODE, in the order they were pushed |
| Weight | Split by session and weight within a tier | Same |
| Upstream API format | The server translates | The node translates, per the channel's Dialect |
Images /v1/images | Supported, with a hosted url valid for 24 hours | Supported (0.4.11 and later), b64_json only |
| Failover | Yes, before the first byte returns | Yes, with the same failure classification. Results are reported back and count toward channel health |
| Floor fee on failure | Real attempts on the server path count toward the governance fee minimum | Failures reported by the node have no floor fee |
| Data protection | Scanned on Tare | Scanned by the scan service beside the node (see below) |
| Request/response bodies in Call Traces | Per the retention switch | Not kept. The content never reached Tare |
| Balance and quota | Checked on every call | Judged from the most recent state pushed to the node. The authoritative billing result is pushed back afterward and corrects the node's local estimate |
When the model has no LOCAL_NODE channel, the node returns 404. When the account is blocked, it returns 403.
The node is up, but it cannot reach Tare
When the node process is still up and the control connection is down, direct calls keep working on the last push: candidates, prices, rules, and account status.
Usage is stored on the node first and sent out once the connection comes back (the most recent 10,000 records are kept). Only then does it show up in Call Traces and on the bill.
That is separate from the node process being down. If the process is down, a call to this address fails. Calls on the Tare server path are not affected by this customer node.
Data protection on the node
When DLP is on for your account, direct calls are scanned by the scan service that sits beside the node (TARE_DLP_SIDECAR_URL, default http://127.0.0.1:8098), using the account-level settings from the Security page (the account switch, your per-type selections, and the recommended rules).
Per-key settings never apply here, because direct requests carry no key. What reaches the upstream is redacted text; a block returns 403 with the entity type, the same as on Tare.
When rules are in effect but the scan service cannot be reached, the node rejects the call (503) rather than forwarding it unscanned. If DLP is off for the account, no scan service is needed.
The scan service is a separate package, Linux/amd64 only, with its own runtime:
curl -fLO https://s.jamerly.ai/tare-local-node/stable/tare-dlp-sidecar-linux-amd64.tar.gz
tar xzf tare-dlp-sidecar-linux-amd64.tar.gz
./tare-dlp-sidecar/bin/tare-dlp-sidecar
There is no macOS build of the scan service. A Mac node therefore cannot serve direct calls while data protection is on for the account: it answers 503 instead of forwarding text it could not scan. If you need both, run the node on Linux.
It listens on 127.0.0.1:8098, which is the address the node looks for by default; to change it, change TARE_DLP_SIDECAR_PORT on the scan service and TARE_DLP_SIDECAR_URL on the node together. Put it on the same machine as the node.
Person / place / organization name recognition (NER)
The three categories of person names, place names, and organization names use a local language model, downloaded from s.jamerly.ai the first time it is needed (about 180 MB; TARE_DLP_NER_BASE_URL can point to your own mirror), and it takes a few minutes to load.
While it loads, requests are still scanned for the other types and still forwarded as usual; these three categories start being detected only once the model is ready.
When these three categories are on, give it a 2 GB heap (TARE_DLP_SIDECAR_HEAP=2g); when off, nothing is downloaded.
What you can see in the console
- Registration tokens: every one ever issued, with status (unused / used / expired), and after it is used you can see which node it became. Once issued, only a short fingerprint is shown; the token itself is never shown again.
- Nodes: each registered node's status (online / offline / registering / revoked), node program version, and last heartbeat time. There is also a separate "tunnel connected" indicator, which reflects whether this connection is actually alive right now. The status turns offline only after the tunnel has been down for 3 minutes, and then shows when it went down, so for the first few minutes after a disconnect the two disagree. Going offline and coming back both notify you through the
NODE_OFFLINErule in Alerts. It is on by default and notifies at most once per node every 15 minutes. - Recent events: requests the node refused at the door that can't be attributed to any key (no key, a wrong key, a body that isn't valid JSON), the node program's own warnings and errors, and offline / back-online changes. The first two come up with the heartbeat, so they arrive even while the tunnel is down. Repeats of the same thing are merged into one entry with a count, the source addresses, and what the key in the request was (disabled, expired, not a Tare key). The node card shows the counts for the last 24 hours; expand Recent events for the last 7 days. Calls that can be attributed to a key, refused ones included, stay in the call log as before and are not repeated here. The key itself never leaves the node; what comes up is its fingerprint.
These endpoints accept only a console session, the same as the channels and routing pages:
| Operation | Endpoint |
|---|---|
| Generate a registration token | POST /v1/node/registration-tokens |
| List registration tokens | GET /v1/node/registration-tokens |
| List nodes | GET /v1/node/nodes |
| Revoke a node | POST /v1/node/revoke |
Revoking a node
Console → Local Nodes → Revoke.
- Takes effect immediately for new requests: a revoked node is never selected again, whether or not its process is still running.
- It does not forcibly drop connections already in progress; if the proxy process happens to still be alive, it simply stops receiving new work.
- To use this network again, generate a new token and register; a revoked identity cannot be revived.
Next steps
- To learn about channels and egress modes: read Channels.
- To point a model at this channel: read Routing.
- To see what record a call leaves behind: read Call Traces.
- To configure sensitive content scanning: read Data protection (DLP).
- If you run into a word you do not know: check the Glossary.