{"article":{"title":"Sharing local models","breadcrumb":["Guides","Sharing local models"],"body":"**What this covers**: you run models on your own machine with a tool like Ollama or LM Studio, and want to call them through Tare, use them yourself, or list them on the [Token Market](token-market).\n\nEvery call runs on your machine, yours and buyers' alike. Tare handles routing and billing.\n\n### Before you start\n\n- **The model server and the node run on the same machine.** Any local server with an OpenAI-compatible API works. These are found automatically:\n\n| Tool | Default address | What to do |\n|---|---|---|\n| Ollama | `http://127.0.0.1:11434/v1` | Running once installed; every model you `ollama pull` is listed |\n| LM Studio | `http://127.0.0.1:1234/v1` | Start the local server on LM Studio's Developer page |\n| vLLM | `http://127.0.0.1:8000/v1` | Start it in OpenAI-compatible mode (`vllm serve`) |\n| llama.cpp | `http://127.0.0.1:8080/v1` | Run `llama-server` |\n\n- **The machine stays on.** While the node or the model server is not running, these models are skipped. Linux suits this best; a node on a Mac runs only while someone is logged in.\n\n### 1. Install the node\n\nSkip this if it is already installed. It needs node version 0.4.33 or later; installed nodes update themselves. Signing in with a code during install needs 0.4.34, which the install script downloads.\n\n```bash\n# Linux (needs root)\nsudo bash <(curl -fsSL https://www.jamerly.ai/tare-local-node/install.sh)\n\n# macOS (no sudo)\nbash <(curl -fsSL https://www.jamerly.ai/tare-local-node/install.sh)\n```\n\nRun 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. When it finishes it offers to start sharing; press Enter to go straight to step 3 below. Installation details are in [Local Nodes](local-nodes).\n\n### 2. Run share\n\n```bash\n# Linux\nsudo tare-local-node share\n\n# macOS\ntare-local-node share\n```\n\nThe terminal shows a code and a link. Open the link on any device where you are signed in to jamerly.ai (a phone works), check that the code on the page matches the one in the terminal, and click **Approve**. This works on a server with no browser. The sign-in lasts for this run only.\n\n### 3. Choose the models to share\n\nAfter sign-in, **Models on this machine or your LAN** lists the servers found and their models:\n\n```\nModels on this machine or your LAN\n  Ollama  http://127.0.0.1:11434/v1\n›   [x] qwen3:32b  use + sell  $0.2 / $0.8 /M · 2M per day\n    [x] llama4  use myself\n  LM Studio  http://127.0.0.1:1234/v1\n    [ ] gemma-4-27b\n  vLLM  http://127.0.0.1:8000/v1  (not running)\n  [+] Add a local or LAN address\n```\n\n| Key | Does |\n|---|---|\n| ↑ ↓ | Move |\n| Space | Cycle off → use myself → use + sell |\n| Enter | Edit: model name to call, prices, amount for sale |\n| s | Apply |\n| d | On a server's line: remove that whole channel |\n| r | Reload |\n| q | Quit |\n\n- **Model name to call** defaults to the local model name. Press Enter to use another one, such as `my-qwen`.\n- **To sell**, set the input and output price per million tokens, and how many tokens to sell per period (every 5 hours, per day, per 7 days, per 30 days, or never resets; empty means unlimited). A single machine has limited capacity, so set a limit and keep some for yourself.\n- Your first listing asks you to set up a seller profile: a name and a page address. The page address can't be changed later.\n- If the port is not the default, or the tool is not in the table above, choose **Add a local or LAN address** and enter its OpenAI-compatible address, for example `http://127.0.0.1:9000/v1`.\n- If the model runs on another machine in your network (a GPU box, say), choose **Add a local or LAN address** too and enter that machine's address, for example `http://192.168.1.20:11434/v1`. If the server requires an API key, enter it in the third field; it is written to this machine's keys.json only and never uploaded. This node makes the calls, so this machine must be able to reach that address. Ollama listens on 127.0.0.1 only by default: start it with `OLLAMA_HOST=0.0.0.0` on that machine.\n\n### 4. Apply\n\nPress `s`. Each step is shown as it runs:\n\n```\n✓ Create channel Ollama\n✓ Write the key\n✓ Add route qwen3:32b → qwen3:32b\n✓ List qwen3:32b  submitted: the node runs a channel evaluation, then it goes live\n✓ Add route llama4 → llama4\n✓ Test qwen3:32b  Hello!\n✓ Test llama4  Hi there.\n```\n\nEach local server becomes one channel held by this node. The test calls go through this node; a reply from the model means it is connected.\n\nAfter you submit, Tare runs a [channel evaluation](channels) on the channel. It runs on your machine and uses your own compute. If no check fails, the listing goes live. The next time you run share, each model shows its listing state: in review, live, or not approved with the reason. The full evaluation report is in Console → **Market** → **Selling**.\n\n### 5. Use it\n\nThe model name works everywhere:\n\n```bash\ncurl https://tare.jamerly.ai/v1/chat/completions \\\n  -H \"Authorization: Bearer $TARE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\": \"qwen3:32b\", \"messages\": [{\"role\": \"user\", \"content\": \"hello\"}]}'\n```\n\nCalls to `https://tare.jamerly.ai/v1` are handed to your node through the tunnel. On this machine you can also call the local node at `http://127.0.0.1:8090/v1`. For coding tools, see [Coding tools](coding-tools).\n\n### Changing prices, taking models off, checking state\n\nRun `tare-local-node share` again:\n\n- **Change a price or the amount for sale**: press Enter on the model, edit, then `s`. A lower price applies at once; a higher price after 7 days.\n- **Stop sharing a model**: press Space until it is **off**, then `s`. Its route is deleted and its listing delisted.\n- **Remove a whole server**: press `d` on its line, confirm, then `s`.\n- Applying the same choices again creates nothing new.\n\n### Common situations\n\n| You see | What to do |\n|---|---|\n| `(not running)` | Nothing is listening on that port: check the model server is on; in LM Studio, start the server on the Developer page |\n| `(no model server found)` | Another program uses that port: use **Add a local or LAN address** with the model server's real address |\n| A test fails with HTTP 503 | The node has just read the new setup: wait a few seconds, press `r`, then `s` again; if it still fails, check the node log (commands in [Local Nodes](local-nodes)) |\n| It asks for sudo | On Linux the node's configuration is in `/etc/tare-local-node`: run `sudo tare-local-node share` |\n| It says this node is not in the account | Sign in with the account that installed this node |\n\nRelated: [Local Nodes](local-nodes), [Token Market](token-market), [Sharing a subscription](subscription-supply).\n"}}