A fast, keyboard-first database client built with Rust and GPUI.
DBFlux is an open-source database client written in Rust, built with GPUI (Zed's UI framework). It focuses on performance, a clean UX, and keyboard-first workflows.
The long-term goal is to provide a fully open-source alternative to DBeaver, supporting both relational and non-relational databases.

# Install to /usr/local (requires sudo)
curl -fsSL https://raw.githubusercontent.com/0xErwin1/dbflux/main/scripts/install.sh | sudo bash
# Install to ~/.local (no sudo required)
curl -fsSL https://raw.githubusercontent.com/0xErwin1/dbflux/main/scripts/install.sh | bash -s -- --prefix ~/.local
# Download from releases (replace amd64 with arm64 for ARM)
wget https://github.com/0xErwin1/dbflux/releases/latest/download/dbflux-linux-amd64.AppImage
chmod +x dbflux-linux-amd64.AppImage
./dbflux-linux-amd64.AppImage
Available in the AUR:
# Using an AUR helper
paru -S dbflux
# or
yay -S dbflux
Download the .deb package from Releases:
# Replace amd64 with arm64 for ARM
wget https://github.com/0xErwin1/dbflux/releases/latest/download/dbflux-linux-amd64.deb
sudo dpkg -i dbflux-linux-amd64.deb
Download the .rpm package from Releases:
# Replace amd64 with arm64 for ARM
sudo dnf install https://github.com/0xErwin1/dbflux/releases/latest/download/dbflux-linux-amd64.rpm
Using flakes (the default package is a prebuilt binary for Linux x86_64 / aarch64, no compilation):
# Run directly (prebuilt)
nix run github:0xErwin1/dbflux
# Install to profile (prebuilt)
nix profile install github:0xErwin1/dbflux
# Development shell
nix develop github:0xErwin1/dbflux
Build from source instead of using the prebuilt binary:
nix run github:0xErwin1/dbflux#dbflux-source
nix build github:0xErwin1/dbflux#dbflux-source
Nightly builds track main and install side by side with stable (distinct app id, icon, and dbflux-nightly.db database). Consume them from the nightly ref:
nix run github:0xErwin1/dbflux/nightly#dbflux-nightly
nix profile install github:0xErwin1/dbflux/nightly#dbflux-nightly
See docs/RELEASE.md for the channel model.
NixOS / nix-darwin via overlay:
{
inputs.dbflux.url = "github:0xErwin1/dbflux";
outputs = { nixpkgs, dbflux, ... }: {
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
modules = [
({ pkgs, ... }: {
nixpkgs.overlays = [ dbflux.overlays.default ];
environment.systemPackages = [
pkgs.dbflux # prebuilt binary, no local compile
# pkgs.dbflux-source # alternative: build from source
];
})
];
};
};
}
DBFlux for macOS is not signed with an Apple developer certificate. When opening for the first time, you'll see a warning about an "unidentified developer".
dbflux-macos-amd64.dmgdbflux-macos-arm64.dmg# Remove quarantine attribute (allows opening without GUI confirmation)
xattr -cr /Applications/DBFlux.app
# Now you can open it normally
open /Applications/DBFlux.app
dbflux-windows-amd64-setup.exe from Releasesdbflux-windows-amd64.zip from Releasesdbflux.exeNote: The executable is not signed with a Windows code signing certificate. Windows SmartScreen may show a warning. Click "More info" → "Run anyway" to proceed.
# Via install script (Linux)
curl -fsSL https://raw.githubusercontent.com/0xErwin1/dbflux/main/scripts/install.sh | bash -s -- --build
# Or manually
git clone https://github.com/0xErwin1/dbflux.git
cd dbflux
# Recommended: build with the full default feature set
cargo build --release --features sqlite,postgres,mysql,mssql,mongodb,redis,dynamodb,cloudwatch,influxdb,lua,aws,mcp
# Minimal build (relational drivers only, no AI/MCP, no Lua)
cargo build --release --no-default-features --features sqlite,postgres,mysql
./target/release/dbflux
# If installed with install.sh
curl -fsSL https://raw.githubusercontent.com/0xErwin1/dbflux/main/scripts/uninstall.sh | sudo bash
# From ~/.local
curl -fsSL https://raw.githubusercontent.com/0xErwin1/dbflux/main/scripts/uninstall.sh | bash -s -- --prefix ~/.local
# Remove user config and data too
./scripts/uninstall.sh --remove-config
See docs/DRIVERS.md for a full capability matrix and per-driver limitations.
~/.aws/configdbflux mcp) for AI clientsj/k/h/l) throughout the appf to focus, h/l to navigate, Enter to edit/execute, Esc to exitCtrl+BCtrl+Tab / Ctrl+Shift+TabOn Linux, the mold linker is required for local builds: the repo's
.cargo/config.toml links the x86_64-unknown-linux-gnu target with
-fuse-ld=mold to cut link time and memory across the 60+ workspace crates.
The Nix dev shell provides it automatically; for non-Nix setups install it via
your package manager (included below). Windows and macOS use their default
linker and are unaffected.
Ubuntu/Debian:
sudo apt install pkg-config libssl-dev libdbus-1-dev libxkbcommon-dev mold
Fedora:
sudo dnf install pkg-config openssl-devel dbus-devel libxkbcommon-devel mold
Arch:
sudo pacman -S pkg-config openssl dbus libxkbcommon mold
macOS:
# Xcode Command Line Tools (required)
xcode-select --install
Windows:
# Visual Studio Build Tools with C++ workload (required)
# Download from: https://visualstudio.microsoft.com/visual-cpp-build-tools/
cargo build -p dbflux --release
cargo run -p dbflux
cargo check --workspace # Type checking
cargo clippy --workspace -- -D warnings # Lint
cargo fmt --all # Format
cargo test --workspace # Tests
cargo-nextest is the recommended test runner for this
workspace: it runs each test in its own process across a global pool, which is
noticeably faster than cargo test on a workspace this size. The Nix dev shell
provides it; otherwise install it from https://nexte.st/docs/installation.
cargo nextest run --workspace # unit + integration tests
cargo test --doc --workspace # doctests (nextest does not run these)
Live integration tests (normally #[ignore]d) use a different flag under nextest:
cargo nextest run -p dbflux_driver_sqlite --run-ignored all
If you use Nix, you can enter a development shell with all dependencies:
# With flakes
nix develop
# Traditional
nix-shell
MIT & Apache-2.0
$ claude mcp add dbflux \
-- python -m otcore.mcp_server <graph>