Tony Ennis
December 28, 2025
Setting up Claude Code on a VM with Google Drive
    • Goal: Be able to have Claude Code do increasingly more stuff for me as a general purpose agent.

    • Pre Requisite: It can access my files (or a subset of them), for example legal documents, spreadsheets, returns etc.

    • Background: I want those files to be stored on Google Drive, because A) Several of them are Google files that need to be shareable, and B) I want to keep everything in the cloud for data safety & portability

    • Additional Requirement: I'd like to primarily use "Cloud Claude", but I'd also like to be able to use it locally from time to time - so ideally it would be "operating" on the same set of files whether running locally or remotely, and I wouldn't need to think about that.

    • Challenge: How do I share the data between my local machine, and the virtual machine where Claude is running.

    • Explored: Syncthing, rclone. Decided on insync because I want something that's seamless to set up and just works


  • Steps

    • Create a folder in Google Drive - I called mine "Universe". Copy everything in here that you'd like to ultimately use with the agent.

    • Purchase a new VM on Hetzner or Contabo

    • Install & Set up insync-headless (instructions here)

    • curl -L -o insync-headless.deb https://cdn.insynchq.com/builds/linux/3.2.7.10758/insync-headless_3.2.7.10758-buster_amd64.deb
      sudo apt-get install ./insync-headless.deb
    • Start it

    • insync-headless start
    • Get a sync auth code

    • Add the account

    • insync-headless account add -p /sync -c gd -a YOURCODEHERE 
    • Set up selective sync - you don't want it syncing your entire G drive

    •  insync-headless selective-sync
    • Use the interactive UI to select just the "Universe" folder

    • That's it. You should now have a folder in your G Drive being synced to your remote VM


  • Website Page