# Mopidy play autostart

**URL:** <https://discourse.mopidy.com/t/mopidy-play-autostart/1411>\
**Category:** Pi MusicBox (archive)\
**Created:** [November 29, 2016, 9:00pm UTC](https://discourse.mopidy.com/t/mopidy-play-autostart/1411 "2016-11-29T21:00:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![warfish](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@warfish](https://discourse.mopidy.com/u/warfish)\
**Post date:** [November 29, 2016, 9:00pm UTC](https://discourse.mopidy.com/t/mopidy-play-autostart/1411/1 "2016-11-29T21:00:39Z")

</div>

Hi! Is there any way to configure autoload files from the folder when system starts and achieve already enabled shuffle and repeat mode? So after start of the system i need only give “play” command and player starts to play all files in the folder randomly.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [November 30, 2016, 11:32am UTC](https://discourse.mopidy.com/t/mopidy-play-autostart/1411/2 "2016-11-30T11:32:29Z")

</div>

Providing the directory contents have been scanned you should be able to use the existing `autoplay` setting in `/boot/config/settings.ini`. Something like the following would starting playing a specific abum:

```auto
autoplay = "Local media/Albums/Some Album"; mpc random on; mpc repeat on

```

You might have to play around with the quotes there, not sure.

If you want to play a specific folder then it should also be fine. You can use `mpc ls "Local media"` to work out the correct path you need to specify for `autoplay` to locate your files.

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 19, 2026, 11:47am UTC](https://discourse.mopidy.com/t/mopidy-play-autostart/1411/3 "2026-02-19T11:47:24Z")

</div>


