Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kitephp/CLIProxyAPI-Tray/llms.txt
Use this file to discover all available pages before exploring further.
CLIProxyAPI Tray uses a fixed set of file paths relative to the installation directory. This page lists every path the tray reads or writes and explains when each one is used.
Install directory
| Install method | Default location |
|---|
| One-line PowerShell installer | %USERPROFILE%\.cli-proxy-api-tray\ |
| Clone repository | The cloned repo directory |
-InstallDir flag | Custom path you specified |
File paths
| Path | Description |
|---|
{install-dir}\cli-proxy-api.ps1 | Main tray application script |
{install-dir}\cli-proxy-api.vbs | Silent launcher used by the desktop shortcut |
{install-dir}\cli-proxy-api.ico | Tray icon |
{install-dir}\install.ps1 | Installer script |
{install-dir}\create-shortcut.bat | Creates or updates the desktop shortcut |
{install-dir}\config.example.yaml | Config template — copied to config.yaml on first run |
{install-dir}\config.yaml | CLIProxyAPI configuration (your live config) |
{install-dir}\settings.json | Tray state: version, arch, toggle preferences (primary) |
%LOCALAPPDATA%\CLIProxyAPI_Tray\settings.json | Tray state fallback (used when install dir is not writable) |
{install-dir}\versions\ | Root directory for downloaded CLIProxyAPI binaries |
{install-dir}\versions\{tag}\cli-proxy-api.exe | CLIProxyAPI binary for a specific version |
{install-dir}\logs\ | CLIProxyAPI log files (created when logging-to-file: true) |
Desktop CLIProxyAPI Tray.lnk | Shortcut created by installer or create-shortcut.bat |
Settings fallback behavior
The tray tries to write settings.json to the install directory first. If that directory is not writable (for example, if you installed to Program Files), it automatically falls back to:
%LOCALAPPDATA%\CLIProxyAPI_Tray\settings.json
A balloon tip notification is shown the first time the fallback is used. On subsequent saves, the tray remembers to write to the fallback path.
Environment variables used
| Variable | Used for |
|---|
%USERPROFILE% | Default install directory for the one-line installer |
%LOCALAPPDATA% | Fallback settings.json location |
%APPDATA% | Secondary fallback if %LOCALAPPDATA% is unavailable |
%TEMP% | Temporary directory for downloads during updates |
%SystemRoot% | Locating powershell.exe (e.g. %SystemRoot%\System32\WindowsPowerShell\v1.0\) |
Desktop shortcut
The shortcut targets wscript.exe with cli-proxy-api.vbs as the argument. The VBS launcher resolves pwsh.exe (PowerShell 7) or falls back to powershell.exe (Windows PowerShell 5.1), then runs cli-proxy-api.ps1 with -WindowStyle Hidden so no console window appears.
Use Open → Folder from the tray menu to open the install directory in Windows Explorer without needing to remember the path.