Connect with Claude
StrudelHub includes a downloadable Claude Skill that teaches Claude how to create sessions, push Strudel code, and control playback through the API. Once installed, you can ask Claude to make music and it will drive StrudelHub directly.
1. Download the skill
Open any session and click the AI Skill button (robot icon) in the toolbar. In the panel that appears, click the .skill button to download the strudel-hub-session.skill file. The file is pre-configured with your server's URL.
2. Add to Claude
In Claude (claude.ai), add the downloaded .skill file as a skill. Claude will now understand the StrudelHub API and know how to interact with it.
3. Provide your API key
When chatting with Claude, provide your API key so it can authenticate with your StrudelHub account. Claude will use it in the Authorization: Bearer header for all requests.
4. Start making music
Ask Claude to create a session and compose music. For example:
- "Create a new session and make a lo-fi hip hop beat"
- "Write a techno track with a 909 drum pattern"
- "Make ambient music with piano and reverb"
Claude will create the session, give you the URL to open in your browser, push Strudel code, and start playback — all through the API.
Tip: The skill includes instructions for Claude to check the session status before each update, so it won't overwrite any edits you make in the browser.