For macos users,
brew install sqlite3, then change the bottom part:
/opt/homebrew/opt/sqlite/bin/sqlite3 .load litestream sqlite3_litestreamvfs_init .open file:///my.db?vfs=litestream