# PC-Pilot — Control your PC from Gladys

**URL:** <https://community.gladysassistant.com/t/pc-pilot-controlez-votre-pc-depuis-gladys/10154>\
**Category:** Tutoriels\
**Created:** [March 24, 2026, 11:40am UTC](https://community.gladysassistant.com/t/pc-pilot-controlez-votre-pc-depuis-gladys/10154 "2026-03-24T11:40:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David-Digitis](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/david-digitis/32/20537_2.png) [@David-Digitis](https://community.gladysassistant.com/u/David-Digitis)\
**Post date:** [March 24, 2026, 11:40am UTC](https://community.gladysassistant.com/t/pc-pilot-controlez-votre-pc-depuis-gladys/10154/1 "2026-03-24T11:40:27Z")

</div>

Hello everyone!

I’ve developed a small tool to control a Windows or Linux PC directly from Gladys scenes: **\_\PC-Pilot\\_**.

It runs as a tray icon on your PC and exposes a local REST API that Gladys can call via HTTP requests.

**## What does it do?**

\- **\_\Shut down\\_** , **\_\restart\\_** , **\_\sleep\\_** , **\_\hibernate\\_** or **\_\lock\\_** your PC

\- **\_\Start or stop applications\\_** (Firefox, VLC, etc.)

\- **\_\Run custom commands\\_** (backup scripts, etc.)

**## How does it work**

1\. Install PC-Pilot on the PC to control

2\. Add your Gladys IP to the allowed IPs (from the tray menu, no need to edit a file)

3\. Copy the API token from the tray menu

4\. Create a Gladys scene with an HTTP request action

Example to lock your PC:

| Champ | Valeur |

| ----- | ------ |

| Méthode | \`POST\\` |

| URL | \`http://\u003cip-du-pc\u003e:7042/api/v1/system/lock\\` |

| Header | \`Authorization\\` = \`Bearer \u003cyour-token\u003e\\` |

| Header | \`Content-Type\\` = \`application/json\\` |

| Body | \`{}\\` |

_\u003e Don’t forget the_ \`{}\\` _in the body — Gladys requires it even when the API doesn’t need it._

**## Use cases**

\- «&nbsp;Turn off the PC&nbsp;» by voice command

\- Lock the PC when leaving the house

\- Launch an application when arriving home

\- Run a scheduled backup

**## Security**

Everything stays on your local network. Token authentication, IP whitelist, rate limiting, no shell injection possible.

**## Links**

\- **\_\GitHub\\_** : [GitHub - david-digitis/pc-pilot: REST service to control a Windows/Linux PC from a home automation system (Gladys Assistant). Electron tray + Fastify API. · GitHub](https://github.com/david-digitis/pc-pilot)

\- **\_\Download (Windows)\\_** : [Releases · david-digitis/pc-pilot · GitHub](https://github.com/david-digitis/pc-pilot/releases)

Your feedback is welcome!

---

<div class="post-metadata">

**Author:** ![David-Digitis](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/david-digitis/32/20537_2.png) [@David-Digitis](https://community.gladysassistant.com/u/David-Digitis)\
**Post date:** [March 24, 2026, 12:58pm UTC](https://community.gladysassistant.com/t/pc-pilot-controlez-votre-pc-depuis-gladys/10154/2 "2026-03-24T12:58:09Z")

</div>

Linux build available. Tested on Fedora / Wayland

---

<div class="post-metadata">

**Author:** ![Steph38230](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@Steph38230](https://community.gladysassistant.com/u/Steph38230)\
**Post date:** [March 29, 2026, 9:01pm UTC](https://community.gladysassistant.com/t/pc-pilot-controlez-votre-pc-depuis-gladys/10154/3 "2026-03-29T21:01:58Z")

</div>

Thanks, nice little app 🙂

Usage - Automatic standby when I leave the house or when I go to bed

---

<div class="post-metadata">

**Author:** ![David-Digitis](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/david-digitis/32/20537_2.png) [@David-Digitis](https://community.gladysassistant.com/u/David-Digitis)\
**Post date:** [March 29, 2026, 9:21pm UTC](https://community.gladysassistant.com/t/pc-pilot-controlez-votre-pc-depuis-gladys/10154/4 "2026-03-29T21:21:11Z")

</div>

With pleasure!

---

<div class="post-metadata">

**Author:** ![bjm](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bjm/32/1753_2.png) [@bjm](https://community.gladysassistant.com/u/bjm)\
**Post date:** [March 30, 2026, 8:24am UTC](https://community.gladysassistant.com/t/pc-pilot-controlez-votre-pc-depuis-gladys/10154/5 "2026-03-30T08:24:07Z")

</div>

Thanks @David-Digitis , you’re very productive !
