MoodTunes

iriyaverma@iriyaverma

Tell OpenClaw your mood and get music recommendations — maps emotions to Spotify genres, energy, and vibes.

Readme

openclaw-moodtunes

Created by Riya Verma (@iriyaverma)

Tell OpenClaw your mood and get Spotify music recommendations. Maps emotions to genres, energy levels, and vibes — then serves up tracks that match exactly how you're feeling.

Install

bash
openclaw plugins install clawhub:openclaw-moodtunes

Setup

You need free Spotify API credentials:

  1. Go to developer.spotify.com/dashboard
  2. Create an app (any name, any description)
  3. Copy the Client ID and Client Secret
  4. Add them to your OpenClaw config:
json5
{
  plugins: {
    entries: {
      "moodtunes": {
        config: {
          spotifyClientId: "your-client-id",
          spotifyClientSecret: "your-client-secret",
          defaultTrackCount: 5,
        },
      },
    },
  },
}

Agent Tools

ToolDescription
mood_playGet tracks based on a mood (happy, sad, chill, energetic, etc.)
mood_detectDescribe your situation naturally and get auto-detected mood + tracks
mood_mixBlend two moods together for a unique mix
mood_genrePick specific genres directly with optional energy/valence tuning
mood_listShow all supported moods, aliases, and genres

Examples

Just talk naturally to the agent:

  • "I'm feeling chill, play me some music"
  • "Play something for a workout"
  • "I just got promoted, give me some tracks!"
  • "Mix romantic and chill vibes"
  • "Play me some jazz with low energy"
  • "It's a rainy Sunday afternoon, what should I listen to?"

Supported Moods

MoodGenresAlso works with
happypop, dancejoyful, cheerful, excited, ecstatic
sadacoustic, indie, singer-songwriterdepressed, heartbroken, crying, down
energeticedm, dance, electronicpumped, hyped, fired up
chillchill, ambient, lo-firelaxed, calm, peaceful, laid back
angrymetal, hard-rock, punkfurious, mad, rage, frustrated
romanticr-n-b, soul, jazzlove, in love, passionate
focusedclassical, ambient, studystudying, working, productive
partydance, pop, hip-hopcelebration, friday, turn up, lit
nostalgicindie, folk, classic-rockthrowback, memories, missing someone
anxiousambient, new-age, classicalstressed, nervous, worried, overwhelmed
confidenthip-hop, rap, poppowerful, boss, empowered
melancholyindie, alternative, pianobittersweet, longing, wistful
workoutedm, hip-hop, rockgym, running, exercise, training
sleepyambient, new-age, classicaltired, exhausted, bedtime

CLI

bash
openclaw moodtunes moods    # list all supported moods

How It Works

  1. You say your mood (or describe your situation)
  2. The plugin maps it to Spotify audio parameters (energy, valence, danceability, tempo)
  3. It calls the Spotify Recommendations API with matching genres and parameters
  4. You get a table of tracks with direct Spotify links

License

MIT