Installation
You can use the Ahnlich CLI either by downloading prebuilt binaries or by building from source.
Download Binariesβ
Prebuilt binaries are available on GitHub Releases: https://github.com/deven96/ahnlich/releases
Extract the Archiveβ
extract the downloaded archiveβ
tar -xvzf <archive-name>.tar.gz
move the binary to a directory in your PATH (optional)β
sudo mv ahnlich-db /usr/local/bin/
verify installationβ
ahnlich-db --version
Run the Database Serverβ
ahblich-db run # Starts the DB server
Example: Run CLI against DB agentβ
./ahnlich-cli ahnlich --agent db --host 127.0.0.1 --port 1369
Run from Source (Development Mode)β
Clone the repo and run from the workspace root:
Clone the repoβ
git clone https://github.com/deven96/ahnlich.git
cd ahnlich
Run the Database Serverβ
cargo run -p db --bin ahnlich-dbΒ run # Starts the DB server
Run the AI Serverβ
cargo run -p ai --bin ahnlich-ai run # Starts the AI server
Run the CLIβ
cargo run -p cli --bin ahnlich-cli -- ahnlich --agent db --host 127.0.0.1 --port 1369
Replace db with ai to connect to the AI server
Running the CLIβ
General command format:
ahnlich-cli ahnlich --agent <agent> --host <host> --port <port>
-
agentβaiordb -
hostβ defaults to127.0.0.1 -
portβ defaults:1370(AI),1369(DB)
Example Usageβ
Connect to DB Agentβ
ahnlich-cli ahnlich --agent db --host 127.0.0.1 --port 1369
Connect to AI Agentβ
ahnlich-cli ahnlich --agent ai --host 127.0.0.1 --port 1370