{"id":47737736,"url":"https://github.com/crafter-station/spoti-cli","last_synced_at":"2026-04-02T23:01:03.684Z","repository":{"id":346517095,"uuid":"1190329462","full_name":"crafter-station/spoti-cli","owner":"crafter-station","description":"Spotify Web API from your terminal. Search, recommend, create playlists. Built for AI agents.","archived":false,"fork":false,"pushed_at":"2026-03-24T08:13:45.000Z","size":106,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-25T09:02:47.000Z","etag":null,"topics":["ai-agents","bun","cli","music","playlist","spotify","typescript"],"latest_commit_sha":null,"homepage":"https://spoti-cli.crafter.run","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crafter-station.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-24T07:16:00.000Z","updated_at":"2026-03-24T10:11:50.000Z","dependencies_parsed_at":"2026-03-25T09:03:03.381Z","dependency_job_id":null,"html_url":"https://github.com/crafter-station/spoti-cli","commit_stats":null,"previous_names":["crafter-station/spoti-cli"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/crafter-station/spoti-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Fspoti-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Fspoti-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Fspoti-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Fspoti-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crafter-station","download_url":"https://codeload.github.com/crafter-station/spoti-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Fspoti-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31318132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T21:35:00.834Z","status":"ssl_error","status_checked_at":"2026-04-02T21:34:59.806Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","bun","cli","music","playlist","spotify","typescript"],"created_at":"2026-04-02T23:01:02.797Z","updated_at":"2026-04-02T23:01:03.677Z","avatar_url":"https://github.com/crafter-station.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spoti-cli\n\nSpotify Web API from your terminal. Playback control, personalization, library management, and playlists. Built for AI agents.\n\n## Install\n\n```bash\nbun add -g @crafter/spoti-cli\n```\n\n## Setup\n\n1. Create a Spotify app at [developer.spotify.com/dashboard](https://developer.spotify.com/dashboard/create)\n   - Set redirect URI to `http://127.0.0.1:8888/callback`\n   - Check **Web API**\n2. Authenticate:\n\n```bash\nspoti-cli auth --client-id YOUR_CLIENT_ID\n```\n\nFor playback, library, and personalization commands:\n\n```bash\nspoti-cli auth --upgrade\n```\n\n## Commands\n\n### Playback Control\n\n```bash\nspoti-cli player now --json              # What's playing\nspoti-cli player play --uri spotify:track:ID  # Play a track\nspoti-cli player pause                   # Pause\nspoti-cli player next                    # Skip\nspoti-cli player prev                    # Previous\nspoti-cli player queue spotify:track:ID  # Add to queue\nspoti-cli player devices --json          # List devices\nspoti-cli player volume 75               # Set volume\nspoti-cli player shuffle on              # Toggle shuffle\nspoti-cli player repeat track            # Set repeat mode\n```\n\n### Search \u0026 Discovery\n\n```bash\nspoti-cli search \"Daft Punk\" --type artist --json\nspoti-cli search \"Around the World\" --type track --limit 5\nspoti-cli recommend --seed-genres electronic --energy 0.8 --limit 20 --json\n```\n\n### Personalization\n\n```bash\nspoti-cli top tracks --range short_term --limit 10 --json   # Last 4 weeks\nspoti-cli top artists --range medium_term --limit 10 --json # Last 6 months\nspoti-cli history --limit 20 --json                         # Recently played\n```\n\n### Library\n\n```bash\nspoti-cli library list --limit 20 --json\nspoti-cli library save --tracks ID1,ID2\nspoti-cli library remove --tracks ID1,ID2\nspoti-cli library check --tracks ID1,ID2 --json\n```\n\n### Track \u0026 Artist Info\n\n```bash\nspoti-cli track get ID --json\nspoti-cli artist get ID --json\nspoti-cli artist top-tracks ID --market US --json\nspoti-cli artist albums ID --limit 10 --json\n```\n\n### Playlists\n\n```bash\nspoti-cli create \"Late Night\" --tracks URI1,URI2 --public --json\nspoti-cli playlist list --json\nspoti-cli playlist get ID --json\nspoti-cli playlist add ID --tracks URI1,URI2\n```\n\n### Account\n\n```bash\nspoti-cli me --json\n```\n\n## Tunable Attributes\n\nFine-tune recommendations with audio features:\n\n| Flag | Range | What it controls |\n|------|-------|-----------------|\n| `--energy` | 0.0-1.0 | Intensity |\n| `--danceability` | 0.0-1.0 | Groove factor |\n| `--valence` | 0.0-1.0 | Happy to sad |\n| `--tempo` | BPM | Speed |\n| `--acousticness` | 0.0-1.0 | Acoustic to electronic |\n| `--instrumentalness` | 0.0-1.0 | Instrumental to vocal |\n| `--popularity` | 0-100 | Mainstream factor |\n\n## Real World Use Cases\n\n### Voice-Controlled DJ\n\nBuild a voice-controlled Spotify DJ with real-time STT and AI intent parsing. spoti-cli handles all Spotify operations while the voice layer handles transcription and responses.\n\n```\n\"Play Soda Stereo\"  -\u003e search -\u003e play (1.5s)\n\"Pause\"             -\u003e pause       (0.7s)\n\"Move to TV\"        -\u003e transfer    (0.5s)\n```\n\n### AI Playlist Curation\n\nAnalyze listening patterns and generate playlists from natural language:\n\n```bash\nspoti-cli top artists --range short_term --json     # Taste profile\nspoti-cli history --limit 50 --json                 # Filter out recent\nspoti-cli artist top-tracks ARTIST_ID --json        # Deep cuts\nspoti-cli create \"Deep Cuts\" --tracks URI1,... --json\n```\n\n### Smart Auto-Queue\n\nQueue tracks based on current vibe without interrupting playback:\n\n```bash\nspoti-cli player now --json                          # Current context\nspoti-cli top artists --range short_term --json      # Taste seeds\nspoti-cli search \"artist\" --type track --limit 20 --json\nspoti-cli player queue spotify:track:ID              # Add to queue\n```\n\n### Multi-Device Control\n\nMove playback between devices seamlessly:\n\n```bash\nspoti-cli player devices --json\nspoti-cli player play --device DEVICE_ID\nspoti-cli player volume 30\n```\n\n## AI Agents\n\nEvery command supports `--json`. Pair with Claude, GPT, or any LLM for natural language music control.\n\nInstall the Claude skill:\n\n```bash\nnpx skills add crafter-station/skills --skill spoti-cli\n```\n\n## Stack\n\nBun, TypeScript, Spotify Web API, OAuth2 PKCE\n\n## License\n\nMIT -- [Crafter Station](https://github.com/crafter-station)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrafter-station%2Fspoti-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrafter-station%2Fspoti-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrafter-station%2Fspoti-cli/lists"}