---
source: https://iinventedlight.com/library/notes/ao-idlehw-openai-compatible-servers.md
title: "llama-server and vLLM expose OpenAI-compatible HTTP endpoints"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (ggml-org/llama.cpp (GitHub)); Apache-2.0 (vllm-project/vllm (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: ggml-org/llama.cpp (GitHub), llama.cpp HTTP server (tools/server README), MIT (https://raw.githubusercontent.com/ggml-org/llama.cpp/master/LICENSE); vllm-project/vllm (GitHub), OpenAI-Compatible Server (vLLM docs), Apache-2.0 (https://raw.githubusercontent.com/vllm-project/vllm/main/LICENSE)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Server READMEs read; no model downloaded, server started or endpoint exercised."
category: agent-operations
topic_area: "agent operations: local model serving"
tags: [llama-server, vllm, openai-compatible, http, local-models]
client: Librarian
sources:
  - id: S1
    title: "llama.cpp HTTP server (tools/server README)"
    publisher: ggml-org/llama.cpp (GitHub)
    url: https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md
    accessed: 2026-11-16
    license: "MIT"
  - id: S2
    title: "OpenAI-Compatible Server (vLLM docs)"
    publisher: vllm-project/vllm (GitHub)
    url: https://github.com/vllm-project/vllm/blob/main/docs/serving/online_serving/openai_compatible_server.md
    accessed: 2026-11-16
    license: "Apache-2.0"
---
# llama-server and vLLM expose OpenAI-compatible HTTP endpoints
**Answer:** The llama.cpp server provides OpenAI API compatible chat completions routes. vLLM provides an HTTP server that implements OpenAI's Chat API and other APIs.

## llama.cpp

The server documents `/v1/chat/completions` with synchronous and streaming requests. No strong claims of compatibility with the OpenAI API spec are made, although it suffices to support many apps.

## vLLM

vLLM supports OpenAI APIs including the Completions API, Chat Completions API and Embeddings API. Chat completions require a text-generation model with a chat template. The `user` parameter is ignored.

## Access control limit

vLLM warns that `--api-key` authenticates only selected path prefixes. Other endpoints on the same HTTP server are not authenticated, notably `/invocations`. Its docs recommend hardening such as a reverse proxy rather than relying on that flag alone.

## See also

- [ao-idlehw](https://iinventedlight.com/library/notes/ao-idlehw/)
- [ao-idlehw-ollama-context-and-keepalive](https://iinventedlight.com/library/notes/ao-idlehw-ollama-context-and-keepalive/)

## Claims

- id: C1
  claim: llama.cpp provides compatible chat-completion routes.
  source: S1
  evidence: "compatible chat completions, responses, and embeddings routes"

- id: C2
  claim: vLLM provides an HTTP server.
  source: S2
  evidence: "vLLM provides an HTTP server"

- id: C3
  claim: vLLM warns that API key authentication does not cover all endpoints.
  source: S2
  evidence: "API key authentication does not protect every endpoint"

- id: C4
  claim: vLLM ignores user in chat completions.
  source: S2
  evidence: "`user` parameter is ignored."

## Sources

- [S1] llama.cpp HTTP server (tools/server README). ggml-org/llama.cpp (GitHub). https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md . License: MIT. Accessed 2026-11-16.

- [S2] OpenAI-Compatible Server (vLLM docs). vllm-project/vllm (GitHub). https://github.com/vllm-project/vllm/blob/main/docs/serving/online_serving/openai_compatible_server.md . License: Apache-2.0. Accessed 2026-11-16.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: ggml-org/llama.cpp (GitHub), llama.cpp HTTP server (tools/server README), MIT (https://raw.githubusercontent.com/ggml-org/llama.cpp/master/LICENSE); vllm-project/vllm (GitHub), OpenAI-Compatible Server (vLLM docs), Apache-2.0 (https://raw.githubusercontent.com/vllm-project/vllm/main/LICENSE). Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
