Build, host and run AI solutions.

Run open-source LLMs on CPU — no GPU required. OpenAI-compatible API, 200+ models, self-hosted in one command.
LocalAI (MIT, ~47k GitHub stars) is a free, open-source alternative to the OpenAI API. It runs on consumer-grade hardware without a GPU — any VPS with 2 GB RAM can serve Llama 3, Mistral, Phi-3, Qwen and 200+ other models via an OpenAI-compatible REST API. Your existing code that calls `openai.ChatCompletion.create()` works without modification: change the base URL to your VPS and all API calls are routed locally, with zero per-token cost and complete data privacy.
Deployed on a ServOrbit VPS, LocalAI becomes your private LLM backend: an endpoint your team's applications, RAG pipelines and agent frameworks call instead of OpenAI — with no cloud dependency, no usage limits, and no data leaving your infrastructure. LocalAI supports text generation, function calling, image generation (Stable Diffusion), speech-to-text (Whisper), and text embeddings — all from a single container.
Replace your OpenAI API calls with a LocalAI endpoint on your VPS. Your SaaS, internal tool, or RAG pipeline sends requests to `http://your-vps:8080/v1/chat/completions` — identical JSON, identical SDK, zero cost per token. Ideal for high-volume use cases where per-token API pricing becomes a bottleneck.
For legal, medical or financial applications where data cannot leave your infrastructure, LocalAI runs entirely offline once the model is downloaded. No requests ever reach an external API. The GGUF model files are stored in a Docker volume on your own disk.
Run embedding models (nomic-embed-text, mxbai-embed-large) locally alongside Qdrant on the same VPS to build a complete semantic search or RAG pipeline. No OpenAI embedding API cost, no data leaving your server, no rate limits.
Guide optimized for ServOrbit Cloud VPS.
Order a VPS on ServOrbit with at least 2 GB RAM and Ubuntu 22.04 or 24.04. For comfortable multi-user usage or larger models (7B+), 4 GB RAM is recommended. CPU count matters for inference speed: 4 vCPU reduces generation latency noticeably on 3–7B models.
Connect via SSH and run: docker run -d --restart=always -p 8080:8080 -v local-ai:/build/models --name localai localai/localai:latest. The image (about 900 MB) starts an OpenAI-compatible API server. The first request for a model triggers an automatic download to the persistent volume.
Download your first model with a single API call: curl http://localhost:8080/models/apply -H 'Content-Type: application/json' -d '{"id":"llama-3.2-3b-instruct:q4_0"}'. LocalAI fetches the GGUF file and registers it. The 3B Q4 quantisation fits in 2 GB RAM; the 7B Q4 needs ~4 GB.
Test the API: curl http://localhost:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{"model":"llama-3.2-3b-instruct:q4_0","messages":[{"role":"user","content":"Hello!"}]}'. The response is identical to OpenAI's — change the base URL in your existing code and everything works.
In any OpenAI SDK, set base_url='http://your-vps-ip:8080/v1' and api_key='not-needed'. In LangChain: ChatOpenAI(base_url=..., api_key='x'). In LiteLLM: add a localai/ prefix. In Open WebUI: configure an OpenAI connection with your VPS URL. Your existing code needs no other change.
LocalAI is open by default. To add authentication, set LOCALAI_API_KEY=your-secret environment variable when running the container. For HTTPS, place Caddy in front: ai.yourdomain.com { reverse_proxy localhost:8080 } — Caddy issues the Let's Encrypt cert automatically. Restrict port 8080 to your office IP using ufw if needed.
Run open-source LLMs locally via a dead-simple API. Pull Llama 3, Mistral, Qwen or DeepSeek in one command — OpenAI-compatible, zero per-token cost.
Artificial IntelligenceSelf-hosted OpenAI-compatible API gateway for 100+ LLMs — route between Ollama, Anthropic, Azure and more from a single endpoint, with per-key rate limits and spend tracking.
Artificial IntelligenceWeb interface to interact with your local or remote LLMs. Your data stays on your infrastructure — no third party involved.
Browse our help center and FAQ, or write to our team — support in French, English and Arabic.