One database,
many ways to run it
DuckDB runs inside your application, as a server, on top of your lakehouse,
as a tool for AI agents, and in your browser – with the same SQL everywhere
01
In-process database
DuckDB is a full-fledged SQL database that runs as a library inside your application – the CLI, Python, Java, and many more.
Besides its own database file, DuckDB reads and writes CSV, Parquet, JSON, and other file formats.
Read the blog post02
Server
With the Quack remote protocol, DuckDB runs as a server. Both the client and the server are DuckDB instances.
Quack unlocks multiple writers for DuckDB.
Read the blog postINSERT INTO orders
VALUES (3, 'tool', 29.99);UPDATE orders
SET total = 45.00 WHERE id = 1;03
Lakehouse engine
DuckDB reads and writes lakehouse formats such as DuckLake and Iceberg, including Amazon S3 Tables. This lets multiple DuckDB instances read and write the same tables concurrently.
FROM lake.orders;INSERT INTO lake.orders
VALUES (42, 'duck');04
Agent mode
Since DuckDB 2.0, the CLI has an agent mode that frontloads key information and strips whitespace from tables to save tokens.
Queries prototyped locally also run on a Quack server without any changes to the SQL.
Read the blog postduckdb shop.duckdb -c "
SELECT region, sum(amount) AS revenue
FROM orders
GROUP BY ALL
ORDER BY revenue DESC;"| region:VARCHAR | revenue:DECIMAL(38,2) |
|---|---|
| EMEA | 48211.50 |
| AMER | 39020.75 |
| APAC | 27118.00 |05
Runs everywhere
DuckDB has no external dependencies and compiles to WebAssembly, so it also runs in the browser – try it at shell.duckdb.org.
DuckDB runs everywhere: on phones, on single-board computers such as the Raspberry Pi, and on laptops and servers with Linux, macOS, and Windows.
Read the blog postSELECT country, count(*) AS stations
FROM 'https://blobs.duckdb.org/stations.parquet'
GROUP BY country ORDER BY stations DESC LIMIT 3;┌─────────┬──────────┐
│ country │ stations │
├─────────┼──────────┤
│ NL │ 397 │
│ DE │ 105 │
│ BE │ 48 │
└─────────┴──────────┘- Phones iOS, Android
- Single-board Raspberry Pi
- Laptops macOS, Windows
- Servers x86_64, ARM64