﻿---
title: "配置 Arize Phoenix 会话追踪"
filename: "terminal"
canonical: /templates/arize-phoenix-codex-notify/
---

# 配置 Arize Phoenix 会话追踪

运行安装向导并选择 Phoenix，通过 notify 发送会话追踪。凭证存于 ~/.arize/harness/config.json，已有 notify 配置时先备份。

```
git clone https://github.com/Arize-ai/coding-harness-tracing.git
cd coding-harness-tracing
./install.sh codex

# ~/.codex/arize-env.sh
# export PHOENIX_ENDPOINT="http://localhost:6006"
# export PHOENIX_PROJECT="codex"
# export ARIZE_TRACE_ENABLED="true"

# 已有 notify = ["python3", "notify.py"] 时先备份 ~/.codex/config.toml

# 测：
# codex exec "explain what this file does" README.md

# 卸装：
# ./install.sh uninstall codex

# 不要：
# /hooks 审 arize-hook-codex-*
# marketplace add Arize-ai/coding-harness-tracing
# mcp login

```
