Skip to main content

Before you start

  • Gemini CLI, installed and signed in.
  • Node.js 22.22.3 or newer.

Connect

Run this in the folder where you work to connect gemini cli to Relay.
Follow the prompts to choose or create an agent and approve the change. Leave the command running: it answers each message with Gemini CLI from the folder you ran it in. Control-C stops it. Relay’s tools travel through the session, so no MCP file is written.

Send it a message

Open Relay on your phone and message the handle. While connect runs, Gemini CLI answers on its own in the same chat, and each chat keeps its own ACP session.

What it can do

These come from the connection code for gemini-cli and the Relay MCP tool list.

When it fails

  • No reply yet. Run: relay watch @<handle> Connect is not running, or Gemini CLI is still working; run connect again and it answers from there.
Use the CLI guide for prompt, token, and restart errors.

Next steps