interplane.Get Omega
Read in your language

aien-sovereign-core

Autonomous sovereign intelligence engine and runtime core for NVIDIA DGX Spark

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core / install.sh

78 lines · 2493 bytes Raw Blame History
1#!/usr/bin/env bash
2set -euo pipefail
3
4# AIEN Sovereign Core Universal Multi-OS Installer
5# Free and open-source for humanity. Zero telemetry. Zero subscriptions.
6
7echo "=================================================================="
8echo " ⚡ AIEN Sovereign Core: Multi-OS Universal Installer "
9echo "=================================================================="
10
11OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
12ARCH="$(uname -m)"
13
14case "$ARCH" in
15 x86_64|amd64) TARGET_ARCH="x86_64" ;;
16 aarch64|arm64) TARGET_ARCH="aarch64" ;;
17 *) echo "Error: Unsupported CPU architecture: $ARCH"; exit 1 ;;
18esac
19
20case "$OS" in
21 linux) TARGET_OS="linux" ;;
22 darwin) TARGET_OS="macos" ;;
23 *) echo "Error: Unsupported operating system: $OS"; exit 1 ;;
24esac
25
26echo "[*] Detected Platform: $TARGET_OS ($TARGET_ARCH)"
27
28BIN_DIR="$HOME/.local/bin"
29CONFIG_DIR="$HOME/.config/sovereign"
30IMPRINT_DIR="$CONFIG_DIR/imprints/en2"
31
32mkdir -p "$BIN_DIR" "$CONFIG_DIR" "$IMPRINT_DIR"
33
34# Ensure ~/.local/bin is in PATH
35if [[ ":$PATH:" != *":$BIN_DIR:"* ]]; then
36 export PATH="$BIN_DIR:$PATH"
37fi
38
39echo "[*] Initializing Sovereign Operator Profile..."
40if [ ! -f "$CONFIG_DIR/operator.toml" ]; then
41 GIT_NAME="$(git config user.name 2>/dev/null || echo 'Sovereign Operator')"
42 GIT_EMAIL="$(git config user.email 2>/dev/null || echo 'operator@local')"
43
44 cat << EOF > "$CONFIG_DIR/operator.toml"
45[operator]
46name = "$GIT_NAME"
47email = "$GIT_EMAIL"
48handle = "operator"
49sign_commits = false
50
51[engine]
52mode = "max"
53api_base_url = "http://127.0.0.1:18006/v1"
54api_key = ""
55model_id = "atlas-lightning-omni"
56max_port = 18006
57context_window = 32768
58temperature = 0.7
59EOF
60 echo "[+] Generated default configuration at $CONFIG_DIR/operator.toml"
61else
62 echo "[+] Existing configuration found at $CONFIG_DIR/operator.toml"
63fi
64
65echo "[*] Installing Free EN2 Trinity Imprint..."
66if [ -d "imprints/en2-trinity" ]; then
67 cp -r imprints/en2-trinity/* "$IMPRINT_DIR/"
68 echo "[+] EN2 Trinity Imprint installed locally to $IMPRINT_DIR"
69fi
70
71echo "=================================================================="
72echo " ✓ Installation complete. Sovereign computing ready on local silicon."
73echo " - Configuration: $CONFIG_DIR/operator.toml"
74echo " - Binaries installed to: $BIN_DIR"
75echo " - EN2 Imprint: $IMPRINT_DIR"
76echo " To launch cockpit: spark-cockpit"
77echo " To re-initialize: spark-rsi init"
78echo "=================================================================="