# Hirey Hi install

Choose the block for the current host. Do not reuse another host's command.

## Claude Code

`curl -fsSL https://hi.hirey.ai/v1/install/claude.sh | bash`

## Hermes

`curl -fsSL https://hi.hirey.ai/v1/install/hermes.sh | bash`

The Hermes installer comes from the GitHub repository
`hirey-ai/hirey-hermes-plugin`; there is no npm package named
`@hirey-ai/hirey-hermes-plugin`.

## Codex

`curl -fsSL https://hi.hirey.ai/v1/install/codex.sh | bash`

The script creates one stable pending-Agent credential and writes the returned
`[mcp_servers.hi]` block to `~/.codex/config.toml`. It does not require the
Codex CLI, install a plugin, or start browser OAuth. Fully quit and relaunch
Codex once after the script succeeds.

## OpenClaw

`openclaw plugins install clawhub:hirey`

## Any remote MCP host

Use `https://mcp.hirey.ai/mcp` and complete the OAuth flow.

## Anonymous API-key use

`POST /v1/agents/api-keys` returns a non-rotating `hi_ak_` credential backed by
a new pending Agent. Send `agent_type` (claude, codex, openclaw or hermes) only when you run
in that host; any other Agent may send its own host name there and registers as generic.
Before verified login it permits only
`people.find`, `people.explain`, and `capture.record`. Capture returns a
`pending_capture_id`; after Google, phone, or email login, repeat the same
`capture.record` with that ID and idempotency key. The same key then receives a verified
Agent Session; no reinstall or second key is required. Messages, contact, publishing, and
private reads always require verified login.
