This DainAI tool allows users to easily create songs based on prompts they provide to the agent.
-
Install DAIN CLI using the package manager npm:
npm install -g @dainprotocol/cli
-
Install ngrok:
Once you have installed the dependencies, follow these steps:
git clone https://github.com/mawerb/DainButterflyDJ.git
npm ci
cd src
node server.js
-
macOS: In a separate terminal window, run ngrok in the
srcdirectory:ngrok http 3000
-
Windows: In a separate terminal window, run ngrok in the
srcdirectory:ngrok http 3000
This will generate a publicly accessible URL. Copy this URL.
-
macOS: Run the following commands in your terminal:
export ROUTE=<NEW_ROUTE> export DAIN_API_KEY=<DAIN_API_KEY> export SONG_API_KEY=<SUNO_API_KEY>
Replace
<NEW_ROUTE>,<DAIN_API_KEY>, and<SUNO_API_KEY>with the appropriate values. -
Windows: Run the following commands in PowerShell:
$env:ROUTE="<NEW_ROUTE>" $env:DAIN_API_KEY="<DAIN_API_KEY>" $env:SONG_API_KEY="<SUNO_API_KEY>"
Replace
<NEW_ROUTE>,<DAIN_API_KEY>, and<SUNO_API_KEY>with the appropriate values.
npm run dev