Skip to content

NerdlystTech · Markets · Code

datasette-llm 0.1a9: Datasette Agent No Longer Needs a Model Flag

datasette-llm 0.1a9 removes one line from the Datasette Agent setup: you no longer have to tell it which AI model to use. The plugin now uses whatever default model you already chose in Simon Willison’s LLM command-line tool, so a single command opens a chat window over your SQLite database.

The release is small. It still matters, because it shortens the trickiest part of trying an AI data agent for the first time.

Key takeaways

  • Simon Willison released datasette-llm 0.1a9 on 31 October 2026. The changelog sums it up in one line: “Default to the default model for LLM if no other default has been specified.”
  • Before this release, Datasette Agent needed a -s plugins.datasette-agent.default_model ... setting before it would run.
  • If you have run llm models default, Datasette Agent now uses that model automatically.
  • Your explicit settings still win. The LLM default is only used as a fallback.
  • The project is still in alpha, and every datasette-llm release so far is marked as a pre-release.

What changed in datasette-llm 0.1a9?

Here is the new way to start Datasette Agent against a database, taken from Willison’s release note:

uvx --with datasette-agent datasette content.db --internal internal.db

Before 0.1a9 you also had to add -s plugins.datasette-agent.default_model gpt-6-astra, or name some other model there. Without that setting, the agent had no model to talk to.

Willison calls this “a tiny user experience improvement” and says bigger upgrades to Datasette Agent are on the way. Still, first-run friction is usually where people give up on a tool. When the first command fails, many users never try a second one.

What are Datasette, LLM and Datasette Agent?

The release makes more sense once you know the three pieces involved.

  • Datasette is an open-source tool for exploring and publishing data. You point it at a SQLite file (a whole database stored in one file) and it gives you a web interface and a JSON API.
  • LLM is Willison’s command-line tool and Python library for working with large language models. Through plugins it can reach OpenAI, Anthropic, Google and local models.
  • Datasette Agent, which Willison announced on 21 May 2026, adds “a conversational interface for asking questions of the data you have stored in Datasette.” You ask in plain English and it writes the SQL for you.

datasette-llm connects these pieces. Its own description is “LLM integration plugin for other plugins to depend on.” Think of it as the building’s main switchboard: every AI-powered Datasette plugin connects through it rather than running its own wiring to OpenAI or Anthropic.

How does datasette-llm choose a model now?

The project README sets out the order of priority. Plugins ask for a model by “purpose”, a label such as “sql-assistant” or “enrichments”. Here is what each setting does:

SettingWhere you set itWhen it applies
Purpose-specific modeldatasette.yamlHighest priority, for that purpose only
default_modeldatasette.yaml or -s flagAny purpose without its own model
LLM’s default model (new in 0.1a9)llm models default <name>Only when neither of the above is set

The README describes the fallback plainly: if neither default_model nor a purpose-specific model is configured, “datasette-llm falls back to LLM’s own default model.”

To see or change that default, use LLM’s own commands, as described in the LLM setup docs. Run llm models default to print the current default. Run llm models default followed by a model name to change it. Out of the box, LLM uses OpenAI’s gpt-5.6-luna, which the docs describe as “a fast and less expensive” option. You will need an OpenAI key, set with llm keys set openai.

API keys follow a similar fallback chain. datasette-llm checks purpose config first, then the default_model settings, then the datasette-secrets plugin, and finally LLM’s own stored keys and environment variables. If LLM already works in your terminal, Datasette Agent now has what it needs.

How did datasette-llm get to 0.1a9?

The release history shows the plugin growing a piece at a time, with each alpha adding one capability:

  • 0.1a3 (30 March 2026): available and default models can be set for each purpose.
  • 0.1a4 (31 March 2026): different API keys can be used for different purposes.
  • 0.1a6 (1 April 2026): the default model no longer has to be listed again among the allowed models.
  • 0.1a7 (5 May 2026): default options, such as temperature, can be set for specific models.
  • 0.1a8 (19 May 2026): fixed a bug where a usage-tracking hook missed parts of chained responses.
  • 0.1a9 (31 October 2026): falls back to LLM’s default model.

The per-purpose key feature is the one teams will care about most. You can, for example, bill chart-generation calls to one API key and SQL help to another.

Should you try Datasette Agent?

In our opinion, yes, if you have a SQLite file you keep meaning to explore. The public demo runs on Gemini 3.1 Flash-Lite, which Willison chose because it is cheap and fast and has no trouble writing SQLite queries. You don’t need a frontier model to ask “which month had the most orders?”

Local models work too. Willison’s launch post showed the agent running gemma-4-26b-a4b through LM Studio on a Mac, using the llm-lmstudio plugin. If you are watching costs, our guide to recent LLM price cuts is a useful companion.

Keep in mind that this is still alpha software. Settings and plugin names may change between releases, so don’t build a production dashboard on it without pinning versions.

What happens next

Willison wrote on 31 October 2026 that he has “some big upgrades to Datasette Agent in the pipeline”. He did not say what they are or when they will ship.

The plugins around the agent are growing as well. datasette-agent-charts draws charts with Observable Plot, datasette-agent-openai-imagegen generates images, and datasette-agent-sprites runs code in Fly Sprites sandboxes. Because they all get their models through datasette-llm, the new fallback applies to each of them. How an agent handles its context window is a separate question, covered in our piece on context engineering failures and fixes.

FAQ

Does datasette-llm 0.1a9 override my configured model?

No. A default_model or purpose-specific model set in Datasette config still takes priority. LLM’s default is used only when neither is set.

How do I check which model Datasette Agent will use?

If you haven’t configured one in Datasette, run llm models default in your terminal. That prints LLM’s current default, which is the model Datasette Agent will fall back to.

Can Datasette Agent run with a local model?

Yes. Willison demonstrated it with gemma-4-26b-a4b through LM Studio and the llm-lmstudio plugin. Make the local model your LLM default and the agent will use it.

Next step: run llm models default to see your current model, then point the one-line uvx command above at a SQLite file you already have.

Leave a comment

Leave a Reply