Skip to main content

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 methodDefault location
One-line PowerShell installer%USERPROFILE%\.cli-proxy-api-tray\
Clone repositoryThe cloned repo directory
-InstallDir flagCustom path you specified

File paths

PathDescription
{install-dir}\cli-proxy-api.ps1Main tray application script
{install-dir}\cli-proxy-api.vbsSilent launcher used by the desktop shortcut
{install-dir}\cli-proxy-api.icoTray icon
{install-dir}\install.ps1Installer script
{install-dir}\create-shortcut.batCreates or updates the desktop shortcut
{install-dir}\config.example.yamlConfig template — copied to config.yaml on first run
{install-dir}\config.yamlCLIProxyAPI configuration (your live config)
{install-dir}\settings.jsonTray state: version, arch, toggle preferences (primary)
%LOCALAPPDATA%\CLIProxyAPI_Tray\settings.jsonTray 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.exeCLIProxyAPI binary for a specific version
{install-dir}\logs\CLIProxyAPI log files (created when logging-to-file: true)
Desktop CLIProxyAPI Tray.lnkShortcut 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

VariableUsed 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.

Build docs developers (and LLMs) love