Peer-to-peer access to AI models
Weft connects your application to models that other people and organizations run. You choose a provider and call the model through a local address on your Linux machine.
Install Weft
curl -fsSL https://weftai.eu/install.sh | bash
On Linux x86-64, run this as your normal user. Choose systemd or Docker Compose, then consumer to use someone’s models or provider to share your own. For Docker Compose, press Enter to use the suggested project directory or type a new path. Inspect the script or follow the manual installation steps. Already running Weft? Manage your node, use a remote model, or share your model.
A search app without a GPU
Suppose you’re building a search app on your laptop. You want to find documents by meaning, so you need an embedding model to turn text into vectors you can compare. A research group already runs that model on its server. With Weft, the group can offer access to the model, and you can use it without downloading it or getting a login on the server. The same arrangement works for chat models.
From finding a model to using it
Each side runs Weft. The copy on your laptop is the consumer node; the group’s node is the provider.
- Find an offer. The provider announces that it offers embeddings. Your node asks the peer network who provides that service, then asks those providers directly which models and APIs they offer.
- Agree on a session. You pick the group’s offer and request a lease for the time you need. The group sets the access rules and the time limit. If its backend is busy, it can decline. If it grants the lease, no other Weft session can use that backend until you release it or the lease expires.
- Call the model. Weft gives you a
localhostaddress. Point your app’s embeddings client at it and send text as usual. The group’s model processes the text and returns vectors. The text and vectors travel directly between your node and the provider; the discovery peers never handle them.
---
config:
flowchart:
nodeSpacing: 20
padding: 10
---
flowchart TB
accTitle: How the search app reaches the embedding model
accDescr: Discovery peers introduce the laptop to the research group's provider. The two Weft nodes exchange offers and lease requests directly. Once a lease is granted, text from the app and vectors from the model travel through the two nodes.
subgraph laptop["Your laptop"]
app["Search app"] <-->|localhost| consumer["Your Weft node"]
end
peers["Discovery peers"]
subgraph group["Research group"]
provider["Provider node"] <-->|Model API| model["Embedding model"]
end
consumer -. Find<br/>providers .-> peers
provider -. Announce<br/>service .-> peers
consumer -. Offers<br/>and leases .-> provider
consumer <-->|Text and<br/>vectors| provider
Dotted lines show how you find a provider and arrange access. Solid lines trace a request from the search app to the model and its response back.
Applications and backends
Match the app and backend by API: OpenAI-compatible chat completions or embeddings.
Use the session’s local address and the backend’s model name in your app.
- Open WebUI — chat with a model in your browser.
- OpenCode — explore and edit code with a model that can call tools.
- Aider — edit code with a chat model in your terminal.
- LLM — pipe a log into a model for a summary.
- Copilot for Obsidian — ask a model about your notes.
- AnythingLLM — index and search documents with embeddings.
Configure your model server as a backend, then publish a Weft offer.
- LM Studio — share a local model through its built-in API server.
- Ollama — serve chat or embedding models from its library.
- Strata — run large chat models using GPU memory and system RAM.
- llama.cpp — serve GGUF models on CPU or GPU with
llama-server. - vLLM — serve chat models on a GPU server.
- Text Embeddings Inference — serve embeddings for document search.
Why build Weft?
Weft’s vision is greater European independence in AI compute: a developer should be able to choose a university, a local hosting provider, or another team to run a model, without depending on a single cloud platform.
Our mission is to make the compute those operators already own accessible to others. Operators keep control of their hardware, the models they load, and who can use them. As a developer, you choose whom to trust with your requests: the provider you pick sees the data its model processes.