Documentation Index
Fetch the complete documentation index at: https://mintlify.com/duckdb/duckdb/llms.txt
Use this file to discover all available pages before exploring further.
Extension Loading Commands
DuckDB provides two primary commands for working with extensions at runtime:INSTALL extension_name- Downloads and installs an extensionLOAD extension_name- Loads an installed extension into the current session
Installing Extensions
Basic Installation
To install an extension from the DuckDB extension repository:Force Reinstall
If you need to reinstall an extension (e.g., after corruption or to get a newer version):Use
FORCE INSTALL if you encounter errors about corrupted or mismatched extension files.Loading Extensions
After installing an extension, you need to load it to use its functionality:Install and Load Pattern
A common pattern is to install and load together:Autoloading Extensions
DuckDB can automatically load certain known extensions when they’re needed.Autoinstall Known Extensions
To enable automatic installation of known extensions:Extension Repository
Default Repository
Extensions are served from URLs following this pattern:- Repository:
http://extensions.duckdb.org/ - Version:
v0.8.1(DuckDB version identifier) - Platform:
windows_arm64(your platform) - Extension name:
name - File extension:
.duckdb_extension.gz(gzipped extension binary)
Custom Repository
You can configure a custom extension repository:- Hosting internal/proprietary extensions
- Using a local mirror for air-gapped environments
- Testing extensions in development
Autoinstall Repository
For autoinstall operations, you can set a separate repository:Local Extension Storage
Installed extensions are stored locally at:- Config folder:
~/.duckdb/ - Extensions subfolder:
extensions/ - Version:
v0.8.1 - Platform:
osx_arm64 - Extension file:
name.duckdb_extension
Custom Home Directory
You can override the configuration folder location:Loading from Custom Paths
You can load an extension from an explicit file path:- Loading locally built extensions
- Using extensions not in the repository
- Testing development versions
Extension Status
Check which extensions are installed and loaded:Install Modes
Extensions can have different install modes:- STATICALLY_LINKED - Compiled into the DuckDB binary
- NOT_INSTALLED - Available but not installed
- INSTALLED - Downloaded and available locally
Common Workflows
First Time Setup
Enable Autoloading
Using a Custom Repository
Troubleshooting
Extension Not Found
If you get an error that an extension is not found:- Check if the extension exists for your platform
- Verify your DuckDB version is compatible
- Try reinstalling:
FORCE INSTALL extension_name;
Signature Verification Failed
If signature verification fails:~/.duckdb/extensions/
Autoload Not Working
Ensure both settings are enabled:Next Steps
Core Extensions
Learn about the extensions available in DuckDB
Building Extensions
Build your own custom extensions