Simon Willison Opens Datasette Agent Preview for SQLite Exploration
The Datasette Agent preview gives developers a hosted way to ask questions of SQLite databases in plain language and watch an AI assistant turn those questions into real queries. Simon Willison introduced the preview instance on 5 December as day four of a Datasette Advent calendar of releases, pointing readers to a live demo they can sign in to with a GitHub account. The sign-in, he explained, is there purely to discourage abuse of the shared demo rather than to gate the software itself, which remains an open source plugin anyone can install and run against their own data.
That distinction matters. Datasette Agent is not a hosted analytics product with a pricing page and a sales team. It is a plugin for Datasette, Willison’s long-running open source tool for exploring and publishing data, and it plugs his LLM Python library into that interface so a model can call tools, run SQL and explain what it found. The preview is simply the easiest way to see the idea working before deciding whether to run it locally, and the December video introduction focuses on a feature that makes the concept tangible: asking the agent to annotate a chart to explain a gap in the data.
What the Datasette Agent preview actually does
At its core, Datasette Agent provides a conversational interface for asking questions of data stored in SQLite. Instead of writing SQL by hand, a user types a question, the model works out which tables and columns are relevant, writes a query, runs it through Datasette and answers using the rows that come back. Willison’s announcement describes three main capabilities: SQL question-answering, pattern discovery across tables, and plugin-driven visualisation. The result is meant to feel less like a chatbot guessing at answers and more like an analyst who shows their working, because the query behind each answer is visible.
The demo instance runs against example databases, including a global power plants dataset and a copy of the backup of Willison’s own blog. In the recorded demonstration he asked when he had most recently seen a pelican, and the agent searched his blog sightings table, filtered for the word pelican, ordered by date and returned the most recent record with its date and the other species noted that day. It is a deliberately small example, but it shows the pattern clearly: a natural-language question becomes a structured query, and the answer is grounded in rows the user can inspect.
The hosted preview uses a fast, inexpensive Gemini Flash-Lite model through the LLM plugin system, chosen because testing showed it handled the SQLite queries the agent needs. That choice is not a lock-in. Because Datasette Agent builds on the LLM library, it supports hundreds of tool-calling models, from frontier models offered by major providers through to open weight models running on a user’s own hardware. The model is a replaceable part; the plugin, its tools and the Datasette interface are the product.
Charts, annotations and the plugin system
The December introduction puts the spotlight on integration with Datasette Charts. With the charts plugin installed, the agent can generate a chart of the data it has queried rather than only returning a table or a paragraph. In the demo, Willison asked the agent to add annotations to a chart explaining a gap in the visualised data, and the callouts landed where the missing values were. That is a small interaction with a large implication: the agent is not just retrieving numbers, it is helping a reader interpret them in place.

