MyAgens
MyAgens
Installation

How to install MyAgens on Windows

Updated Jul 4, 2026 2 min

MyAgens installs on Windows with a couple of PowerShell commands. The installer pulls in what it needs (Node, git, the Claude CLI) with winget, then finishes on the same guided setup page in your browser as on macOS and Linux, and registers MyAgens as a Windows service.

Requirements

  • Windows 10 or Windows 11 with PowerShell 5.1 or newer.
  • An Administrator PowerShell. The installer needs admin rights and will not elevate itself through the pipe; it stops and tells you if you are not elevated. See run PowerShell as administrator.
  • A Telegram account and a way to reach Claude (a Pro/Max subscription or an API key). The browser setup walks you through creating the bot; only the terminal wizard needs a bot token and your user ID ready up front. See Set up MyAgens in five minutes.

Install

Open an Administrator PowerShell and run these two lines:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
$env:MYAGENS_SETUP="browser"; irm https://myagens.com/install.ps1 | iex

The first line allows scripts for this one session only (it is not saved and does not change your machine's policy), so the installer and the npm and Claude helper scripts can run. The second line fetches the installer with the browser setup turned on: it installs the dependencies, clones and builds, and asks for your Windows password up front. The password is needed for the background service at the end, and asking early means nothing prompts behind your back while you are in the browser. Then the setup page opens: create your bot with BotFather's Mini App, press START so it recognizes you, pick your profile, and connect Claude. When you finish, the installer registers the service and the success page signs you in the moment it comes up.

Prefer to stay in the terminal?

Drop the $env:MYAGENS_SETUP part and the classic wizard asks everything inline instead:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
irm https://myagens.com/install.ps1 | iex

It asks for your bot token, your user ID, and how you reach Claude, right in the window.

After installing

The browser setup finishes signed in to your panel. The terminal wizard prints the panel URL (by default http://127.0.0.1:8787) and a login link instead. Either way MyAgens runs as a Windows service in the background and restarts on crash. To drive it from Telegram, finish Set up MyAgens in five minutes.

Updating

Re-run the installer, or use the update script in your install folder. Your fleet and settings are preserved.

Uninstalling

See How to uninstall MyAgens: an elevated PowerShell script removes the service, and can delete the install folder for you.

If the script is blocked

If PowerShell still blocks the script, confirm you ran the Set-ExecutionPolicy line above in the same window, and that the window is elevated. You can also clone the repo from GitHub and run the installer locally. If MyAgens installs but will not launch, see MyAgens will not start.