On this pageThe stack in four layers
Small teams rarely need an AI strategy. They need three or four tools that remove real chores, with company data kept where they can see it. Most of those tools now exist as open source you can run on one or two servers, and the model behind them can be a hosted API, a model on your own GPU, or both. This guide lays the stack out in layers, with the license and hardware each piece needs, then lists the rules to set before anyone connects it to business data.
The stack in four layers
| Layer | Job | Self-hosted options | Runs on |
|---|---|---|---|
| Models | Generate text, embeddings and transcripts | Hosted APIs, or open-weight models served by Ollama or vLLM | Nothing for APIs; a GPU server for your own models |
| Gateway | One endpoint, per-app keys, budgets, logs | LiteLLM | A small VPS |
| Apps | Chat, document search, automations, transcription | Onyx, Open WebUI, n8n, Activepieces, faster-whisper | A VPS; a GPU only for heavy transcription |
| Data | Documents, vectors, history, credentials | PostgreSQL, Qdrant, each app's own store | The same VPS, or one beside it |
Build from the bottom up and you can swap any layer later without touching the others.
Layer 1: decide where the models live
You do not have to pick a single source. Most small teams start with hosted APIs, because the strongest models are offered that way and there is nothing to maintain. Steady, high-volume or sensitive work can then move to an open-weight model on your own GPU. Ollama is the quickest way to serve one; vLLM copes better with many simultaneous users. The break-even guide helps you decide with your own numbers, and the VRAM guide shows which model fits which card.
Layer 2: put a gateway in front
A gateway gives every app one OpenAI-compatible endpoint and one kind of key, whatever model sits behind it. LiteLLM (MIT core, with enterprise features under a commercial license) covers what a small team needs most:
- a virtual key per app or person, so one leaked key can be revoked on its own,
- a spending limit per key, so a looping automation stops at a number you chose,
- request logs and spend per team,
- fallbacks from one provider to another during an outage.
Apps then ask for a model by the name you define, and you change what that name points to in one file:
# config.yaml for the LiteLLM proxy
model_list:
- model_name: assistant # the name your apps request
litellm_params:
model: openai/your-model-id # any hosted model your provider lists
api_key: os.environ/OPENAI_API_KEY
- model_name: assistant-private
litellm_params:
model: ollama_chat/qwen3:8b # open-weight model on your GPU server
api_base: http://gpu-host:11434
Virtual keys need the proxy's PostgreSQL database. Issue one per consumer, with its own budget:
curl -s http://127.0.0.1:4000/key/generate \
-H "Authorization: Bearer $LITELLM_MASTER_KEY" \
-H "Content-Type: application/json" \
-d '{"key_alias": "n8n", "models": ["assistant"], "max_budget": 25, "budget_duration": "30d"}'
Layer 3: the apps that do the work
Chat that knows your documents
Onyx connects to more than 50 applications your team already writes in, indexes them, and answers in a chat window with links back to its sources. Its Community Edition is MIT-licensed. The standard mode runs vector and keyword indexes, background workers and model servers, so it is the heaviest app here. Onyx Lite is a chat-only mode that cannot index documents and runs in under 1 GB of memory.
Open WebUI is the other common chat front end, with accounts and document upload. The workspaces guide covers how it pairs with Ollama, along with the branding terms in its license that matter if you plan to rebrand it.
Automations with a model step
n8n and Activepieces both draw workflows as connected steps, and both include AI steps: classify an incoming email, draft a reply for a person to approve, pull fields out of an invoice into a spreadsheet. The Activepieces Community Edition is MIT. n8n uses its Sustainable Use License, which permits free self-hosting for internal business and personal use. Point their AI steps at the gateway rather than straight at a provider, so the keys and budgets above apply.
Transcription
Meeting notes and support calls make a good first job, because the input is already yours and a mistake costs little. faster-whisper (MIT) runs OpenAI's open Whisper models on a lighter runtime:
from faster_whisper import WhisperModel
model = WhisperModel("large-v3", device="cuda", compute_type="float16") # CPU: device="cpu", compute_type="int8"
segments, info = model.transcribe("weekly-call.mp3", beam_size=5)
print("Language:", info.language)
for s in segments:
print(f"[{s.start:7.1f}s] {s.text.strip()}")
On a CPU-only server, the small or medium models are the practical choice. Send the transcript to the gateway for a summary and a list of action items, and keep the audio only as long as your retention policy says.
Code
Coding agents are a separate decision with their own trade-offs; the coding agent guide covers them.
Layer 4: keep the data where you back it up
Each app keeps its own state: Onyx its index, n8n its workflows and encrypted credentials, LiteLLM its keys and spend. Put them on volumes you snapshot, and back up the encryption keys some of them keep beside the data. n8n, for example, stores the key that protects saved credentials in its .n8n folder, and a backup without it cannot decrypt anything. If you add your own retrieval later, Qdrant (Apache 2.0) fits on the same server.
A layout that fits most small teams
- One VPS for the gateway, the automations and the chat front end, all behind one HTTPS reverse proxy with sign-in on every app.
- A second VPS if you run Onyx in standard mode, so indexing jobs do not slow everything else.
- An optional GPU server for open-weight models and heavy transcription, reachable only from the VPS through a private network or an SSH tunnel, never straight from the internet.
CloudSat one-click apps install n8n, Activepieces, LiteLLM, Onyx Lite and Ollama at deploy time, so each layer starts as a running service.
Rules to set before it touches business data
- Classify first. Decide which data may go to a hosted API and which must stay on your servers, then configure the gateway so the second kind can only reach a local model.
- One key per app and per person, each with a budget and a name you will recognize in the logs.
- People press send. Let automations draft messages to customers, and keep a person approving them until the drafts have needed no edits for weeks.
- Retain on purpose. Prompts and outputs contain customer data. Set a retention period for logs and transcripts, and apply it.
- Keep a test set. Save twenty real examples per job and rerun them whenever a model, prompt or app version changes.
- Patch on a schedule. These projects release often. Follow their release notes and update monthly, sooner for security fixes.
FAQ
Do we need a GPU to run AI tools ourselves?
No. With hosted models behind the gateway, everything here runs on an ordinary VPS. A GPU becomes worth paying for when you want models on your own hardware for privacy or volume, or when you transcribe hours of audio every day.
Is open source AI software free for business use?
Read each license. MIT and Apache 2.0 allow commercial use. n8n's Sustainable Use License allows internal use, and several projects keep features such as single sign-on for a paid edition.
What should a small team automate first?
A chore with clear inputs, cheap mistakes and a person in the loop: summarizing calls, tagging incoming tickets, drafting replies for review. Leave anything that moves money or messages customers on its own for later.
How do we stop staff pasting client data into public chatbots?
Offer something better: an internal chat that is just as convenient, connected to company documents, with a short policy on what may go where. Blocking alone tends to push the habit onto personal phones.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




