@@ -363,31 +363,22 @@ install_nodejs() {
363363 log_success" Node.js and package managers installed"
364364}
365365
366- # Install Autonomi CLI (ant )
367- install_ant_cli () {
368- log_step" Installing Autonomi CLI (ant )..."
366+ # Check for existing Autonomi CLI (optional )
367+ check_ant_cli () {
368+ log_step" Checking for Autonomi CLI (optional )..."
369369
370370if command_exists ant; then
371371 log_info" ant CLI is already installed. Version:$( ant --version2> /dev/null|| echo ' unknown' ) "
372+ ANT_AVAILABLE=true
372373else
373- log_info" Installing ant CLI via antup..."
374- curl -sSf https://raw.githubusercontent.com/maidsafe/antup/main/install.sh| sh
375-
376- # Add to PATH if not already there
377- if [[" :$PATH :" != * " :$HOME /.local/bin:" * ]]; then
378- echo ' export PATH="$HOME/.local/bin:$PATH"' >> " $HOME /.bashrc"
379- export PATH=" $HOME /.local/bin:$PATH "
380- fi
381-
382- # Install the client
383- if command_exists antup; then
384- antup client
385- else
386- log_warning" antup installation may have failed. Will continue in public-only mode."
387- fi
374+ log_info" Autonomi CLI not found - daemon will run in public-only mode"
375+ log_info" To enable full functionality later, install ant CLI with:"
376+ log_info" curl -sSf https://raw.githubusercontent.com/maidsafe/antup/main/install.sh | sh"
377+ log_info" antup client"
378+ ANT_AVAILABLE=false
388379fi
389380
390- log_success" Autonomi CLIinstallation completed"
381+ log_success" Autonomi CLIcheck completed"
391382}
392383
393384# Clone or update repository
@@ -474,19 +465,19 @@ setup_configuration() {
474465check_wallet_setup () {
475466 log_step" Checking wallet setup..."
476467
477- if command_exists ant; then
468+ if [[ " $ANT_AVAILABLE " == " true " ]] && command_exists ant; then
478469# Check if ant wallet exists
479470if ant wallet balance& > /dev/null; then
480471 log_success" Autonomi wallet is configured and accessible"
481472 WALLET_CONFIGURED=true
482473else
483- log_warning" Autonomiwallet not configured or notaccessible "
474+ log_warning" AutonomiCLI found but wallet notconfigured "
484475 log_info" The daemon will run in public-only mode (can only download public data)"
485476 WALLET_CONFIGURED=false
486477fi
487478else
488- log_warning " Autonomi CLInot available "
489- log_info" The daemon will run in public-only mode (can only download public data) "
479+ log_info " No Autonomi CLIfound - daemon will run in public-only mode "
480+ log_info" This allows downloading public data without wallet setup "
490481 WALLET_CONFIGURED=false
491482fi
492483}
@@ -565,12 +556,13 @@ test_functionality() {
565556fi
566557
567558# Test public data fetch (this should work even without wallet)
568- log_info" Testing public data fetch..."
559+ log_info" Testing public data fetch (this works without wallet) ..."
569560if mutant get -p a420224971527d61ce6ee21d850a07c243498c95808697e8fac23f461545656933016697d10b805c0fa26b50eb3532b2 /tmp/test_meme.jpg& > /dev/null; then
570- log_success" Public data fetch test successful"
561+ log_success" Public data fetch test successful - MutAnt is working! "
571562 rm -f /tmp/test_meme.jpg
572563else
573- log_warning" Public data fetch test failed (this may be normal if network is unavailable)"
564+ log_info" Public data fetch test skipped (network may be unavailable)"
565+ log_info" This is normal and doesn't indicate a problem with the installation"
574566fi
575567}
576568
@@ -598,8 +590,8 @@ print_final_instructions() {
598590
599591 log_highlight" 🔧 Command Line Interface:"
600592echo " mutant --help # Show CLI help"
601- echo " mutantls # List your stored keys "
602- echo " mutantget -p <address> <file> # Download public data "
593+ echo " mutantget -p <address> <file> # Download public data (works without wallet) "
594+ echo " mutantls # List your stored keys (requires wallet) "
603595echo " "
604596
605597 log_highlight" 🔍 Service Status:"
@@ -617,15 +609,21 @@ print_final_instructions() {
617609if [[" $WALLET_CONFIGURED " == " false" ]]; then
618610 log_warning" ⚠️ Wallet Configuration:"
619611echo " Your daemon is running in PUBLIC-ONLY mode."
612+ echo " This allows downloading public data without any setup."
613+ echo " "
620614echo " To enable full functionality (upload/store data):"
621615echo " "
622- echo " 1. Create a new wallet:"
616+ echo " 1. Install Autonomi CLI:"
617+ echo " curl -sSf https://raw.githubusercontent.com/maidsafe/antup/main/install.sh | sh"
618+ echo " antup client"
619+ echo " "
620+ echo " 2. Create a new wallet:"
623621echo " ant wallet create"
624622echo " "
625- echo " 2 . Or import existing wallet:"
623+ echo " 3 . Or import existing wallet:"
626624echo " ant wallet import YOUR_PRIVATE_KEY"
627625echo " "
628- echo " 3 . Restart the daemon:"
626+ echo " 4 . Restart the daemon:"
629627echo " pkill mutant-daemon"
630628echo " mutant daemon start"
631629echo " "
@@ -726,9 +724,11 @@ main() {
726724 setup_ffmpeg_env
727725 install_rust
728726 install_nodejs
729- install_ant_cli
730727fi
731728
729+ # Always check for ant CLI (doesn't install, just checks)
730+ check_ant_cli
731+
732732 setup_repository
733733 build_rust_workspace
734734 setup_web_interface