Skip to main content

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

Legendary authenticates against Epic’s OAuth2 API and stores the resulting credentials locally in ~/.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

Logging Out

To delete all stored credentials and session data:
legendary auth --delete
After running this command, any subsequent operation that requires authentication will prompt you to log in again.

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.

Build docs developers (and LLMs) love