Operate a Quack on Demand FlightSQL gateway through the qod CLI: boot/stop the manager, manage tenants, pools, RBAC and policies, inspect nodes, run SQL.
The open-source, agent-safe data plane for DuckDB and DuckLake. One governed endpoint for people, BI tools and AI agents: table, row and column level security decided inside the engine, branch-based writes a human merges, and Arrow Flight SQL, ADBC, MCP and native DuckDB on the wire, on any cloud or on-prem.
uvx qod@latest serve --demo # the full gateway on your laptop: no install, no Postgres
uvx qod@latest serve ./sales.duckdb # the same gateway over YOUR DuckDB file, persistent + secured
uvx qod@latest serve ./warehouse/ # ...or a directory of parquet / csv
uvx qod@latest serve s3://bucket/data/ # ...or a remote prefix
QOD_ADMIN_[REDACTED:Password] uvx qod@latest serve ./sales.duckdb # set the admin password up front, no prompt
# admin login: user admin; password admin with --demo, otherwise the one chosen on the first run
# (prompted, or QOD_ADMIN_PASSWORD; first run only, never stored; `uvx qod@latest admin reset-password` recovers it)
# admin UI: http://localhost:20900/ui/
# FlightSQL edge: localhost:31338
# DuckDB (native Quack): quack:localhost:9494
# REST data edge (opt-in, QOD_DATA_EDGE_ENABLED=true): http://localhost:20900/data/v1
# Ctrl-C stops the gateway and its nodes; so does `uvx qod@latest stop` from another terminal
One command boots a seeded warehouse with row, column, and table security already live. Connect with tenant=acme + pool=bi (in the admin UI login, set the tenant to acme) and switch principals to watch the policies apply:
alice / demo-alice (analyst) - c_phone comes back masked to ***, and only BUILDING-segment rows appear
acme-admin / demo-acme-admin - same query, full unmasked data
a table alice has no grant on - denied
Client connection strings, printed again by the server at boot (replace <tenant>, <pool>, <user>):
Any DuckDB that carries the quack extension (the CLI, the Python package, an embedded DuckDB) can attach the gateway as a database over DuckDB's own native Quack protocol, no driver in between. The token string is the same set of parameters the JDBC URL takes after ?. Local tables and gateway tables then join in one query; the gateway applies the user's row and column policies to its side, and a table the user has no grant on is refused with the same access denied a FlightSQL client would see.
ATTACH 'quack:localhost:9494' AS qod (TYPE quack, TOKEN 'tenant=acme&pool=bi&user=alice&password=demo-alice');
CREATE TABLE my_segments AS SELECT * FROM read_csv('segments.csv');
SELECT s.label, count(*) AS customers
FROM qod.tpch1.customer c JOIN my_segments s ON c.c_mktsegment = s.segment
GROUP BY 1 ORDER BY 2 DESC;
-- one-shot, no ATTACH
SELECT * FROM quack_query('quack:localhost:9494', 'SELECT count(*) FROM tpch1.orders',
token := 'tenant=acme&pool=bi&user=alice&password=demo-alice');
The DuckDB client speaks plain HTTP to localhost and TLS to any other host; the gateway's Quack listener is plain HTTP by default (QOD_QUACK_TLS_ENABLED=true turns TLS on, reusing the FlightSQL edge's certificate), so from a remote machine either enable TLS or add DISABLE_SSL true to the ATTACH options. Superusers add &superuser=true to the token, exactly like the JDBC parameter.