Jan as a Desktop Client for AI Models on Your Home Server
Before you start
- 15 min read
- Updated December 2026
Boxes marked Run in terminal are what you type; plain text explains why. Check what you need first

What you get in one minute#
We use Jan as the chat window on our desktop while Ollama or llama.cpp on our home server runs the model.

Logo: the official Jan project (github.com/janhq/jan)
For the basic install, see our Jan in 2026: Private Offline ChatGPT With a Local API (Linux, Windows, Mac) guide. It teaches installation and models running inside Jan. Here Jan calls a different computer. We do not start Jan's Local API Server.
At a glance#
- Outcome: a home-server provider in Jan, an exact model ID, and a connection check.
- Time: allow 30–60 minutes after the server works; our estimate excludes downloads.
- Difficulty: easy provider settings, moderate networking.
- Resources measured: none. Server memory matters more than the laptop's GPU.
| Component | Stable version checked 6 December 2026 |
|---|---|
| Jan desktop | 0.8.8, released 28 October 2026 |
| Ollama | 0.40.21, released 4 December 2026; ollama/ollama:0.40.21 |
| Existing alternative server | llama.cpp 1.1.1, released 4 December 2026 |
| HTTPS helper | Caddy 2.11.9 |
| API | /v1/models and /v1/chat/completions |
| Official docs | Jan custom endpoints |
Jan 0.8.8 fixes security issues and documents a remote-model limitation: set Max Context Tokens because Jan does not detect the remote context window automatically. Its bundled llama.cpp update affects local inference; it does not update a separate server.
How it fits together#
Jan sends our prompt to the selected provider over the home network, the server loads the model, and Jan displays the answer.
“Remote” means another computer, even beside us. This can be private self-hosting, but prompts leave the laptop. Whoever administers the server can inspect processing and logs there.
Before you start#
We need working Jan and an existing inference endpoint. For the basic server install, see our Ollama guide. Keep its existing model storage.
| Jan computer | Requirements here |
|---|---|
| Linux | Supported Jan installation, Terminal, access to the private server |
| Windows | Supported Jan installation, PowerShell; use curl.exe |
| Mac | Supported Jan installation, Terminal, access to the private server |
Use the twin for installer, CPU, RAM and disk requirements. We have not measured remote-client RAM. Server memory must cover weights, runtime and context; this workflow has no client GPU requirement. Check docker --version and docker compose version on a server already using Docker. Native servers do not need Docker.
- [ ] We know the server's private address and have backed up its configuration and Jan's data.
- [ ] We identified the existing listener before changing ports.
- [ ] Firewall rules restrict server access to trusted clients; no raw API port forwarding.
- [ ] Public-certificate HTTPS only: a domain, DNS and proxy access on TCP 80/443.
- [ ] Home-only HTTPS: local name resolution and trust for Caddy's root certificate.
All example.com names, change-me values and angle-bracket placeholders below are dummy details to replace. Tested by DIY Lab Hub: not yet. Tested on 2026-12-06: Linux = not run; Windows = not run; Mac = not run.
LLM Guide: let your AI assistant set it up#
We can let an AI help without handing it our keys. Copy the block below into ChatGPT, Claude, Gemini or a local model. It first asks about your setup, then follows only the path that fits you.
You are my assistant for connecting existing Jan desktop to home-server Ollama or llama.cpp.
Follow https://diylabhub.com/jan-home-server-client/ (checked 6 December 2026).
Work one step at a time and explain each command. Wait for OK before deleting data, stopping services, changing the router or opening ports.
STEP 0 - FIND OUT MY SETUP:
1. Jan 0.8.8 on Linux, Windows or Mac? If missing, follow the linked basic guide.
2. Server: Ollama 0.40.21 or llama.cpp 1.1.1, native or Docker? For Docker check docker --version, docker compose version and docker compose ps on the server.
3. What private address, port and exact model ID work? Which listener already owns the port?
4. What server RAM/VRAM and context limit are available?
5. Traefik, Caddy, nginx / Nginx Proxy Manager or none? Public-domain HTTPS, home-only HTTPS or isolated LAN HTTP?
6. Which clients should be allowed? Never request keys or private logs in chat.
THEN FOLLOW THE MATCHING PATH:
- Native Ollama: preserve storage. Configure OLLAMA_HOST on the server using the documented systemd override (Linux), user environment plus full app restart (Windows), or launchctl plus app restart (Mac). Restrict clients before widening the listener.
- Existing Docker Ollama: preserve service/data/GPU mappings. This reference layout is not a second deployment:
services:
ollama:
image: ollama/ollama:0.40.21
restart: unless-stopped
environment:
OLLAMA_NO_CLOUD: "1"
volumes:
- ./data:/root/.ollama
ports:
- "127.0.0.1:11434:11434"
Use the existing ~/docker_volumes/ollama folder. After approved edits: docker compose up -d. Loopback is reachable only by a same-host proxy, not directly by another computer.
- llama.cpp: inspect its actual --host, explicit --port and configured --api-key-file. Our example uses port 8080; never infer a default.
- LAN HTTP: http://<server-lan-ip>:11434/v1 for Ollama or http://<server-lan-ip>:8080/v1 for the example llama.cpp server.
- Traefik: external proxy network, no published backend port, article labels with entrypoints=https, tls.certresolver=le, backend port 11434 and LAN_CIDR IP allowlist. Create proxy network only if missing.
- Caddy 2.11.9 native beside Ollama: reverse_proxy 127.0.0.1:11434 and header_up Host localhost:11434, restricted to trusted clients. For llama.cpp behind same-host Caddy, bind llama-server to 127.0.0.1 on explicit port 8080 and use that upstream with its key. ai.home.arpa uses tls internal; trust the root on Linux/Windows/Mac. Public certificates use the domain and 80/443 while keeping client restrictions.
- nginx / Nginx Proxy Manager: read the official backend/proxy documentation rather than inventing headers.
JAN: Settings > Model Providers > Add Provider, OpenAI-compatible, descriptive name, Base URL ending /v1. Ollama ignores API keys: a required change-me placeholder is not authentication. For llama.cpp enter the actual key directly in Jan. Fetch models or add the exact ID from /v1/models. Set Max Context Tokens to fit the server. Choose that provider/model in a new chat. Do not start Jan's Local API Server.
CHECK IT WORKED: request /v1/models from the Jan computer (Windows curl.exe); expect a model list. Send a small chat. On Ollama run ollama ps during generation, or docker exec <container-name> ollama ps. Compare context limits if long chats fail.
RULES FOR YOU: use only these versions; no floating tags or invented Jan container. On failure show the actual error and read https://docs.jan.ai/desktop/remote-models/custom-endpoint and the backend docs before guessing. Never expose raw inference ports online. Prompts cross the LAN. Dummy names and placeholders need replacement. Never request passwords, tokens or keys in chat.
Step 1: Check the server from the Jan computer#
Linux#
curl "http://<server-lan-ip>:11434/v1/models"
Windows (PowerShell)#
curl.exe "http://<server-lan-ip>:11434/v1/models"
Mac (Terminal)#
Same command as Linux.
Replace the address locally. This assumes our existing Ollama listener is already LAN-accessible with suitable restrictions. 127.0.0.1 on the laptop means the laptop. A loopback-only backend is correct when a proxy on the server is the access path.
For native Ollama, the FAQ documents OLLAMA_HOST. On Linux, sudo systemctl edit ollama.service adds Environment="OLLAMA_HOST=0.0.0.0:11434" under [Service], followed by sudo systemctl daemon-reload and sudo systemctl restart ollama. Windows uses a user environment variable and a full quit/restart of the tray app. Mac uses launchctl setenv OLLAMA_HOST "0.0.0.0:11434" and restarts Ollama. Restrict access before widening any listener. Docker published ports have separate firewall implications; ufw alone may not protect them.
For local-only processing, set OLLAMA_NO_CLOUD=1 on the server and restart it, following the FAQ. That disables cloud features; we must still select our intended model in Jan.
For an installed llama.cpp server, this example makes the address, port and authentication explicit:
llama-server --model "<path-to-model.gguf>" --host "<server-lan-ip>" --port 8080 --api-key-file "<path-to-key-file>"
Replace all placeholders and secure the listener before running it. This is a configuration example for an existing server, not an installer or GPU recipe. Check /v1/models using its actual key privately.
Check it worked: receive the documented model list. This is expected behaviour, not our test output. Fix network/listener failures before editing Jan.
Tip: Check from the Jan machine. A request on the server proves only its local route.
Step 2: Add the provider and exact model ID#
Linux#
Open Jan Settings, Model Providers, Add Provider.
Windows (PowerShell)#
Use the same Jan window. No client-side environment variable is needed.
Mac (Terminal)#
Use the same window; the desktop GPU does not run this model.
Choose OpenAI-compatible and a clear provider name such as “Home server”. Jan's other wire format uses different requests, so the correct selection matters.
| Route | Jan Base URL |
|---|---|
| Ollama on the private LAN | http://<server-lan-ip>:11434/v1 |
| Our llama.cpp example | http://<server-lan-ip>:8080/v1 |
| HTTPS proxy | https://ai.example.com/v1 |
| Home-only Caddy | https://ai.home.arpa/v1 |
Jan requires an API-key value. For local Ollama use a non-empty dummy such as change-me; Ollama ignores it, so it provides no protection. For llama.cpp with configured authentication, enter the actual key directly in Jan. Keep it out of URLs and screenshots.
Save. Jan requests {base_url}/models. If discovery is unavailable, add the exact model ID manually, including its tag. A friendly display name is not necessarily the API ID. Custom-provider capabilities are not automatically detected: start with plain text and enable tools, vision or audio only when the exact server/model supports them.
Set Max Context Tokens to the server's supported configuration. Start a new chat, select this provider/model and ask for a short greeting.
Check it worked: the answer appears. During generation, ollama ps on the server, or docker exec <container-name> ollama ps for Docker, identifies the active model. Replace the container placeholder. The selected label alone does not prove which server handled a request.
Tip: Base URL ends at
/v1. Do not put/v1/chat/completionsinto that field.
Choose models for the server's hardware#
The laptop does not need to store the weights. The server still does. We use this planning method rather than promising that a model fits every GPU with a given label.
| Server | Our starting experiment |
|---|---|
| CPU only, limited spare RAM | Small quantized instruction model, short context |
| GPU with limited free VRAM | Weights small enough to leave memory for context/runtime |
| Larger GPU or unified memory | Increase model size only after recording small-model behaviour |
| Several concurrent users | Measure memory during overlapping requests before increasing limits |
For a rough lower bound, four-bit weights require parameters × 0.5 bytes: seven billion parameters start near 3.5 GB of raw weights. This is arithmetic, not total memory use. Runtime, metadata and context add to it. Read the model's official card and licence, then measure the server.
Ollama's ollama ps reports CPU/GPU placement. A short reply working does not prove a long conversation fits. Keep Jan's context setting consistent with the backend; do not assume a model card's theoretical limit was allocated by our server.
Put it behind HTTPS with Traefik#
Jan exposes no web UI here. These optional routes protect the server API used by another device. Keep raw inference ports private. For away-from-home access use our separate Ollama over Tailscale guide.
With Traefik#
Use existing Traefik with https and le. Check docker network ls, creating docker network create proxy only if absent. Remove the existing Ollama service's host ports, add networks: [proxy], preserve storage/GPU settings, and merge:
image: ollama/ollama:0.40.21
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.jan-server.rule=Host(`ai.example.com`)
- traefik.http.routers.jan-server.entrypoints=https
- traefik.http.routers.jan-server.tls=true
- traefik.http.routers.jan-server.tls.certresolver=le
- traefik.http.routers.jan-server.middlewares=jan-lan
- traefik.http.middlewares.jan-lan.ipallowlist.sourcerange=${LAN_CIDR:?Set a trusted client range}
- traefik.http.services.jan-server.loadbalancer.server.port=11434
Add top-level networks: with proxy: and external: true. Set LAN_CIDR=<trusted-client-cidr> in the project's .env, replacing the placeholder with our trusted client range. Never use an all-address range. Use chmod 600 .env on Linux/Mac, and account-only permissions on Windows. Apply with docker compose up -d.
This example assumes direct client connections to Traefik. Another upstream proxy needs a deliberate trusted-proxy configuration. Public certificates need DNS and reachable 80/443, while the application route remains restricted.
Without Traefik: Caddy#
Native Caddy beside the loopback-only backend avoids exposing its raw port. Install from official Caddy packages/downloads; 2.11.9 was current. Run caddy run --config Caddyfile on Linux/Mac, or caddy.exe run --config Caddyfile on Windows.
ai.home.arpa {
tls internal
@outside not remote_ip <trusted-client-cidr>
respond @outside 403
reverse_proxy 127.0.0.1:11434 {
header_up Host localhost:11434
}
}
Replace the client-range placeholder and resolve the name locally to Caddy. The Host override follows Ollama's proxy docs. For llama.cpp behind this same-host proxy, restart its listener with --host 127.0.0.1 --port 8080, preserving the model and key-file options, then use backend 127.0.0.1:8080. A listener bound only to the LAN address will not accept that loopback connection. Keep its server key in Jan; the Ollama Host override is unnecessary for llama.cpp.
Public certificates use ai.example.com with tls internal removed, keeping client restrictions. Meet Caddy's DNS and 80/443 requirements. Never router-forward 11434 or 8080.
For home-only HTTPS, copy Caddy's pki/authorities/local/root.crt from its data directory to clients. Debian/Ubuntu imports it under /usr/local/share/ca-certificates and runs sudo update-ca-certificates; Windows imports it into Trusted Root Certification Authorities; Mac uses System Keychain with explicit trust. Distribute only the certificate, never the CA key.
Check curl -I https://ai.home.arpa/v1/models (Windows curl.exe); if HEAD is unsupported, check with a GET. A certificate warning is a failed trust check. Do not disable verification to claim success.
Security and testing#
Prompts and attachments cross the LAN. The server can process or log them, and Jan keeps local conversation data. Protect both sides' backups. Use local models and switch off unneeded tools when our goal is processing inside the home network.
A server administered by someone else is not private to us merely because Jan calls it “custom”. Test with harmless text. If we can safely disconnect internet access while keeping the LAN running, check a downloaded model again. That checks this chosen path; it says nothing about future tools or provider changes.
Common mistakes#
| Mistake | Why it happens | Do this instead |
|---|---|---|
| Use localhost for another computer | Loopback means the client itself | Use the private server or proxy address |
Omit /v1 | Native and compatibility APIs differ | Use the compatibility base |
| Treat a dummy key as protection | Ollama ignores it | Restrict the network or use authenticated inference |
| Long chats fail after short ones work | Remote context is not auto-detected | Set Max Context Tokens and backend limits |
| Enable vision/tools blindly | Custom providers do not detect capabilities | Verify the exact model and server |
| AI invents a Jan Docker service | Desktop and inference backend are confused | Keep Jan native; use the existing server |
Tip: Name providers after where processing happens. It helps us notice a wrong destination before sending private text.
Troubleshooting#
| Problem | Solution |
|---|---|
| No connection | Check from the Jan machine; inspect listener, firewall and server sleep |
| HTTP 404 | Check /v1 and the exact ID returned by /v1/models |
| HTTP 401 on llama.cpp | Enter its configured key directly in Jan |
| HTTPS fails on one client | Import the correct local CA on that client |
| Model list works but generation fails | Inspect server logs and model memory |
| Slow answers | Check ollama ps and competing CPU/GPU work |
For Docker use docker compose ps, docker compose logs --tail 100 and docker inspect <container-name> with our actual name. Jan's troubleshooting/data-folder docs identify its logs. Redact prompts, filenames and credentials before sharing logs.
Known bugs#
Jan's 0.8.8 notes list remote auto-compact issue #9317: configure Max Context Tokens for remote models. Use the backend's allocated limit, not an arbitrary large number. We have not tested the workaround ourselves.
Updates and backups#
Update Jan through its official distribution channel after reading release notes; the basic guide covers installers. Update the server separately. For Docker, edit the exact image version, then docker compose pull and docker compose up -d. Preserve the previous configuration and any pre-migration backup.
Quit Jan before backing up. Locate its actual data directory through Jan Data Folder, especially if moved. Save this Linux/Mac script after replacing the placeholder:
#!/bin/sh set -eu JAN_DATA="<actual-Jan-data-directory>" mkdir -p "$HOME/docker_volumes/jan-client/backups" tar -czf "$HOME/docker_volumes/jan-client/backups/jan-$(date +%Y%m%d-%H%M%S).tgz" -C "$JAN_DATA" .
Windows equivalent, after quitting Jan:
$janData = "<actual-Jan-data-directory>"
$backupDir = "$HOME\docker_volumes\jan-client\backups"
New-Item -ItemType Directory -Force $backupDir | Out-Null
$archive = "$backupDir\jan-$(Get-Date -Format yyyyMMdd-HHmmss).tgz"
tar.exe -czf $archive -C $janData .
if ($LASTEXITCODE -ne 0) { throw "Backup failed; keep the original data" }
These are backup folders, not a Jan container. We use Windows' built-in tar.exe because PowerShell's Compress-Archive omits hidden files and has a documented 2 GB per-file limit. A Jan data tree can contain large model files. Check free space before archiving it. Archives can contain sensitive conversations. Provider keys may be in the OS keyring, so do not assume a data archive restores them. Record provider URLs, model IDs and context settings without putting secrets in shared notes. Back up server customizations and irreplaceable model files separately.
Linux/Mac cron can run the saved script at 03:00 with 0 3 * * * /bin/sh "<path-to-backup-script>"; Windows Task Scheduler can run its saved PowerShell equivalent. Schedule a cold backup only when Jan is closed; do not forcibly close active chats.
Extract one chosen archive into a new empty folder. On a spare profile, restore with Jan closed, re-enter keys locally if necessary, and check conversations and the provider connection. Keep the original until this works. An archive listing is not a completed restore test. Copy backups off the computer.
Performance and resources#
We have no measured speed or memory results. Compare the same harmless prompt, model and context. Observe server memory with ollama ps and docker stats --no-stream <container-name>. On the client use Task Manager, Activity Monitor or a Linux process monitor.
A faster laptop GPU does not accelerate server inference. Fit weights and context into available server memory first. Streaming may display the first tokens sooner without shortening total generation time.
FAQ#
Must Jan's Local API Server run?
No. That shares Jan's models; here Jan calls another server.
Must we download the server model into Jan?
No. Jan needs its provider and model ID.
Does a required API-key field prove authentication?
No. Local Ollama ignores it. llama.cpp can enforce a configured key.
Can we use this away from home?
Yes, through a suitable private connection; use our separate remote-access guide.
Is it offline?
A downloaded server model can work without internet while the LAN runs. Prompts still leave the desktop.
Sources#
Ollama 0.40.21, Docker Hub pin, OpenAI compatibility, FAQ: configuration, cloud disable and proxy, Docker.
Caddy install, automatic HTTPS, request matchers, reverse proxy.
Checked against the official docs on 2026-12-06. Tested by DIY Lab Hub: not yet.