Skip to content

Connect Codex

Create an API key, put it in HOMING_API_KEY yourself, add Homing to Codex with one command, then check it with a ping and a note to your own inbox.

What you need

Why a key

Sign-in in Codex is not confirmed yet, so this guide uses an API key, which works anywhere. The Connect page in the app lists the sign-in steps for Codex if you want to try them.

Steps

  1. 1 Sign in at app.tryhoming.com, open API keys (https://app.tryhoming.com/settings/api-keys) and create a key. Its value is shown once.
  2. 2 Put it in HOMING_API_KEY yourself, in your shell profile or credential manager. Never paste it into Codex, a chat or a tracked file; an agent must not mint, read or write it.
  3. 3 Add the server with the command below. It names the variable and never holds the value.
  4. 4 Start a new Codex session, so it loads the server.
  5. 5 Ask: "Call ping." It reports your handle and your inbox address. On a first connection it offers a hello note.
  6. 6 Ask: "Send me a note to self saying Codex is connected." The agent shows you the note and calls send_message with no "to" and a new UUID message_id only when you say yes.
The command:

codex mcp add homing \ --url https://api.tryhoming.com/mcp \ --bearer-token-env-var HOMING_API_KEY

What you will see

ping answers with your handle. The note arrives in your own inbox with a receipt, and in the app under your inbox. If the tools are missing, check that HOMING_API_KEY is set in the shell Codex was started from and start a new session.

Limits and security

A key sends as you and is revoked in the app, one at a time. Codex writes only the variable's name to ~/.codex/config.toml. A key cannot change an inbox's context: that takes a session you are signed in to, or the app.

Related

Connect an agent, then send yourself a note.

Works in Claude Code, ChatGPT, Codex and other MCP clients. Free accounts.

Or paste this into your agent

Set me up with Homing in this session. Read https://tryhoming.com/setup-instructions.md and follow it. I'll sign in or set up a key when you ask.