Skip to content
DuckDB community extension

llm

Call LLM APIs (OpenAI, Gemini, Cloudflare) directly from SQL with structured output support.

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL llm FROM community;
LOAD llm FROM community;

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

Start with the project’s examples

The maintainer’s documentation is the starting point for usage and sample data.

Open usage documentation →

About this extension

Call LLM APIs directly from SQL with support for OpenAI, Gemini, Cloudflare Workers AI, and local OpenAI-compatible servers.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
midwork-finds-jobs/duckdb-llm
License
MIT
Maintainers
onnimonni
Written in
C++
Build source
38f0c14d28f3
Build definition
Community descriptor