Usage

Usage

  • Launch Lightrail initially as you would normally start an application on your platform (i.e. from your application launcher). Consider adding it to your startup items (OS X (opens in a new tab), Gnome (opens in a new tab)), so that it automatically starts on boot.
  • When Lightrail is running on your system, it can be activated at any time by pressing the keyboard combination Cmd/Ctrl-Shift-Space.
  • Use the up- and down-arrow keys to browse actions, and hit enter/return to select one (while in 'Choose an action' mode).
  • To change the action afterwards, press esc or @, or click on the current action
  • After selecting an action, enter the prompt (or any other required arguments). Your prompt can include tokens, which pull in additional context from external sources:
    • Type the forward-slash at any point in a prompt (/) to open the Tokens menu. Use the arrow keys to select a token and hit enter to insert that token into your prompt.
    • In general, try to be explicit about what sources of content you'd like to include for best results.
  • Cmd/Ctrl-Up and Cmd/Ctrl-Down cycle through the prompt history.
💡

By default, Lightrail uses a lightrail.ai-provided gateway to access OpenAI's LLMs. If you'd like to switch to using your own API key and accessing the OpenAI API directly, you can configure that in Settings (see here for more info)