Setup (once)
Run
llama-server if it isn’t already running, seeds the demo (tools, model settings, demo database), and opens http://localhost:9090. First boot takes about a minute for database migrations; Ctrl+C stops everything it started.
Prefer the MLX backend on a Mac?
What to try
- Vision — click the
+in the message box, upload a photo or screenshot, and ask about it. Follow-up questions about the same image are near-instant on the llama.cpp backend (prompt cache). - Weather tool — “What’s the weather in Lisbon right now?”
- Web fetch tool — “Fetch https://prismml.com and summarize it.”
- MCP servers — Hugging Face Hub and DeepWiki are connected but off by default. Enable one from the tool menu, then try “Find trending vision-language models on Hugging Face.”
- The agentic analyst — the demo ships a SQLite database of a fictional B2B company (2024–2026) with a hidden story in it. Ask: “Our EMEA numbers looked bad in the second half of 2025. Figure out what happened and whether it was preventable.” and watch it explore the schema, run queries, and piece the answer together.
- Thinking — answers show a collapsible thought block. Turn thinking off for snappier replies with
BONSAI_THINKING=0 ./scripts/start_openwebui.sh, or cap it per request.
How it works
- The three built-in tools live in
scripts/openwebui/as plain Python Open WebUI “Tools” and are re-seeded on every start — edit them and restart to change the demo. - The demo database is generated into
.openwebui/demo.dbon first start. - Chats persist in
.openwebui/between runs; delete that directory for a factory-fresh demo. - Configuration comes from
start_openwebui.shenv vars on every launch (auth disabled, single backend, background title/tag/follow-up generation off so the UI doesn’t keep the model busy after each reply).
Adding your own tools or MCP servers
EditTOOL_SERVER_CONNECTIONS in scripts/start_openwebui.sh and restart — that script, not the admin panel, is the source of truth (the demo runs with persistent config disabled, so panel edits don’t survive a restart). Full guide, including the optional Brave Search MCP server: TOOLS.md in the demo repo.
Related
Run the server
The raw OpenAI-compatible API underneath Open WebUI.
Bonsai 27B
The model this demo is built around: vision, tool calling, thinking.