Pooling Idle GPUs with Swago Bridge
Not every developer needs a data center. Some already have a GPU sitting idle on their desk, and a teammate who could use it.
Compute is becoming one of the most valuable resources in the AI era.
The companies with access to massive GPU clusters have a significant advantage. They can train, fine-tune, and serve models at a scale that most individual developers simply cannot afford. But I think there is another side to this story that is worth exploring.
Not every developer needs a data center. Some developers already have GPUs sitting on their desks.
A gaming laptop with an RTX 3050, an RTX 3070 desktop, or even a newer GPU might be enough to run several useful local AI workloads. With quantization and optimized inference engines, it is possible to run models that would otherwise require much more powerful hardware.
But there is still a limitation: these resources are isolated.
A developer might have a GPU that is sitting idle most of the day, while another developer on the same team struggles to run a local model because they don't have GPU hardware.
What if we could share these resources?
The idea behind GPU pooling
I am not trying to compete with large cloud providers or build a distributed GPU cluster capable of training massive models. That is a completely different problem.
Instead, I built Swago Bridge for a smaller, more practical use case: allowing a group of developers to share their GPU resources securely within a workspace.
Consider a team of three developers.
- User A owns a machine with an RTX 3070.
- User B owns a machine with an RTX 3050.
- User C doesn't have a GPU.
Today, User A and User B can run local models on their machines, but User C cannot easily access those resources.
With Swago Bridge, User A and User B can register their machines into a shared workspace. User C can then send inference requests through an API without needing a GPU on their own machine.
The GPUs remain on their respective machines. Swago Bridge connects these resources and makes them accessible through a shared API.
What is Swago Bridge?
Swago Bridge is a lightweight GPU resource-sharing layer for developers.
It lets developers register their local machines into a workspace and expose their locally running AI inference engines through a centralized API.
The coordinator acts as the entry point for API requests, while the node agents manage the communication between the coordinator and the machines hosting the models.
The architecture looks like this:
Each node is a developer's machine, which could be a desktop, laptop, or even a server.
The coordinator manages workspace membership, node availability and request routing. The node agent communicates with the local inference engine and executes the requests routed to it.
The goal is to make these resources feel like a shared inference pool rather than separate machines.
1. Workspaces: the foundation of resource sharing
Swago Bridge is designed around workspaces.
Rather than allowing every registered machine to become globally accessible, nodes belong to a workspace. This gives developers a way to organize and control which machines participate in a shared resource pool.
A developer can create a workspace and invite other machines to participate in it.
For example, a workspace could contain:
- A Windows machine running Ollama.
- A Linux machine running vLLM.
- A desktop running another OpenAI-compatible inference server.
Each node registers into the workspace using a key issued from the workspace.
This allows the coordinator to identify which workspace a node belongs to and which nodes are eligible for routing.
2. How does a node enroll?
I wanted the enrollment process to be simple enough that a developer doesn't need to configure an entire distributed infrastructure just to share their GPU.
The enrollment process follows a few steps.
Step 1: Create a workspace
The workspace creator creates a workspace in the Swago Bridge console.
Step 2: Generate a key
The workspace creator generates a key from the console. Keys can be revoked immediately if a machine should no longer participate.
Step 3: Configure the node
The developer installs the node agent on their machine and saves the key once:
swago-gpu-agent config add-authtoken <YOUR_API_KEY>
Step 4: Start the node agent
swago-gpu-agent start
The node agent connects out to the coordinator and registers itself. No inbound firewall ports are needed, which matters for laptops and home networks.
Step 5: Discover local inference engines
The node agent detects supported local inference engines and their available models.
Supported engines include Ollama, llama.cpp and vLLM, along with other compatible inference servers.
Once the node is registered and healthy, the coordinator can consider it for incoming requests.
The experience I wanted is simple: configure the key, start the agent, and let Swago Bridge handle the rest.
3. Local inference engines
I didn't want Swago Bridge to become another model inference engine.
There are already excellent projects solving that problem.
Instead, Swago Bridge works as an integration layer that connects existing inference engines to a shared workspace.
A developer could already be running a model through Ollama, llama.cpp or vLLM. The node agent connects to that running instance and exposes its capabilities to the coordinator.
This separation is important.
The inference engine is responsible for loading models, managing GPU memory, executing inference and generating tokens.
Swago Bridge is responsible for node registration, workspace management, communication, routing and making those resources accessible to other authorized members.
That means developers can continue using the inference stack they prefer without having to change how they run their models.
4. OpenAI-compatible API
One of the things I wanted to avoid was introducing another proprietary API that developers would have to learn.
The coordinator exposes an OpenAI-compatible API interface, making it easier to integrate with existing applications, SDKs and tools that support the standard API format.
For example, a developer can configure an application with the Swago Bridge endpoint instead of pointing it directly to a local inference server.
curl -X POST https://bend.theswagostack.in/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "qwen2.5:1.5b",
"messages": [
{
"role": "user",
"content": "Explain Java virtual threads"
}
],
"stream": false
}'
Set "stream": true and the response is delivered as Server-Sent Events, token by token.
The coordinator receives the request, identifies the workspace, selects an appropriate available node and forwards the request to the node hosting the requested model.
The response is then returned to the client.
From the client's perspective, it interacts with an API endpoint rather than directly communicating with another developer's machine.
This is one of the reasons I think API compatibility matters. Developers should be able to experiment with shared inference without rewriting their applications.
5. What happens when a request arrives?
At a high level, the request lifecycle looks like this:
- The client sends a request to the coordinator.
- The coordinator authenticates the API request and identifies the workspace.
- The coordinator identifies nodes that can serve the requested model.
- It selects an eligible node based on availability and routing policies.
- The node agent forwards the request to its local inference engine.
- The inference engine generates the response.
- The response is returned through the coordinator to the client.
Routing has to consider more than whether a node is online. GPU memory, model availability, active requests, queue length, latency and node health can all influence the decision. For example, a node that already has the requested model loaded in VRAM can answer immediately, while a node that has to load it first makes the user wait.
This is where the project becomes more interesting from an engineering perspective.
Finding a node is relatively straightforward. Managing a pool of heterogeneous machines and routing requests without making the system unreliable is a much harder problem.
6. What GPU pooling actually means here
I want to be clear about what I mean by GPU pooling.
Swago Bridge does not combine the physical GPU memory of multiple machines into one unified GPU or make a model that cannot fit on any individual GPU automatically fit across all of them.
That would require a different distributed inference architecture.
If three machines are running compatible models, the coordinator can distribute independent inference requests across those machines, subject to their availability and capabilities.
For example, if several developers are using the same model for different requests, those requests could be routed to different nodes.
This can improve resource utilization when the workloads are suitable and the nodes are available.
But it doesn't mean that a single inference request will automatically become faster by using multiple GPUs across multiple machines.
That distinction matters.
7. Security and trust
Sharing GPU resources between developers introduces security concerns that cannot be ignored.
A node is essentially allowing another system to send inference requests to its local model. That means the node owner should have control over what is exposed and how it is used.
Workspace membership alone should not be treated as a complete security boundary.
The areas Swago Bridge needs to address include:
- Node-specific credentials that can be revoked.
- Workspace-level authorization.
- Secure communication between nodes and the coordinator.
- No unrestricted access to the host machine through the node agent.
- Restricted access to local inference endpoints.
- Resource limits and request quotas.
- Node owners being able to stop or disconnect their nodes.
- Monitoring and visibility into requests and resource utilization.
The node agent should only expose the inference capabilities that the owner explicitly allows.
It should never become a general-purpose remote access mechanism to the host machine. This is also why the node agent is open source under the MIT License: if it runs on your machine, you should be able to read exactly what it does.
This is particularly important when nodes belong to different people rather than a single organization.
8. Where this could be useful
I think this approach could be useful in smaller developer communities, student teams, research groups and people experimenting with local AI.
Imagine a group of developers who each have different hardware.
Instead of every developer independently purchasing hardware or depending entirely on external APIs, they could share their available inference capacity for workloads that make sense.
It could also be useful for experimenting with local AI development environments, internal tools, prototyping and lightweight inference workloads.
There are still plenty of constraints around bandwidth, uptime, model compatibility and resource contention. This isn't a replacement for dedicated infrastructure when reliability or performance requirements are high.
But for experimentation and collaborative development, I think the idea is worth exploring.
9. Where Swago Bridge stands today
Swago Bridge already has the core components of this architecture in place.
The coordinator handles workspace-based node enrollment and provides an OpenAI-compatible API. Nodes can connect through the node agent, discover supported local inference engines, and expose their available models to the workspace.
The system also includes model-aware routing, request handling, streaming support and node health monitoring, allowing the coordinator to route requests to participating nodes.
Secure node communication and workspace-based access are also part of the architecture, with the aim of making resource sharing manageable without exposing the underlying machines directly.
There is still room to improve scheduling, resource utilization and the overall experience as the number of participating nodes grows. But the core idea is already working as an implementation rather than just an architectural proposal.
What interests me most now is how this approach behaves as more machines with different hardware, model configurations and availability patterns join the same workspace.
10. Current limitations
Swago Bridge is useful today, but it has real limits, and it's better to state them clearly.
- Inference capacity is pooled, not GPU memory. A model that doesn't fit on any single machine still won't run. Adding nodes lets more requests run in parallel, but it doesn't make one request faster.
- Availability depends on the owners' machines. Laptops sleep, desktops reboot and home networks drop. A pool made of personal hardware will never be as reliable as a data center.
- Every request takes an extra hop. Traffic goes client → coordinator → node → inference engine and back. That adds latency compared with calling a local model directly, which matters most for short prompts.
- The coordinator is a central point. Nodes connect to it, so if it goes down, the workspace is unreachable even when every GPU is healthy.
- Prompts pass through other people's machines. In a workspace shared between different people, the node owner's machine processes the prompt. Workspaces work best among people who trust each other, and sensitive data needs extra thought.
- Models must already be available on a node. Swago Bridge routes to what nodes have installed. It doesn't pull or manage models for you.
- Model choice is manual. The client names the model it wants, and the coordinator doesn't yet decide which model suits a given task.
- Platform coverage is still growing. The node agent has mostly been used on Windows so far, and other platforms need more real-world testing.
- Heterogeneous hardware is lightly tested. I've only had a small number of nodes with different GPUs, so behavior at larger scale is still an open question.
11. Future experiments
These are the directions I want to explore next. Some will become features, and some may turn out not to be worth it.
Smarter routing
- A router model: a fast, lightweight layer that picks the right small or medium model for each task, so simple requests don't use a bigger model than they need.
- A scoring function for node selection: combining model fit, whether the model is already loaded in VRAM, current load and recent latency, instead of simple availability.
- Routing decisions as data: logging each decision with its outcome (latency, tokens, errors) so a learned router can be trained from real traffic later.
- Cascade routing: trying a smaller model first and escalating only when the answer looks weak, and measuring whether the savings are worth the extra latency.
Reliability
- Request queuing and backpressure: what should happen when every node is busy?
- Failover during streaming: if a node disappears mid-response, can the request recover cleanly?
- Behavior under churn: how the pool performs when nodes join, leave and sleep unpredictably.
Trust and privacy
- Finer node-owner controls: allowlists for which models and which workspace members a node serves.
- Clearer trust models: separate setups for a trusted team workspace and a more open shared pool.
Measurement
- Benchmarks: time to first token, tokens per second and throughput per node, compared against a single machine running the same model.
- Scale tests: adding more nodes with different GPUs to see where scheduling starts to break down.
Longer-term research
- Splitting one model across machines: a different problem from pooling capacity, with its own network and synchronization costs. I'd treat it as a separate experiment rather than a feature.
I'd rather learn these things in the open and report what works and what doesn't than promise a roadmap.
Conclusion
Compute is becoming an important resource in AI development, and access to it isn't equal.
While large organizations will continue to operate massive GPU infrastructure, there is also an opportunity to make smaller, distributed resources more useful.
Many developers already own capable GPUs. Those resources are often isolated, and I think there is an interesting opportunity to connect them in a practical and secure way.
Swago Bridge is my implementation of that idea. It's live, and I'm learning from it as more machines join.
Not by building another cloud provider, but by making locally available GPU resources easier to share among developers.
The idea is simple. The engineering challenges are not. And that's exactly what makes it interesting to build.