---
title: "Connect Codex | Hostemi"
description: "Add the server to ~/.codex/config.toml and sign in with codex mcp login. Step-by-step help from the Hostemi docs for vacation rental hosts."
canonical: https://hostemi.com/docs/mcp/clients/codex
source: https://hostemi.com/docs/mcp/clients/codex.md
---

# Connect Codex

Add the server to ~/.codex/config.toml and sign in with codex mcp login.

#### On this page

1. [Add the server](#add-the-server)
2. [Sign in](#sign-in)
3. [With a key instead](#with-a-key-instead)
4. [Check it](#check-it)

## Add the server

**One command**

```bash
codex mcp add hostemi --url https://mcp.hostemi.com/mcp
```

**With the hostemi CLI**

```bash
npm i -g hostemi
hostemi agent setup --client codex
```

**~/.codex/config.toml**

```toml
[mcp_servers.hostemi]
url = "https://mcp.hostemi.com/mcp"
```

## Sign in

```bash
codex mcp login hostemi
```

Your browser opens the Hostemi sign-in. The hostemi CLI's agent setup also copies the Hostemi skills into `~/.codex/skills`.

## With a key instead

On a machine without a browser, create an MCP key in Hostemi under Settings, AI & apps and let Codex read it from an environment variable:

```bash
codex mcp add hostemi --url https://mcp.hostemi.com/mcp --bearer-token-env-var HOSTEMI_MCP_KEY
```

## Check it

Ask Codex:

```text
What needs my attention in Hostemi?
```

It calls [`get_context`](https://hostemi.com/docs/mcp/tools/start#get_context) and names your listings, today's date in your time zone and what is waiting for you. The connection is listed in Hostemi under Settings, AI & apps, where you can remove it at any time.

Documentation pages

Something missing from this page? Write to [hello@hostemi.com](mailto:hello@hostemi.com), or use the form on the [Help](https://hostemi.com/help) page.
