AI Live Coding via Cursor.
Disclaimer: I am far for being proud of this code, especially the front-end stuff, but I just made this to play around and create some youtube videos, so it is what it is.
- Conda (Anaconda or Miniconda)
- Python 3.11 (recommended)
- An OpenRouter API key
# 1) Create and activate env
conda create -n tunegen python=3.11 -y
conda activate tunegen
# 2) Install deps
pip install -r requirements.txt
# 3) Configure OpenRouter key
export OR_KEY="YOUR_OPENROUTER_API_KEY"
# 4) Run the app
python app.pyNow open:
http://localhost:5000/
The Default is the Automatic Mode. Just enter the vibe and let the AI generate a infinite dj set. It will update once every 10 seconds. Watch out with the cost, since some models (Claude cough cough) burn a hole into your wallet.
Going Manual Mode instead lets you "vibe code" your music, incrementally, or edit the strudel code itself.
I assume no one would read this, but just in case feel free to do with this code what you want. Hit me up on X or youtube @codewithnohands.

