Skip to Content
Sophon Docs
Getting Started

Windows installer

Install Sophon on Windows 10 or 11 with the setup program or the MSI. What it installs, how the Gateway starts, and how to upgrade or remove it.

The Windows installer sets up the whole assistant on one PC: the Gateway (which also serves the Dashboard), the Sophon desktop app, and the CLI. Nothing else needs to be installed first. The .NET runtime is bundled.

Which file to download

Both files install the same program. They differ in how much you choose.

FileUse it when
Sophon-Setup-<version>-win-x64.exeYou want the default: Gateway, desktop app and CLI, in one click. Get it from Download Sophon.
Sophon.Gateway-<version>-win-x64.msiYou want to choose the parts: leave out the desktop app, or add the CLI to your PATH. Get it from Download the Gateway.

The MSI's parts:

PartDefaultWhat it is
Sophon GatewayAlways installedThe Gateway, the Dashboard it serves, the bundled skills and the CLI files
Sophon DesktopOnThe desktop app, with a Sophon Start menu shortcut
Add sophon CLI to PATHOffAdds the CLI folder to the system PATH. The setup .exe never turns this on

Requirements

  • Windows 10 or 11, 64-bit (x64). There is no Arm64 build yet.
  • An administrator account, or an administrator's approval when Windows asks (the program installs for all users in C:\Program Files\Sophon).
  • Port 8470 free on this PC. The Gateway listens there.

Install

1. Download and check the file

Download the installer, then check its SHA-256 against the one shown next to the download button:

Get-FileHash .\Sophon-Setup-2.2.2-win-x64.exe -Algorithm SHA256

The two values must match exactly. If they don't, delete the file and download it again.

2. Run it

Double-click the file. Because the installer is not code-signed yet, Windows SmartScreen may say Windows protected your PC. Choose More info, check the file name, then Run anyway.

3. Accept the license and install

Select I agree to the license terms and conditions (in the MSI, accept the license on its own page, then choose the parts), choose Install, and approve the administrator prompt.

4. Launch Sophon

On the last page choose Launch (or leave Launch Sophon now selected in the MSI). This opens the desktop app, or your browser at http://localhost:8470 if you left the desktop app out.

The desktop app shows a connect page until the Gateway answers (usually a few seconds), then opens the Dashboard. On the very first launch it plays a short intro first. The Dashboard's Setup Wizard then asks for your first model provider: continue with Configuration.

What the installer sets up

WhatWhere
Gateway and DashboardC:\Program Files\Sophon\gateway\
CLIC:\Program Files\Sophon\gateway\cli\
Desktop appC:\Program Files\Sophon\desktop\Sophon.exe
Your data: settings, conversations, memory, credentials%USERPROFILE%\.sophon\
Gateway logs%USERPROFILE%\.sophon\logs\sophon-YYYYMMDD.log (one per day, 14 kept)

How the Gateway runs

The Gateway is not a Windows service. The installer registers a scheduled task, \Sophon\SophonGateway, for the user who is signed in while it installs, and starts it right away. After that it starts each time that user signs in, runs in the background with no window, and restarts itself up to three times if it stops with an error.

It runs as you, not as an administrator or as SYSTEM, so your data folder and the credential vault belong to your account. It listens on http://localhost:8470 and is reachable only from this PC.

Only the account that was signed in during the install gets the task. Other Windows accounts on the same PC do not start a Gateway of their own.

Start, stop and restart the Gateway

With the desktop app installed, right-click the Sophon icon in the system tray: it shows the Gateway's status and has Start Gateway, Restart Gateway and Stop Gateway. (The icon may be in the tray overflow; pin it if you use it often.)

From a terminal:

schtasks /Query /TN "Sophon\SophonGateway"   # status
schtasks /Run   /TN "Sophon\SophonGateway"   # start
schtasks /End   /TN "Sophon\SophonGateway"   # stop

To check that it is answering, open http://localhost:8470/api/health.

The CLI

The CLI is installed with the Gateway either way, in C:\Program Files\Sophon\gateway\cli\. On Windows its file is Sophon.CLI.exe, so the command is Sophon.CLI, not sophon:

  • If you chose Add sophon CLI to PATH in the MSI, run Sophon.CLI from any new terminal.
  • Otherwise run it by its full path: & "C:\Program Files\Sophon\gateway\cli\Sophon.CLI.exe".

Run from the install folder, it finds the local Gateway on port 8470 by itself. If you would rather type sophon, install the .NET global tool instead and point it at http://localhost:8470.

Unattended install

The setup program accepts the standard switches:

.\Sophon-Setup-2.2.2-win-x64.exe /quiet /norestart /log "$env:TEMP\sophon-install.log"

Run it while signed in as the person who will use Sophon: the Gateway task is created for whoever is signed in at the console, and with /quiet nothing is launched at the end.

Upgrade

Download the newer installer and run it over the old one. It replaces the program files and keeps %USERPROFILE%\.sophon, so your settings, memory and conversations carry over. Installing an older version over a newer one is refused.

Uninstall

Open Settings → Apps → Installed apps, find Sophon, and choose Uninstall. This stops the Gateway, removes the scheduled task, the program files, the Start menu shortcut and the PATH entry.

Your data in %USERPROFILE%\.sophon is kept, so a later install picks up where you left off. To remove it as well, delete that folder after uninstalling.

Troubleshooting

The Dashboard doesn't open, or the desktop app keeps showing the connect page. Check the task with schtasks /Query /TN "Sophon\SophonGateway". If it doesn't exist, the installer couldn't register it (this doesn't fail the install). A repair doesn't register it again, so uninstall Sophon and install it again while signed in as yourself; your data folder is kept. If it exists but isn't running, start it with schtasks /Run, then look at the newest file in %USERPROFILE%\.sophon\logs\.

Port 8470 is already in use. The Gateway logs could not bind ... the port is already in use and exits. Find and stop the other program, or stop the task and run the Gateway on another port for this session:

schtasks /End /TN "Sophon\SophonGateway"
& "C:\Program Files\Sophon\gateway\Sophon.Gateway.exe" --urls http://localhost:8471

It runs in the background with no window. Open http://localhost:8471 in your browser, or enter that address under Connect to a different Gateway on the desktop app's connect page.

Two Gateways? Only one runs per account: a second copy started by the task exits quietly. Open the running one from the desktop app, the tray, or http://localhost:8470.

More in Common Issues and Diagnostic Logs.