Can you self-host Claude? The honest answer
Claude's weights are not public, so no server of yours can run it. Here is what you can self-host instead: open models, a gateway, and Claude Code.
Filtering by topic #llm · clear
Claude's weights are not public, so no server of yours can run it. Here is what you can self-host instead: open models, a gateway, and Claude Code.
Build Jev style typed decisions on your own server with llama.cpp grammars or Fastino's open decision model, and check the confidence before routing.
Ollama truncates long prompts at a small default context window. Set num_ctx per request or OLLAMA_CONTEXT_LENGTH server wide, and size the KV cache RAM first.
Ollama unloads a model after 5 minutes idle, so the next request waits for a reload. Set OLLAMA_KEEP_ALIVE in a systemd override, then preload after reboot.
Use Claude as the brain and your VPS as the body. How the Messages API, tool use, and MCP fit together to build an AI agent you run yourself.
Size an LLM for a CPU server without guessing: weights in bytes, KV cache growth with context, runtime overhead, and why fitting is not the same as usable.
Serve Liquid AI's 230M model with a pinned llama-server build on a 1 or 2 vCPU box, then test where it extracts clean JSON and where its reasoning fails.
The KV cache is RAM your server pays for on every request. Prompt caching is a bill someone else discounts. Only one can break a model load.
Pick a model by the RAM you actually have. Sizing arithmetic for 4 GB, 16 GB and 64 GB VPS plans, honest CPU token rates, and the hidden cost of context.
Ollama context deadline exceeded means a Go timeout fired, during a model pull or a request. Find which layer set it: your client, the model load, or nginx.
Set Ollama environment variables on a server with a systemd override and confirm each value in the log. Learn why a shell export never reaches the service.
Ollama is a convenience layer for one user, on CPU if needed. vLLM is a throughput engine for GPUs. Pick by workload, with the real commands for both.
Harness adapters are small LoRAs trained with RL inside one coding agent. See what the Qwen3.8 27B adapters gain and how to serve one with vLLM for Pi.
Two harnesses on one model can bill an order of magnitude apart. The mechanics behind the gap, and how to measure your own agent's token spend.
Your SearXNG instance can feed web search to Open WebUI. Enable the JSON format, then hand the other container a URL it can actually reach.
Ollama on a small VPS without a GPU, with cloud inference: signin without a browser, a private API on 11434, quotas, and a local fallback.
A 7B model wants 8 GB of RAM and gives 4 to 10 tokens per second on CPU. Host one on a VPS and call it at 127.0.0.1:11434/v1, with port 11434 kept closed.
OpenClaw is a personal AI agent that runs commands on your own server. Here is how one is built, piece by piece, and why hardening comes first.
Run Langfuse on your own VPS: the real resource floor, pinned image tags, TLS, ClickHouse retention before it fills the disk, and backups that work.
Ollama Cloud and a self-hosted Ollama share one CLI and one API. See exactly which settings change, and what leaves your machine on each path.
An AI agent is a loop around a language model that can use tools. Learn the concepts behind building one on your own VPS: the loop, tools, MCP, memory.
An LLM is weights that need RAM. An assistant adds a chat surface. An agent adds tools and a loop, and it holds credentials, so it needs a box that stays on.