New Tool Radar

Local AI

How to Use llama-server’s Built-in Web UI with –webui

Open llama-server's built-in web chat with --webui and hold a conversation in the browser.

Schematic illustration with three step boxes: Start the server; Open the web UI; Send a chat message.

llama-server ships with a small built-in web interface, so you can chat with a local model in a browser without installing a separate chat app. The –webui flag turns it on. This guide starts it and sends a first message.

Before you start

  • llama.cpp installed, with llama-server on your PATH.
  • A GGUF chat model file, for example a Qwen3 8B Q4_K_M file.
  • A web browser on the same machine.

Start the server with the web UI

Start the server with the flag:

llama-server -m qwen3-8b-q4_k_m.gguf --webui --port 8080

The server prints its startup lines and the address to open.

Open the interface

Open http://localhost:8080 in a browser. The built-in chat page should appear, with a message box and a model name at the top. If the page does not load, check that the server is still running in the terminal.

Send a message

Type a question with a checkable answer, for example a short summary request, and send it. The reply should stream into the page. Start a new chat from the interface to clear the context when you change topic.

Worked example

Worked example: ask “What is the difference between a virus and a bacterium, in two sentences?” The reply should be two short sentences that mention that bacteria are single cells and viruses need a host cell. If the reply is much longer, the model’s chat template may need checking.

Expected result

UNTESTED in this guide: no server was run while writing it. The expected result is that the web page loads at localhost:8080 and the chat reply streams into the page.

Limitations

The built-in interface is a simple chat page, not a full chat app: it has no accounts, no saved conversations and no file upload. Anyone who can reach port 8080 on your machine can use it, so keep it on localhost unless you have set up access control.

Sources

See all