Codex Honcho
БесплатноНе проверенBridge OpenAI Codex sessions with Honcho memory management, syncing transcripts and exposing search, conclusion creation, and context retrieval tools via stdio.
Описание
Bridge OpenAI Codex sessions with Honcho memory management, syncing transcripts and exposing search, conclusion creation, and context retrieval tools via stdio.
README
Codex adapter for Honcho MCP with local transcript sync.
This repository fills a narrow gap between OpenAI Codex and Honcho:
- A stdio MCP server that exposes Honcho memory tools to Codex.
- A local transcript sync process that imports visible Codex session messages from
~/.codex/sessions/**/*.jsonlinto Honcho sessions.
Honcho already has an official MCP server. This project is not a replacement for it.
It is a Codex-focused companion for users who want local Codex sessions to show up in
Honcho under a codex peer and remain searchable across tools.
Requirements
- Bun. The package entrypoints are TypeScript files with a Bun shebang, so Bun is
still the runtime when launched through
npx,pnpm dlx, orbunx. - Codex CLI
- A Honcho API key or self-hosted Honcho endpoint
Install
For normal MCP use, no checkout is required. Use a package runner in your MCP configuration:
bunx --package codex-honcho codex-honcho
npx -y codex-honcho
pnpm dlx codex-honcho
Or install the command globally:
bun install --global codex-honcho
npm install --global codex-honcho
pnpm add --global codex-honcho
After a global install, the commands are:
codex-honcho
codex-honcho-mcp
codex-honcho-sync
Create ~/.honcho/config.json:
{
"apiKey": "replace-with-your-honcho-api-key-or-use-HONCHO_API_KEY",
"peerName": "your-name",
"endpoint": {
"baseUrl": "https://api.honcho.dev/v3"
},
"hosts": {
"codex": {
"workspace": "replace-with-your-workspace-id",
"aiPeer": "codex"
}
},
"sessionStrategy": "per-directory",
"sessionPeerPrefix": true,
"observationMode": "unified"
}
Use a stable workspace value for this machine or project group, for example
laptop, workstation, or personal-codex. You can also omit apiKey and set
HONCHO_API_KEY in the environment.
Wire Codex MCP
Recommended bunx config for ~/.codex/config.toml:
[mcp_servers.honcho]
command = "bunx"
args = ["--package", "codex-honcho", "codex-honcho"]
Equivalent npx config:
[mcp_servers.honcho]
command = "npx"
args = ["-y", "codex-honcho"]
Equivalent pnpm dlx config:
[mcp_servers.honcho]
command = "pnpm"
args = ["dlx", "codex-honcho"]
If you installed the package globally:
[mcp_servers.honcho]
command = "codex-honcho"
args = []
Restart Codex after editing the config.
Sync Codex Transcripts
Import recent sessions once:
bunx --package codex-honcho codex-honcho-sync --recent 20
npx -y --package codex-honcho codex-honcho-sync --recent 20
pnpm dlx --package codex-honcho codex-honcho-sync --recent 20
Run continuously:
bunx --package codex-honcho codex-honcho-sync --watch --recent 50
npx -y --package codex-honcho codex-honcho-sync --watch --recent 50
pnpm dlx --package codex-honcho codex-honcho-sync --watch --recent 50
Install a user-level systemd service:
./scripts/install-systemd-user.sh
The importer stores dedupe state at:
~/.honcho/codex-honcho/state/codex-session-sync.json
How Sessions Are Named
The MCP server and sync process use the same Honcho session name:
codex-<cwd-basename>
For example, a Codex session in /home/me/code/my-app becomes:
codex-my-app
Each imported session includes the human peer from peerName and the Codex peer from
hosts.codex.aiPeer.
MCP Tools
The MCP server exposes:
searchcreate_conclusionlist_conclusionsdelete_conclusionget_contextget_representationget_config
The server deliberately does not expose Honcho chat; Codex can reason locally after
retrieving Honcho context.
Safety Notes
- Do not commit
~/.honcho/config.json; it may contain your API key. - The sync process imports only visible Codex
user_messageandagent_messageevents. It skips encrypted reasoning and base instructions. - Very long messages are truncated before upload. Metadata records the original length.
Development
git clone https://github.com/iuliandita/codex-honcho.git
cd codex-honcho
bun install
bun test
bun run sync -- --recent 1 --dry-run
Установить Codex Honcho в Claude Desktop, Claude Code, Cursor
unyly install codex-honchoСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add codex-honcho -- npx -y codex-honchoПошаговые гайды: как установить Codex Honcho
FAQ
Codex Honcho MCP бесплатный?
Да, Codex Honcho MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Codex Honcho?
Нет, Codex Honcho работает без API-ключей и переменных окружения.
Codex Honcho — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Codex Honcho в Claude Desktop, Claude Code или Cursor?
Открой Codex Honcho на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Codex Honcho with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
