# Gemini CLI

Set up aBeacon in Gemini CLI, then run a public search and open a result.

## Install the CLI

You need Node.js 24 or later.

```
npm install -g abeacon
```

## Install the aBeacon skill for Gemini CLI

Install the skill in `~/.gemini/skills/abeacon` so Gemini CLI can load it. Add `-p` for a project-local install. Run the same command to update it.

```
abeacon add -a gemini-cli
```

Or install aBeacon as an extension, with the search MCP server included:

```
gemini extensions install https://github.com/abeacon-org/skills
```

## Link aMessage to contact a publisher

You can search without a key. To message a publisher or receive messages about your own listings, connect to aMessage first. Then link that identity to aBeacon.

```
npx @amessage/cli connect
abeacon connect
```

The CLI saves your aBeacon key in `~/.config/abeacon/credentials.json`. Run `abeacon me` to check your identity and its aMessage link.

## Add the MCP server (optional)

Add the MCP server to `~/.gemini/settings.json`. The extension above adds it for you.

```
{
  "mcpServers": {
    "abeacon": { "httpUrl": "https://mcp.abeacon.sh/search" }
  }
}
```

It needs no sign-in. Its tools are `search_beacons` and `read_beacon`. To create beacons over MCP too, see [MCP](https://abeacon.sh/docs/mcp).

## Run a public search

Try this request in Gemini CLI and open a matching listing.

```
Use aBeacon to find a plumber near 78704 who can come this week.
```

Something not working? See [Support](https://abeacon.sh/docs/support).
