# How do I set up a team server?

> Pick hardware, pick a serving runtime, put authentication and a proxy in front, then give colleagues a friendly front end. Monitor it and keep it updated.

A team server is one machine, one serving runtime, a proxy with passwords in front, and a web chat for people who never open a terminal. Each layer is a separate program, so you can swap any of them later.

- **Web chat**: Open WebUI, or any OpenAI-compatible client
- **Reverse proxy**: Caddy or nginx, with HTTPS
- **Serving runtime**: vLLM, SGLang or llama-server
- **Hardware**: One GPU workstation or unified-memory box

## Hardware

Buy for the model first, then for the number of people. The model sets the memory floor. The headcount sets how much spare memory you need for each person's context, as [What changes when many people use one model?](https://localagi.co/one-user-to-many) explains.

For a small team on a mid-class model, a single pro GPU is the usual answer. It has the memory for a large model plus many contexts, and it runs the serving runtimes that batch well.

**Tier 5: Pro GPU workstation** ($9,000 to $40,000+). 70B in VRAM on one 96 GB card. About 150B at Q4. V4-Flash native on two Pro 6000s (192 GB). Pro 6000: 70B about 34 tok/s single-stream, about 8,400 tok/s aggregate on a 30B (vLLM).

A 128 GB unified-memory box from [Are the big unified-memory boxes worth it?](https://localagi.co/unified-memory-boxes) is the cheaper route for a large MoE model and a handful of users. It batches less well than a discrete GPU, so treat it as a server for a few people, not thirty. [What should I buy?](https://localagi.co/buying-guide) has the full decision.

**The catch.** 
Consumer GPUs work for a team of two or three, but a 24 to 32 GB card runs out of room for contexts fast. Plan memory for everyone's KV cache, not just the weights.

## Runtime

Pick a runtime with continuous batching. On NVIDIA that means [vLLM or SGLang](https://localagi.co/vllm-and-sglang). On a Mac or AMD box, llama-server with several slots is the practical choice. [Which runtime should I use?](https://localagi.co/choosing-a-runtime) covers the trade-offs.

```bash
vllm serve Qwen/Qwen3-30B-A3B \
  --api-key "$VLLM_API_KEY" \
  --max-model-len 32768 \
  --gpu-memory-utilization 0.90
```

This starts an OpenAI-compatible server on port 8000 that rejects requests without the key. `--max-model-len` caps each request's context so more requests fit. `--gpu-memory-utilization` is the share of GPU memory vLLM takes for weights and cache.

Ollama is fine for a household. For a team it batches less and gives you fewer controls, so we would not run an office on it.

If the office has several Macs or mixed machines instead of one big GPU, Superfluid from Base Compute serves one endpoint from all of them. Each machine holds a full copy of the model, and the server is pre-1.0. [Which tools run a model across machines?](https://localagi.co/cluster-tools) covers the setup and its catches.

## Authentication and a reverse proxy

Never expose a runtime port to the network on its own. Most runtimes ship with no authentication, and anyone who can reach the port can use your GPU. [Is local AI actually private?](https://localagi.co/privacy-and-security) covers why this matters.

Bind the runtime to `localhost` or block its port at the firewall, then put a reverse proxy in front that handles HTTPS. Caddy is the shortest path, because it fetches and renews certificates itself.

```text
ai.example.com {
    reverse_proxy localhost:3000
}
```

That Caddyfile sends all traffic for the name to the web chat on port 3000. On a private network with no public name, use your internal certificate authority or `tls internal`, and colleagues accept the certificate once.

Give each person or service their own API key, so you can revoke one without changing everyone's. The runtime's single `--api-key` cannot do that. Open WebUI or a gateway such as LiteLLM can.

## A front end for colleagues

Open WebUI is the common choice. It gives people a chat window, accounts, shared prompts and document upload, and it talks to any OpenAI-compatible server.

```bash
docker run -d -p 127.0.0.1:3000:8080 \
  -e OPENAI_API_BASE_URL=http://host.docker.internal:8000/v1 \
  -e OPENAI_API_KEY="$VLLM_API_KEY" \
  -v open-webui:/app/backend/data \
  --name open-webui ghcr.io/open-webui/open-webui:main
```

The first account you create becomes the admin. Turn off open sign-ups in the admin settings, then create accounts for colleagues or connect your company login. [Which chat app should I use?](https://localagi.co/chat-apps) lists other front ends if this one does not suit.

Developers will want the API directly. Point their tools at the proxy with their own key, as in [How do I share one model with my household or office?](https://localagi.co/sharing-a-model) and [How do I call a local model from code?](https://localagi.co/local-api).

## Monitoring

Watch three things: tokens served, queue depth and memory. Tokens tell you how busy it is, queue depth tells you when people are waiting, and memory tells you when the next long context will fail.

vLLM and llama-server both expose Prometheus metrics. vLLM serves them at `/metrics` by default. llama-server needs the `--metrics` flag.

| Metric to watch | What it tells you |
| --- | --- |
| Requests running and waiting | Waiting above zero for long stretches means you need more capacity |
| KV cache use | Near full means new requests will queue or be cut short |
| Generation tokens total | Your real usage, which feeds the sums in [When is local cheaper than an API?](https://localagi.co/economics) |
| Time to first token | What people complain about first |

Scrape them with Prometheus and graph them in Grafana. On NVIDIA, `nvidia-smi` shows memory and power at a glance.

**Rule of thumb.** 
If the queue is ever non-empty during normal working hours, the server is too small for the team. If KV cache use never passes half, it is too big for the model.

## Keeping it updated

Serving runtimes ship often, and new models need new versions. Pin the exact version you run, in a container tag or a lockfile, so an update is a choice and not an accident.

Update on a schedule. Test the new version on a second port with the same model, run a few real prompts, then swap. Keep the old container image so you can roll back in a minute.

Models need the same care. When you change the default model, tell people. Answers will change, and some prompts that worked will stop working.

**Try it.** 
With the server running, check the key works and the model is listed.

```bash
curl -H "Authorization: Bearer $VLLM_API_KEY" http://localhost:8000/v1/models
```

## Go deeper

### One model or several

Each loaded model holds its weights in memory all the time. A team server is usually better off with one good model than three mediocre ones. If people need a small fast model for autocomplete as well, run it as a second process and give each its own memory budget.

vLLM takes a fixed share of GPU memory at start-up. Two vLLM processes on one card need their `--gpu-memory-utilization` values to add up to less than one.

### Logs and privacy

The proxy and the web chat both log by default. Open WebUI keeps every conversation in its database. Decide who can read those, and say so to the team before they paste anything sensitive.

### Rate limits

One person running an agent in a loop can fill the queue for everyone. Per-key rate limits in a gateway stop that. Without one, the cheapest fix is a separate small server for automated jobs.
