{"repo": "bat52/herve", "files": {"llm/install_openclaw.sh": {"02f0e474107480258a7fbfea7c6485757ba5af52": {"t": 1786068349.2644596, "n": 1293, "h": "b3de12af8640e107", "c": "#!/usr/bin/env bash\nset -e\n\n# ---- Config ----\nREPO_URL=\"https://github.com/openclaw/openclaw.git\"\nINSTALL_DIR=\"$HOME/openclaw\"\nPYTHON_VERSION=\"3.12\"\n\necho \"[1/6] Installing system dependencies...\"\nsudo apt update\nsudo apt install -y \\\n git \\\n curl \\\n build-essential \\\n python${PYTHON_VERSION} \\\n python${PYTHON_VERSION}-venv \\\n python${PYTHON_VERSION}-dev \\\n pipx\n\necho \"[2/6] Cloning OpenClaw...\"\nrm -rf \"$INSTALL_DIR\"\ngit clone \"$REPO_URL\" \"$INSTALL_DIR\"\ncd \"$INSTALL_DIR\"\n\necho \"[3/6] Creating virtual environment...\"\npython${PYTHON_VERSION} -m venv .venv\nsource .venv/bin/activate\n\necho \"[4/6] Upgrading pip...\"\npip install --upgrade pip setuptools wheel\n\necho \"[5/6] Installing Python dependencies...\"\nif [ -f requirements.txt ]; then\n pip install -r requirements.txt\nelif [ -f pyproject.toml ]; then\n pip install .\nelse\n echo \"No dependency file found. Install manually.\"\nfi\n\necho \"[6/6] Setup environment variables...\"\ncat < .env\n# Example config\nOPENCLAW_MODEL=deepseek-coder\nOPENCLAW_API_KEY=$DEEPSEEK_API_KEY\nEOF\n\necho \"\"\necho \"✅ OpenClaw installed in $INSTALL_DIR\"\necho \"\"\necho \"To start:\"\necho \" cd $INSTALL_DIR\"\necho \" source .venv/bin/activate\"\necho \" export \\$(cat .env | xargs)\"\necho \" python main.py # or entrypoint defined by repo\""}}}}