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:
bnw share models # models served here, and whether they're sharedbnw share model gemma3:4b --access contacts # publish, connect, answer automatically, offerbnw share model gemma3:4b --access anyone --max-per-hour 10 # sharing again updates itbnw catalog list --model gemma3:4b # others' capabilities of the same modelbnw share model gemma3:4b --join <CAPABILITY_ID> # provide one of them instead of publishing- What sharing does. It publishes the model as an
inference.modelcapability and connects it to the runtime’s OpenAI-compatible chat endpoint (egresslocal). 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 withoutcompletion, such as embedding models, are skipped. - Only local endpoints. One-step sharing accepts only an
httpchat endpoint on this computer’s loopback interface; pass--urlfor 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 aninference.modelcapability 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.
