Gemini CLI

Gemini CLI supports the Model Context Protocol (MCP), which lets you connect external services directly to your terminal session. Once configured, you can manage your Light Horse account — check balances, view positions, and place trades — without leaving the command line.

Install Gemini CLI

If you haven't already, install Gemini CLI by following the official setup instructions. You will need a Google account and a Gemini API key or access via Google AI Studio.

Configure the MCP Server

Run this command in your terminal. It registers the Light Horse MCP server in ~/.gemini/settings.json:

gemini mcp add --transport http "Light Horse" https://portal.lighthorse.io/mcp

Gemini will open a browser window and ask you to authorize access to your Light Horse account via OAuth. If your browser is already authenticated, it will automatically redirect back so that you don't even see the login window.

Start Trading

Once connected, ask Gemini anything about your account. For example:

  • “Deposit a $1000 and invest it to SPY please.”
  • “How is my Light Horse portfolio doing today?”
  • “Place a limit order for 10 shares of AAPL at $200.”
  • “Show me my latest tax form.”