🎵 Hermes Music Plugin
Music generation plugin for Hermes Agent — powered by Suno AI.
Generate music, compose from MIDI, search & curate your library — all from your agent's toolbox.
Features
- AI Music Generation — Generate songs via Suno AI with style tags, prompts, and model selection (V3.5–V5)
- Dual Track Support — Suno generates 2 tracks per request; both are indexed with independent curation (favorite, archive, play count)
- Local Playback — Play tracks directly via mpg123/ffplay/aplay with auto-stop when switching tracks
- MIDI Composition — Create MIDI files from note names/numbers, then use them as references for AI generation
- Music Library — Browse, search, favorite, archive, and delete songs with per-track granularity
- Multi-Agent — Track which agent created which song with agent_id attribution
- Async Support — Generate in blocking mode (wait for result) or async (poll for status)
Install
# Basic (Suno generation only)
pip install hermes-music
# With MIDI composition support
pip install hermes-music[midi]
# Everything
pip install hermes-music[all]
For local playback, install an audio player:
# Recommended
sudo apt install mpg123
# Alternatives
sudo apt install ffmpeg # provides ffplay
Setup
Add your Suno API key to ~/.hermes/.env:
SUNO_API_KEY=***
Get a key at sunoapi.org.
The plugin auto-discovers via entry points — no config changes needed. After install, start a new Hermes session and the music tools will be available.
Enable the toolset:
hermes tools enable music
Tools
| Tool | Description |
|---|---|
music_generate |
Generate AI music with Suno (blocking or async) |
music_status |
Check generation progress |
music_result |
Get completed audio — all tracks with per-track details |
music_list |
List recent generation tasks |
music_play |
Play a track locally (auto-stops previous). Specify track=1 or track=2 |
music_stop |
Stop the currently playing audio |
music_favorite |
Toggle favorite on a song or specific track |
music_library |
Browse library with filters |
music_search |
Search by title, prompt, or style |
music_delete |
Archive or permanently delete songs/tracks |
midi_create |
Create MIDI from notes (no API key needed) |
music_compose |
Generate music from MIDI reference |
Examples
# In a Hermes chat session:
"Generate an ambient electronic track for coding"
"Play track 2 of that song" # auto-stops track 1
"Stop the music"
"Favorite track 2"
"Archive track 1 — the second one is better"
"Create a MIDI melody with C4 E4 G4 C5 and compose it into jazz piano"
"Search my music library for ambient tracks"
Data Storage
All data lives in ~/.hermes/music/:
~/.hermes/music/
├── audio/ # Downloaded MP3 files (2 tracks per generation)
├── archive/ # Archived/rejected tracks
├── midi/ # Generated MIDI files
└── tasks.json # Task state & library metadata
Dual Track Model
Suno always generates 2 variants per request. Both are downloaded and indexed. Each track has independent:
- Favorite status
- Play count
- Archive status
Use music_play(task_id, track=1) or music_play(task_id, track=2) to audition
both variants, then favorite the best and archive the other.
Development
git clone https://github.com/buckster123/hermes-music-plugin
cd hermes-music-plugin
pip install -e ".[dev]"
pytest
Credits
- Ported from ApexAurum music pipeline
- Powered by Suno AI via sunoapi.org
- Built for Hermes Agent by Hermes (opus 4.6) & Andre
License
MIT
Metadata
Release files for hermes-music 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hermes_music-0.2.0.tar.gz | 29.8 kB | Without provenance | Details for hermes_music-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hermes_music-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for hermes_music-0.2.0-py3-none-any.whl |
Total release size: 53.7 kB
Release files / hermes_music-0.2.0.tar.gz
| Download URL | hermes_music-0.2.0.tar.gz |
|---|---|
| Size | 29.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a92c2b57ce73843d3d60175f4769b1ec4e2f1747e01604f7c8aac1a00d039ef
|
|
BLAKE2b-256 checksum How to use checksums |
fbe8fa4375e6e9f6b133e8e480e169c41d351e504b5c996ed361a366599bc7a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / hermes_music-0.2.0-py3-none-any.whl
| Download URL | hermes_music-0.2.0-py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e60b7bef4a97e70d17ff37a3661d28e48a05898395b360b1a2ec5be1ae1f055
|
|
BLAKE2b-256 checksum How to use checksums |
f228ca53a2f744ec403df4bd94fdd7de2f60f678c56ccce77a90cfb543d96ee5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for hermes-music 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.