Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

Installing CQLAI

CQLAI is distributed as a single static binary with no dependencies. Choose the installation method that works best for the target environment.

With Go 1.21+ installed:

Terminal window
go install github.com/axonops/cqlai/cmd/cqlai@latest

Download the appropriate binary for your platform from GitHub Releases.

Linux (x86-64):

Terminal window
curl -L https://github.com/axonops/cqlai/releases/latest/download/cqlai-linux-amd64 -o cqlai
chmod +x cqlai
sudo mv cqlai /usr/local/bin/

Linux (ARM64):

Terminal window
curl -L https://github.com/axonops/cqlai/releases/latest/download/cqlai-linux-arm64 -o cqlai
chmod +x cqlai
sudo mv cqlai /usr/local/bin/

macOS (Intel):

Terminal window
curl -L https://github.com/axonops/cqlai/releases/latest/download/cqlai-darwin-amd64 -o cqlai
chmod +x cqlai
sudo mv cqlai /usr/local/bin/

macOS (Apple Silicon):

Terminal window
curl -L https://github.com/axonops/cqlai/releases/latest/download/cqlai-darwin-arm64 -o cqlai
chmod +x cqlai
sudo mv cqlai /usr/local/bin/

Windows: Download cqlai-windows-amd64.exe from the releases page and add it to your PATH.


Terminal window
# Add AxonOps repository
curl -fsSL https://packages.axonops.com/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/axonops-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/axonops-archive-keyring.gpg] https://packages.axonops.com/apt stable main" | sudo tee /etc/apt/sources.list.d/axonops.list
# Install CQLAI
sudo apt update
sudo apt install cqlai
Terminal window
# Add AxonOps repository
sudo tee /etc/yum.repos.d/axonops.repo << 'EOF'
[axonops]
name=AxonOps Repository
baseurl=https://packages.axonops.com/yum
enabled=1
gpgcheck=1
gpgkey=https://packages.axonops.com/gpg.key
EOF
# Install CQLAI
sudo yum install cqlai
Terminal window
brew tap axonops/tap
brew install cqlai

Terminal window
# Pull the image
docker pull axonops/cqlai:latest
# Run interactively
docker run -it --rm axonops/cqlai --host your-cassandra-host

Add CQLAI to a Cassandra development environment:

version: '3.8'
services:
cassandra:
image: cassandra:5.0
ports:
- "9042:9042"
cqlai:
image: axonops/cqlai:latest
depends_on:
- cassandra
command: ["--host", "cassandra"]
stdin_open: true
tty: true
Terminal window
git clone https://github.com/axonops/cqlai.git
cd cqlai
docker build -t cqlai .
docker run -it --rm cqlai --host your-cassandra-host

  • Go 1.21 or later
  • Git
Terminal window
# Clone the repository
git clone https://github.com/axonops/cqlai.git
cd cqlai
# Install dependencies
go mod download
# Build
go build -o cqlai cmd/cqlai/main.go
# Or use Make
make build
# Install to $GOPATH/bin
go install cmd/cqlai/main.go

For development with race detection:

Terminal window
make build-dev

Terminal window
# Check version
cqlai --version
# Show help
cqlai --help
# Test connection (requires running Cassandra)
cqlai --host 127.0.0.1

Expected output:

CQLAI v1.x.x
Modern CQL Shell for Apache Cassandra

PlatformArchitectureStatus
Linuxx86-64 (amd64)Supported
LinuxARM64 (aarch64)Supported
macOSx86-64 (Intel)Supported
macOSARM64 (Apple Silicon)Supported
Windowsx86-64Supported

Terminal window
go install github.com/axonops/cqlai/cmd/cqlai@latest
Terminal window
# APT
sudo apt update && sudo apt upgrade cqlai
# YUM
sudo yum update cqlai
# Homebrew
brew upgrade cqlai

Download the latest binary from releases and replace the existing binary.


Terminal window
rm $(which cqlai)
Terminal window
# APT
sudo apt remove cqlai
# YUM
sudo yum remove cqlai
# Homebrew
brew uninstall cqlai

CQLAI stores configuration in:

  • ~/.cqlai.json - Main configuration
  • ~/.cqlai/history - Command history
  • ~/.cqlai/ai_history - AI command history

To fully remove:

Terminal window
rm -rf ~/.cqlai ~/.cqlai.json

After installation:

  1. Quick Start Guide - Connect to Cassandra
  2. Configuration - Set up connections and AI
  3. Commands Reference - Learn available commands