#!/bin/bash # CLI-Anything workbench for an exe.dev VM (https://exe.dev/deploy/cli-anything). # Installs LibreOffice, Blender and Inkscape, their CLI-Anything CLIs and # agent skills, the Claude Code plugin, a ~/workbench folder, and a private # file server for ~/workbench/out on port 8000. Safe to run again. set -euo pipefail CLI_ANYTHING_REF=34f5195 # HKUDS/CLI-Anything commit (Sep 22 2026) HUB_VERSION=0.4.1 # cli-anything-hub on PyPI BLENDER=4.5.16 # Blender LTS; the Blender CLI needs 4.2 or newer APPS="libreoffice blender inkscape" echo "== The apps" sudo apt-get update -q sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -q --no-install-recommends \ libreoffice-calc libreoffice-writer libreoffice-impress inkscape \ fonts-dejavu python3-venv if ! blender --version 2>/dev/null | grep -q "^Blender $BLENDER"; then curl -fsSL "https://download.blender.org/release/Blender${BLENDER%.*}/blender-$BLENDER-linux-x64.tar.xz" \ | sudo tar -xJ -C /opt sudo ln -sfn "/opt/blender-$BLENDER-linux-x64/blender" /usr/local/bin/blender fi echo "== CLI-Anything and its CLIs" SRC=~/cli-anything/src [ -d "$SRC" ] || git clone -q https://github.com/HKUDS/CLI-Anything "$SRC" git -C "$SRC" fetch -q origin git -C "$SRC" checkout -q "$CLI_ANYTHING_REF" [ -x ~/cli-anything/venv/bin/pip ] || python3 -m venv ~/cli-anything/venv harnesses=() for app in $APPS; do harnesses+=("$SRC/$app/agent-harness"); done ~/cli-anything/venv/bin/pip install -q --upgrade "cli-anything-hub==$HUB_VERSION" "${harnesses[@]}" line='export PATH="$HOME/cli-anything/venv/bin:$PATH" CLI_HUB_NO_ANALYTICS=1' for f in ~/.profile ~/.bashrc; do grep -qxF "$line" "$f" || echo "$line" >> "$f"; done echo "== Skills for Claude Code and Codex" mkdir -p ~/.agents/skills ~/.claude/skills for s in cli-hub-meta-skill $(printf 'cli-anything-%s ' $APPS); do rm -rf ~/.agents/skills/"$s" cp -r "$SRC/skills/$s" ~/.agents/skills/ ln -sfn ~/.agents/skills/"$s" ~/.claude/skills/"$s" done echo "== Claude Code and Codex on exe.dev's LLM integration" exeuntu configure claude exeuntu configure codex if ! claude plugin list 2>/dev/null | grep -q 'cli-anything@cli-anything'; then claude plugin marketplace add HKUDS/CLI-Anything claude plugin install cli-anything@cli-anything fi [ -e ~/.codex/skills/cli-anything ] || bash "$SRC/codex-skill/scripts/install.sh" echo "== The workbench" mkdir -p ~/workbench/out [ -d ~/workbench/.git ] || git init -q ~/workbench printf 'out/\n' > ~/workbench/.gitignore cat > ~/workbench/AGENTS.md <<'EOF' # Workbench This VM drives real desktop software from the command line with CLI-Anything. Installed now: LibreOffice (`cli-anything-libreoffice`), Blender (`cli-anything-blender`) and Inkscape (`cli-anything-inkscape`). - Read a CLI's skill in ~/.agents/skills/cli-anything-/SKILL.md before using it, and pass `--json`. - Keep project files in this folder. Write finished files to `out/`, which the owner sees at https://.exe.xyz/ (run `hostname` for the name). - More CLIs: `cli-hub search `, then `cli-hub install `. Install the app it wraps first (`sudo apt-get install ...`), and copy its skill from ~/cli-anything/src/skills/ to ~/.agents/skills/. - Blender: `render execute` only writes `_render_script.py` next to the output; render with `blender --background --python `. Use Cycles or Workbench; there is no GPU. - LibreOffice: Calc formulas currently export as Err:510 (github.com/HKUDS/CLI-Anything/issues/652). Write computed values instead. - Inkscape: if `export png` prints an inkscape command instead of a PNG, run that command. EOF ln -sfn AGENTS.md ~/workbench/CLAUDE.md echo "== File server for ~/workbench/out on port 8000" sudo tee /etc/systemd/system/workbench-files.service >/dev/null </dev/null cli-hub --version for app in $APPS; do command -v "cli-anything-$app"; done sleep 1 curl -fsS -o /dev/null -w 'file server: HTTP %{http_code}\n' http://localhost:8000/