安装 LangSmith 追踪插件
安装 tracing@langsmith-codex-plugins,使用 TRACE_TO_LANGSMITH 开启追踪。需要 Codex 0.153.4+,凭证使用 LANGSMITH_CODEX_API_KEY。
codex plugin marketplace add langchain-ai/langsmith-codex-plugins
codex plugin add tracing@langsmith-codex-plugins
codex plugin list
# ~/.codex/config.toml
# [features]
# hooks = true
# [plugins."tracing@langsmith-codex-plugins"]
# enabled = true
# export TRACE_TO_LANGSMITH="true"
# export LANGSMITH_CODEX_API_KEY="lsv2_pt_..."
# export LANGSMITH_CODEX_PROJECT="codex"
# 会话里静音(不要加斜杠):
# langsmith-tracing:mute
# 升级:
# codex plugin marketplace upgrade langsmith-codex-plugins
# codex plugin add tracing@langsmith-codex-plugins
# 不要:
# plugin_hooks = true
# /langsmith-tracing:mute
# marketplace add langchain-ai/langchain-plugins
# mcp login
# tracing@openai-curated