Coding Agents · [ 3 min read ]

datasette-llm 0.1a11 Speaks to Any OpenAI-Compatible Model Server

Local LLMs via LM Studio, Ollama and llama.cpp can now back Datasette plugins; a demo agent processed 200 repos and 1,889 releases.

Key findings

  1. datasette-llm 0.1a11 adds support for OpenAI-compatible endpoints.
  2. The local example names lmstudio-qwen and qwen/qwen3.8-27b.
  3. The example uses the API base http://localhost:1234/v1.
  4. The agent's SQL query returns 200 repos and 1,889 releases.
  5. The release notes identify llama.cpp as having reached v1.0.0.
Datasette-llm 0.1a11 Adds OpenAI-Compatible Endpoints
Firmbee / pixabay

datasette-llm 0.1a11 adds support for OpenAI-compatible endpoints, letting LM Studio, Ollama and llama.cpp v1.0.0 supply models to Datasette plugins.

The release changes the connection point between Datasette and a model server. Instead of treating each host as a separate integration, the plugin can configure any endpoint that speaks the OpenAI pseudo-standard web protocol. That opens a path to models running on the same machine as Datasette.

What does 0.1a11 change?

datasette-llm remains an intermediate Datasette plugin rather than a model or a standalone agent. Its job is to configure LLMs for other Datasette plugins. With 0.1a11, that configuration can target an LLM hosted anywhere that implements the OpenAI-compatible web protocol.

The release notes name three local servers: LM Studio, Ollama and llama.cpp. They also identify llama.cpp as having just reached v1.0.0. Because each speaks the compatible protocol, Datasette can use those local models without a separate plugin integration for every server.

Takeaway: 0.1a11 standardizes the connection point; it does not replace the model or the surrounding plugin stack.

How does the local setup work?

The notes demonstrate the new path against a local LM Studio server. The command downloads Datasette's content.db, starts Datasette with datasette-agent through uvx, and sets plugins.datasette-llm.default_model through the -s option.

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 configuration names lmstudio-qwen as the model label, qwen/qwen3.8-27b as the model name, and http://localhost:1234/v1 as the API base. The endpoint points to the local LM Studio process. After startup, the command leaves a local server running a Datasette Agent instance powered by the local model.

Takeaway: One endpoint address and two model identifiers start the documented local agent.

What can the agent do with the data?

The release screenshot shows a Chat view with the model label lmstudio-qwen. Its header includes home, root and a menu button, while the panel offers an EXPORT control. The text field says to use # to tag a table or query. The example user asks: "how many repos and how many releases are there?"

The agent calls list_databases_and_tables, displayed as a collapsed tool call, then expands an sql_query tool call. The request selects the content database, sets display to both and runs this SQL:

SELECT (SELECT COUNT(*) FROM repos) AS repo_count,
       (SELECT COUNT(*) FROM releases) AS release_count

The response contains two columns, repo_count and release_count, with one row: 200 and 1889. Datasette repeats those values in a table and adds a View SQL query button. The example agent replies: "There are 200 repos and 1,889 releases in the content database."

The interface keeps the database work visible: it shows the selected database, the count query, the returned columns and the final numbers, rather than presenting only a generated sentence.

Takeaway: The agent inspects tables and returns counted rows, not prose alone.

Why does endpoint support matter in practice?

The release turns model-server choice into configuration, at least for servers that implement the OpenAI-compatible protocol. LM Studio, Ollama and llama.cpp now occupy the same configuration slot because datasette-llm consumes their endpoint details instead of requiring a provider-specific entry.

That makes model and endpoint names operational choices. The example pins a named model, qwen/qwen3.8-27b, and directs the API base to localhost port 1234. The release notes frame server choice as an editable configuration detail rather than a separate integration.

Takeaway: The practical gain is one configuration path for compatible local and hosted endpoints.

The release is narrow, but its mechanism is clear: Datasette can now point its plugins at an OpenAI-compatible model server, including one running on the developer's own machine.

lmstudio.ai (Original)

Price tags

Share this article:

More from James Calloway

James Calloway

Show full bio

Correspondent covering people, launches and day-to-day practice in AI-coding movement at Vibe Coder.

24 articles

Adjacent departments

Next article »