datasette-llm 0.1a11: run Datasette Agent on local models
datasette-llm 0.1a11 adds OpenAI-compatible endpoints, so Datasette Agent can run on local models served by LM Studio, Ollama or llama.cpp.
Simon Willison released datasette-llm 0.1a11 on Nov 14, 2026. It adds support for OpenAI-compatible endpoints. datasette-llm is the plugin other Datasette plugins use to reach an LLM, so you can now point Datasette at any model server that speaks that protocol, including LM Studio, Ollama or llama.cpp. The practical result is a Datasette Agent instance that chats with your SQLite data using a model on your own machine.
Willison's post gives a one-liner that fetches a sample database and starts Datasette with the agent plugin, configured for a Qwen 27B model served by LM Studio:
wget https://datasette.io/content.db
uvx --with datasette-agent datasette \
--root --secret 1 \
-s plugins.datasette-llm.default_model '{
"model": "lmstudio-qwen",
"model_name": "qwen/qwen3.8-27b",
"api_base": "http://localhost:1234/v1"
}' content.db
The agent side is early software. Datasette Agent 0.5a0 added a chat panel that sits next to table and query pages. Paired with datasette-apps, it lets you prompt a database-backed app into existence and then edit it. DEV Community's review rates it "Evaluate": it is an alpha, suited to internal tooling and prototyping, not production data. The post doesn't pin package versions, and it doesn't explain what the agent can change in a database launched with --root. We also found no comparison of how a local 27B model handles the agent against a hosted one.
If you serve the model with llama.cpp, note that it just shipped 1.0. Unite.AI reports that 1.0 hardens llama-server against server-side request forgery, cross-origin and DNS-rebinding issues. ComputingForGeeks' upgrade test found that llama-server now refuses to start with its own tools or MCP (Model Context Protocol) enabled on a non-loopback address unless you set --api-key. It also says the web UI's MCP proxy stops working against localhost or LAN servers, with no opt-out. A plain localhost endpoint, as in Willison's example, sidesteps the first problem.
Our read: this matters most if your data can't go to a hosted API. A local model lets you try agent-driven queries and throwaway apps against that data.
Try it: run the command above against a copy of a database you know well, never the original, and ask the agent questions you already know the answers to. That tells you quickly whether your local model is good enough before you trust it with anything new.
Sources
- Release: datasette-llm 0.1a11 · Simon Willison’s Weblog
- Datasette Agent 0.5a0, Fine-Tuning Updates, and More · DEV Community
- Llama.cpp V1.0.0 Sets API Stability Rules for Local AI Tools · Unite.AI
- Release: datasette-agent 0.5a0 · Simon Willison’s Weblog
- llama.cpp 1.0 Upgrade: Breaking Changes, Tested | ComputingForGeeks · ComputingForGeeks