Open AI Codex · Direct Setup
Settings Config
Save to ~/.codex/config.toml on each developer machine:
[otel]
environment = "prod"
log_user_prompt = false
[otel.exporter.otlp-http]
endpoint = "https://telemetry.mstone.ai/v1/logs"
protocol = "binary"
headers = {"x-shared-secret" = "<your-shared-secret>"}
[otel.metrics_exporter.otlp-http]
endpoint = "https://telemetry.mstone.ai/v1/metrics"
protocol = "binary"
headers = { "x-shared-secret" = "<your-shared-secret>" }
Set User Identity
Add to your shell profile (~/.zshrc or ~/.bashrc):
export OTEL_RESOURCE_ATTRIBUTES="user.login=$(whoami),user.email=$(whoami)@your-company-domain.com"
Then reload: source ~/.zshrc
Restart Codex
Close and reopen Codex for settings to take effect.