Multi-project workspaces. Split panes. AI built in. One app for everything you run.
curl -fsSL https://megaterm.ai/install.sh | bash
powershell -c "irm https://megaterm.ai/install.ps1 | iex"
#!/bin/bash
set -euo pipefail
REPO="megaterm/megaterm-app"
APP_NAME="MegaTerm"
echo ""
echo " Installing $APP_NAME..."
echo ""
# Detect architecture
ARCH=$(uname -m)
case "$ARCH" in
x86_64) ARCH_LABEL="x64" ;;
arm64) ARCH_LABEL="arm64" ;;
aarch64) ARCH_LABEL="arm64" ;;
*) echo "Unsupported architecture: $ARCH"; exit 1 ;;
esac
# Get latest release download URL
DOWNLOAD_URL=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" \
| grep "browser_download_url.*${ARCH_LABEL}\.dmg" \
| head -1 \
| cut -d '"' -f 4)
if [ -z "$DOWNLOAD_URL" ]; then
echo "Error: Could not find a download for $ARCH_LABEL"
echo "Check https://github.com/$REPO/releases for available builds."
exit 1
fi
TMPDIR=$(mktemp -d)
DMG_PATH="$TMPDIR/$APP_NAME.dmg"
echo " Downloading $APP_NAME ($ARCH_LABEL)..."
curl -fSL "$DOWNLOAD_URL" -o "$DMG_PATH"
echo " Mounting disk image..."
MOUNT_DIR=$(hdiutil attach "$DMG_PATH" -nobrowse -quiet | tail -1 | awk '{print $NF}')
echo " Installing to /Applications..."
cp -R "$MOUNT_DIR/$APP_NAME.app" /Applications/ 2>/dev/null || {
echo " Need sudo to install to /Applications..."
sudo cp -R "$MOUNT_DIR/$APP_NAME.app" /Applications/
}
echo " Cleaning up..."
hdiutil detach "$MOUNT_DIR" -quiet
rm -rf "$TMPDIR"
echo ""
echo " $APP_NAME installed successfully!"
echo " Open it from /Applications or run: open -a $APP_NAME"
echo ""