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.
Sharing a subscription
What this covers: taking a monthly coding subscription from start to finish. Run a node on your own machine, connect the subscription as a channel, use it yourself, then list it on the Token Market.
The subscription key stays on your node; Tare never stores it. Every call runs on that node, yours and buyers' alike.
Which subscriptions work
The endpoint list for a new subscription channel offers:
| Endpoint | Address |
|---|---|
| GLM Coding Plan (bigmodel.cn) | https://open.bigmodel.cn/api/coding/paas/v4 |
| GLM Coding Plan (z.ai) | https://api.z.ai/api/coding/paas/v4 |
| Kimi For Coding | https://api.kimi.com/coding/v1 |
| MiniMax Coding Plan | https://api.minimaxi.com/v1 |
| Local address on the node | An OpenAI-compatible service you run on that machine, for example http://127.0.0.1:8317/v1 |
A subscription that is not in the list works too if it is called with a key over an OpenAI-compatible API: pick Custom and enter the address.
1. Run a node on a machine that stays on
A subscription channel runs only on the node that holds it, and it is skipped while that node is offline. Pick a machine that stays powered on and online. Linux suits this best; a node on a Mac runs only while someone is logged in.
# Linux (needs root)
sudo bash <(curl -fsSL https://www.jamerly.ai/tare-local-node/install.sh)
# macOS (no sudo)
bash <(curl -fsSL https://www.jamerly.ai/tare-local-node/install.sh)
Run in a terminal, the script 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; the registration token and the Inference key are created for you. For an unattended install, pass --token "<registration token>" --key "<API key>" as before; the token comes from Console → Local Nodes → Generate registration token.
Once installed, the node appears on the Local Nodes page as Online and Tunnel connected. It needs node version 0.4.9 or later; re-run the install command to upgrade an older one.
If you will sell to others, open UDP 8091 on this machine. Buyers' nodes then connect straight to yours instead of going round through Tare. When they cannot connect, calls go through Tare as usual. Installation details and the other variables are in Local Nodes.
Do it all from the node: tare-local-node share
On the machine from step 1, run:
# Linux
sudo tare-local-node share
# macOS
tare-local-node share
It shows a code and a link. Open the link on any device where you are signed in to jamerly.ai, check that the code matches the one in the terminal, and approve. The command then lists what this machine can share:
- OpenAI-compatible servers running on it (Ollama, vLLM, LM Studio, llama.cpp) and their models. Add a local or LAN address adds another one, including a server on another machine in your network.
- Coding subscriptions. Add a subscription: pick the endpoint and type the key. The key is written to this node's
keys.jsonand nowhere else.
For each model, choose use myself or use + sell. To sell, set the input and output price and how many tokens to sell per period. Press s to apply: it creates the channel, writes the key, adds the routes, creates the listing and submits it for review, then makes a test call through this node. Run it again later to change a price, take a model off, or remove a whole channel (d). It needs node version 0.4.33 or later.
For models on this machine (Ollama, LM Studio and so on), see Sharing local models.
The steps below do the same by hand in the console.
2. Create the subscription channel
- Console → Channels → Add channel, then switch to Self-hosted at the top.
- Under Node, pick the node from step 1. With no node installed yet, pick New machine…; the command in step 3 installs the node as well.
- In the list to the left of Base URL, pick your subscription; the address fills in. Give it a recognizable Name.
- Save.
There is no key field on this form. After saving, the bottom of the dialog shows the command to run on the node's machine; click Copy. With New machine…, the command carries a one-time registration token that is shown only this once and is valid for 24 hours. If it expires, open the channel again, pick New machine… under Node again and save.
3. Put the subscription key on the node
On the node's machine, run the command copied in step 2. It looks like this (123 is the channel id):
# Linux
sudo bash <(curl -fsSL https://www.jamerly.ai/tare/share.sh) --channel 123
# macOS (no sudo)
bash <(curl -fsSL https://www.jamerly.ai/tare/share.sh) --channel 123
The script asks for the subscription key on the machine itself and writes it to the node's keys.json. It then has you pick a model routed to this channel, makes one test call through the local node and reports what happened on this channel: success, the key was rejected by the provider, the key has not been picked up yet, or another channel served the model. With no node on the machine it runs the installer first (add --token <registration token>); a node older than 0.4.9 is upgraded first. --remove deletes the channel's key.
To do it by hand instead, create keys.json on that node and add the key under the channel id:
| System | File |
|---|---|
| Linux | /etc/tare-local-node/keys.json |
| macOS | ~/.config/tare-local-node/keys.json |
# Linux example, channel id 123
sudo tee /etc/tare-local-node/keys.json >/dev/null <<'EOF'
{"123": "<your subscription key>"}
EOF
sudo chmod 600 /etc/tare-local-node/keys.json
- One entry per subscription channel on the node.
- Takes effect within 10 seconds, with no restart. Re-running the install command to upgrade leaves the file alone.
- If the endpoint is Local address on the node and the local service does not check keys, the entry is still required; any non-empty value works.
4. Use it yourself first
Give the subscription a route: Console → Routing → Add route.
| Field | Value |
|---|---|
| Model | The name you will call it by, for example my-glm |
| Channel | The subscription channel from step 2 |
| Upstream name | The model name from the subscription provider's docs |
Tare cannot list the upstream models of a subscription channel because it does not hold the key, so type Upstream name in by hand.
Try a call on the node's machine:
curl http://127.0.0.1:8090/v1/chat/completions \
-H "Authorization: Bearer $TARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "my-glm", "messages": [{"role": "user", "content": "hello"}]}'
A 200 means it is connected. On a 503, check the node log: a missing key shows up as WARNING: channel 123 skipped, naming the channel id and the file to add it to. The log commands are under "Keeping the node running" in Local Nodes.
From then on the model name works everywhere: against this node, against another of your nodes (nodes connect directly), against https://tare.jamerly.ai/v1 (Tare hands the call to this node over the tunnel), and in coding tools as described in Coding tools.
5. List it on the market
Before your first sale, set up a seller profile: Console → Market → Selling, fill in a name, profile address and bio, and click Start selling. The profile address cannot be changed afterwards.
Then create the listing:
- New listing: pick this subscription channel, and enter the Upstream name from step 4 as the upstream model.
- Enter input and output prices per million tokens. Cache read and write prices are optional.
- Set Tokens for sale to Limited. Subscriptions have their own usage caps (many reset every 5 hours or every week), so keep the amount sold per period under that cap and leave room for your own use. Periods are every 5 hours, daily, every 7 days, every 30 days or never reset, and Quota changes it at any time.
- Submit for review. Tare runs a channel evaluation on this channel. The evaluation runs on your node and uses the subscription's own allowance. The listing goes live if no check fails.
The listing shows on the price page /market and on your seller profile, with its source marked as running on the seller's machine. Buyers' prompts and replies pass through your node.
6. After it is listed
- Earnings: you receive the full listing price for each call. It is held for 7 days, then credited to your wallet as "Market earning". Market → Earnings shows held and settled amounts and has monthly CSV statements.
- Keep the node online: while the node is offline the listing is skipped, and the buyer's call goes to the other candidates in their route.
- Usage reconciliation: both nodes report token counts for these calls and Tare reconciles them. When a report does not match the content actually sent and received, Tare's own count is billed, and repeated mismatches pause the listing.
- Price changes: decreases apply immediately; increases apply after 7 days.
- Delisting: after Delist the listing takes no new traffic, and recorded earnings settle as usual. When the subscription ends or you stop selling, delist first, then remove the entry from
keys.json.
Related: Token Market, Local Nodes, Routing.