Extensibility is the design centre of the project. Datasette has always grown through plugins, and Datasette Agent follows the same pattern, with additional plugins adding tools the agent can call. The charts plugin, powered by Observable Plot, is the first and most visible example, and Willison has described further prototypes that are not yet ready for release. For developers, this means the agent’s abilities can be shaped to a specific database or workflow instead of being fixed by a vendor’s roadmap.
Conversations can also be exported as Markdown, which makes it easy to save a question, the query it produced and the answer together in notes or documentation. That export habit matters for reproducibility. An answer that can be traced back to a query, and a query that can be re-run against the same database file, is far more trustworthy than a fluent paragraph with no provenance. Teams evaluating agent tools for data work increasingly ask for exactly that kind of audit trail, a theme explored in our coverage of open source AI coworker tools and how they expose their actions to users.
Running it locally with your own models
For anyone who wants to go beyond the preview, Willison’s announcement shows how to run Datasette Agent locally using the uv package tool, pointing it at a demo database and supplying an API key for a chosen model provider. The same setup can use an existing ChatGPT subscription through a Codex integration instead of a separate API key, or run entirely against local models served by tools such as LM Studio. He has demonstrated it with open weight models on a Mac, noting that recent open models have become increasingly capable of the reliable tool calls and valid SQL the agent depends on.
Local running changes the privacy calculation. A SQLite file on your own machine, queried by a model running on the same machine, keeps the data and the questions inside your own environment. Even when a hosted model is used, the architecture is transparent about what is sent: the model needs to see table schemas and the rows returned by its queries in order to answer. Developers can therefore make an informed decision about which databases are suitable for which model, rather than handing an entire dataset to an opaque service.
That transparency cuts both ways, and Willison’s wider writing on prompt injection is relevant here. Any agent that reads database content is reading text that could contain instructions planted by someone else, and a careful deployment should treat cell contents as untrusted input. Datasette’s permission system and read-only database connections are natural guardrails, and limiting what the agent’s tools can do is as important as choosing a capable model. Our explainer on what prompt injection is and how to avoid it covers the same risk from the application side.
What a sensible first trial looks like
A prudent first trial is easy to describe. Start with a copy of a database you already understand, ideally one where you know the right answers to a handful of questions. Ask those questions, read the SQL the agent generates, and check whether the answers match what you expect. Then try questions where you do not know the answer but can verify the result by inspecting the rows. Only after that does it make sense to point the agent at unfamiliar data, and even then the visible query remains your safety net.
It is also worth testing the failure modes deliberately. Ask ambiguous questions and see whether the agent clarifies or guesses. Ask about columns that do not exist. Ask for a chart of data with missing values and see whether the annotations explain the gap honestly. A tool that fails visibly is more useful than one that fails fluently, and the preview format, with its example databases and exportable transcripts, is well suited to that kind of probing.
Why SQLite is a good fit for agents
SQLite’s strengths line up neatly with what agents need. A database is a single file that can be copied, versioned and shared. Queries are fast and deterministic. The schema is discoverable, so a model can inspect table and column names before writing SQL. And because Datasette already provides a web interface for browsing tables, running queries and publishing data, the agent inherits a mature exploration surface instead of needing a new one built from scratch.
There is also a cultural fit. Datasette has long been popular with journalists, researchers and civic technologists who work with public datasets, and those users often have sharp questions but limited time to write SQL. An assistant that drafts the query, shows it and charts the result lowers the barrier without hiding the mechanics. The same pattern is appearing in customer-facing agent platforms, such as the model work covered in our report on Decagon’s Arcus model for customer agents, where showing the reasoning behind an action is becoming a selling point rather than an afterthought.
None of this makes the agent infallible. A model can write a query that runs perfectly and still answers the wrong question, joining the wrong tables or filtering on a column that means something slightly different from what the user assumed. The defence is the same one good analysts use: read the query, sanity-check the row counts, and compare against totals you trust. Datasette Agent makes that defence practical by keeping the SQL in view instead of burying it.
Access, cost and what remains unconfirmed
Access today is straightforward. The hosted preview at the Datasette Agent demo site requires GitHub sign-in to discourage abuse, and the plugin itself is open source for local installation. Costs depend entirely on the model chosen: the demo’s Flash-Lite model is described as fast and inexpensive, frontier models will cost more per question, and local open weight models cost nothing beyond the hardware they run on. Willison has not announced a paid hosted tier, and any suggestion of future commercial plans would be unconfirmed at this stage.
The Advent calendar framing also signals pace. A daily series of Datasette releases through December suggests active development across the ecosystem, with the agent, charts and LLM integration evolving together. Readers should expect interfaces and plugin APIs to change while the project is young, and should pin versions for anything they depend on in production. That is normal for a preview-stage open source tool, and the public demo makes the current state easy to judge.
For teams comparing build-versus-buy options in data tooling, the interesting question is not whether this exact plugin replaces a business intelligence platform. It does not try to. The question is whether conversational, query-transparent exploration belongs inside the tools developers already use, in the same way code assistants moved inside editors. Datasette Agent is a credible, inspectable example of that idea, built in the open by a developer with a long track record in both data publishing and LLM tooling.
There is a longer history behind this release that helps explain its shape. Willison has spent years building Datasette as a way to publish and explore data, and more than three years building the LLM library as a way to call models and tools from the command line and Python. Datasette Agent is where those two projects meet. That lineage shows in the details: the agent is a plugin rather than a separate application, the model layer is interchangeable, and the conversation is exportable. It is tooling built by someone who expects users to inspect, extend and self-host, not merely to subscribe.
The bottom line
The Datasette Agent preview is a small release with a clear idea: let people ask questions of SQLite data in plain language, show them the SQL that answers those questions, and let plugins turn the results into charts with explanations attached. The hosted demo, gated only by GitHub sign-in, makes it easy to try, while the open source plugin and broad model support make it easy to run privately. Developers who work with SQLite should spend twenty minutes with the preview, ask it questions they can verify, and judge for themselves whether query-transparent agents earn a place in their workflow.


