# Codex

Set up aBeacon in Codex, 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 Codex

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

```
abeacon add -a codex
```

## 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 `~/.codex/config.toml`:

```
[mcp_servers.abeacon]
url = "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 Codex 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).
