Legendary authenticates against Epic’s OAuth2 API and stores the resulting credentials locally inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/legendary-gl/legendary/llms.txt
Use this file to discover all available pages before exploring further.
~/.config/legendary/. Every time Legendary runs a command that requires a valid session, it checks the stored credentials and prompts you to re-authenticate if they have expired. The simplest way to log in is to run legendary auth — the exact experience depends on which optional packages are installed.
Login Methods
- WebView (Recommended)
- Exchange Token / Session ID
- Import from EGL
If you have the optional To force the manual flow even when
pywebview package installed, legendary auth opens an embedded browser window pointed at the Epic Games login page. Once you complete the login flow in that window, Legendary captures the exchange token automatically — no copying or pasting required.WebView support on Windows requires the
edgechromium or cef renderer. The pywebview Qt engine may not work correctly, and WebView is currently unsupported on macOS. Install the webview extra with pip install legendary-gl[webview]. On Ubuntu you may also need python3-gi-cairo.pywebview is available, pass --disable-webview:Logging Out
To delete all stored credentials and session data:Stored Credentials
Legendary stores your OAuth tokens in~/.config/legendary/. On Linux and macOS the directory is created with user-only permissions. You can override the config directory location by setting the LEGENDARY_CONFIG_PATH environment variable, or by setting XDG_CONFIG_HOME (Linux).
Credentials are validated on each run. If a stored token has expired, Legendary will notify you and you will need to run
legendary auth again to obtain a fresh session.