Installing QNTX

QNTX is available through multiple installation methods. Choose the one that best fits your workflow. After installation, see Understanding QNTX to learn the core concepts and Configuration System for setup options.

Nix (Recommended)

QNTX uses Nix for reproducible builds and fast binary distribution via Cachix.

Install

# Install QNTX CLI
nix profile install github:teranos/QNTX

# Verify installation
qntx --version

Run Without Installing

# Run directly from GitHub
nix run github:teranos/QNTX -- --help

# Use in a temporary shell
nix shell github:teranos/QNTX

Specific Version

# Install specific version (example)
nix profile install github:teranos/QNTX/v0.16.14

# Run specific version
nix run github:teranos/QNTX/v0.16.14

# List available versions
git ls-remote --tags https://github.com/teranos/QNTX.git

Binary Cache

The first time you use QNTX via Nix, you'll see:

do you want to allow configuration setting 'extra-substituters' to be set to 'https://qntx.cachix.org' (y/N)?

Accept this (type y) for instant binary downloads instead of building from source.

The cache is configured in flake.nix and uses:


GitHub Releases (Pre-built Binaries)

Download pre-built binaries directly from GitHub Releases for all major platforms.

Download Latest Release

Visit the releases page or use the commands below:

Linux:

# amd64
curl -LO https://github.com/teranos/QNTX/releases/latest/download/qntx-VERSION-linux-amd64.tar.gz
tar -xzf qntx-VERSION-linux-amd64.tar.gz
sudo mv qntx /usr/local/bin/

# arm64
curl -LO https://github.com/teranos/QNTX/releases/latest/download/qntx-VERSION-linux-arm64.tar.gz
tar -xzf qntx-VERSION-linux-arm64.tar.gz
sudo mv qntx /usr/local/bin/

macOS:

# Intel (x64)
curl -LO https://github.com/teranos/QNTX/releases/latest/download/qntx-VERSION-darwin-amd64.tar.gz
tar -xzf qntx-VERSION-darwin-amd64.tar.gz
sudo mv qntx /usr/local/bin/

# Apple Silicon (ARM)
curl -LO https://github.com/teranos/QNTX/releases/latest/download/qntx-VERSION-darwin-arm64.tar.gz
tar -xzf qntx-VERSION-darwin-arm64.tar.gz
sudo mv qntx /usr/local/bin/

Windows:

# Download from: https://github.com/teranos/QNTX/releases/latest
# Extract qntx-VERSION-windows-amd64.zip
# Add qntx.exe to your PATH

Verify Download

Each release includes SHA256 checksums:

# Download checksum file
curl -LO https://github.com/teranos/QNTX/releases/latest/download/qntx-VERSION-linux-amd64.tar.gz.sha256

# Verify integrity
sha256sum -c qntx-VERSION-linux-amd64.tar.gz.sha256

Available Platforms:

Note: Replace VERSION with the actual version number (e.g., 0.17.3). See releases page for all versions.


Docker

Multi-architecture images (amd64, arm64) are available on GitHub Container Registry.

Pull and Run

# Latest version (auto-detects architecture)
docker pull ghcr.io/teranos/qntx:latest
docker run ghcr.io/teranos/qntx:latest qntx --help

# Specific version
docker pull ghcr.io/teranos/qntx:0.16.14
docker run ghcr.io/teranos/qntx:0.16.14 qntx --version

Interactive Use

# Start container with shell
docker run -it ghcr.io/teranos/qntx:latest /bin/bash

# Inside container
qntx --help

With Persistent Data

# Mount local directory for persistent storage
docker run -v $(pwd)/data:/data ghcr.io/teranos/qntx:latest qntx --help

From Source

Build QNTX from source using Go and optionally Rust for fuzzy matching optimization.

Prerequisites

Build

# Clone repository
git clone https://github.com/teranos/QNTX.git
cd QNTX

# Build with Rust fuzzy optimization (recommended)
make cli

# Or build without Rust (pure Go)
make cli-nocgo

# Binary created at ./bin/qntx
./bin/qntx --version

Install Locally

# After building
sudo mv ./bin/qntx /usr/local/bin/

# Verify
qntx --version

Package Managers (Coming Soon)

The following package managers are planned:

Homebrew (macOS/Linux)

# Not yet available
brew install teranos/tap/qntx

winget (Windows)

# Not yet available
winget install Teranos.QNTX

APT (Debian/Ubuntu)

# Not yet available
sudo apt install qntx

Verification

After installation, verify QNTX is working:

# Check version
qntx --version

# View help
qntx --help

# Check configuration
qntx am show

Platform Support

PlatformArchitectureMethodStatus
Linuxamd64GitHub Releases, Nix, Docker, Source
Linuxarm64GitHub Releases, Nix, Docker, Source
macOSIntel (x64)GitHub Releases, Nix, Source
macOSApple Silicon (ARM)GitHub Releases, Nix, Source
Windowsx64GitHub Releases, Source
AndroidARMDocker✅ (via Tauri)
iOSARMSource⚠️ (experimental)

Uninstallation

Nix

# List installed packages
nix profile list

# Remove QNTX (replace <index> with actual index from list)
nix profile remove <index>

Docker

# Remove image
docker rmi ghcr.io/teranos/qntx:latest

# Remove all QNTX images
docker images | grep qntx | awk '{print $3}' | xargs docker rmi

Source Install

# Remove binary
sudo rm /usr/local/bin/qntx

Troubleshooting

Nix: "experimental features" error

Enable flakes in your Nix configuration:

mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf

Nix: Slow downloads

If you declined the binary cache prompt, re-run with:

nix profile install github:teranos/QNTX --accept-flake-config

Docker: Architecture mismatch

Explicitly specify architecture:

docker pull --platform linux/amd64 ghcr.io/teranos/qntx:latest
# or
docker pull --platform linux/arm64 ghcr.io/teranos/qntx:latest

Build from source: Missing Rust

If make cli fails due to missing Rust:

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Or use pure Go build
make cli-nocgo

Next Steps

After installing QNTX:

  1. Configuration: See Configuration System
  2. Development: See Nix Development Guide
  3. Segments: Explore QNTX symbols in the Glossary

Getting Help