Index: codex-rs/cli/src/doctor/updates.rs
--- codex-rs/cli/src/doctor/updates.rs.orig
+++ codex-rs/cli/src/doctor/updates.rs
@@ -58,6 +58,9 @@ const DESKTOP_UPDATE_URL: &str =
 /// warning instead of failing doctor outright; update freshness is useful
 /// support context but should not mask more direct install/config failures.
 pub(super) fn updates_check(config: &Config) -> DoctorCheck {
+    #[cfg(target_os = "openbsd")]
+    let current_exe = Some(std::path::PathBuf::from("${PREFIX}/bin/codex"));
+    #[cfg(not(target_os = "openbsd"))]
     let current_exe = std::env::current_exe().ok();
     let install_context = doctor_install_context(current_exe.as_deref());
     let mut details = vec![
