Skip to content

Sharing a model

If Ollama, LM Studio, or llama.cpp runs on your computer, the node can find its models and share one in a single step:

Terminal window
bnw share models # models served here, and whether they're shared
bnw share model gemma3:4b --access contacts # publish, connect, answer automatically, offer
bnw share model gemma3:4b --access anyone --max-per-hour 10 # sharing again updates it
bnw catalog list --model gemma3:4b # others' capabilities of the same model
bnw share model gemma3:4b --join <CAPABILITY_ID> # provide one of them instead of publishing
  • What sharing does. It publishes the model as an inference.model capability and connects it to the runtime’s OpenAI-compatible chat endpoint (egress local). It sets the autopilot to auto (or --mode ask) with 30 calls per person per hour, sets who may use it, and signs a week-long offer that renews itself. It is all the steps below, with defaults.
  • Detection. The node probes only the runtimes’ fixed loopback addresses (127.0.0.1:11434, :1234, :8080), with short timeouts and bounded replies. Ollama models that list capabilities without completion, such as embedding models, are skipped.
  • Only local endpoints. One-step sharing accepts only an http chat endpoint on this computer’s loopback interface; pass --url for a runtime on another port. Remote or paid endpoints go through the full setup below, which asks about egress and secrets.
  • In the web client. Models → Share a model on this computer does the same, with a choice of who can use it.
  • Joining instead of publishing. When another publisher’s capability already claims the same model, the node can provide that capability instead of publishing another, so requesters see one service with several providers. --join (and the web card’s default Join choice) checks that it is an inference.model capability with the same model ID (trimmed, case-insensitive) that takes text and answers with the same modalities. Joining signs nothing new but this node’s own offer; it is a local setting, and the node then provides the capability like its own: backend, audience, autopilot, grants, and offers. Requesters rank joined providers like any other, below those the publisher endorses.