Skip to main content

Prerequisites

  • Gemini CLI installed
  • Linkly AI Desktop running with the MCP service active
bash Install via npm npm install -g @google/gemini-cli  bash Install     via Homebrew (macOS) brew install google-gemini/gemini-cli/gemini-cli

Configuration Steps

The configuration file supports ${env:VAR_NAME} syntax to read environment variables, avoiding writing the API Key in plaintext:
"Authorization": "Bearer ${env:LINKLY_API_KEY}"

Getting Started

Once configured, launch Gemini CLI and ask questions directly:
gemini
> Search my documents for content about the project architecture

FAQ

Running gemini for the first time will automatically create the ~/.gemini/ directory. You can also create it manually: bash mkdir -p ~/.gemini && touch ~/.gemini/settings.json
Run the /mcp command in Gemini CLI to view the list of loaded MCP servers, and confirm that linkly-ai appears in the list.