Index: codex-rs/cli/src/doctor/runtime.rs
--- codex-rs/cli/src/doctor/runtime.rs.orig
+++ codex-rs/cli/src/doctor/runtime.rs
@@ -22,6 +22,9 @@ use super::push_path_detail;
 /// This check is informational and should not fail on its own; inconsistent
 /// install state is reported by the installation and update checks instead.
 pub(super) fn runtime_check() -> DoctorCheck {
+    #[cfg(target_os = "openbsd")]
+    let current_exe = Some(std::path::PathBuf::from("${PREFIX}/bin/codex"));
+    #[cfg(not(target_os = "openbsd"))]
     let current_exe = env::current_exe().ok();
     let install_context = doctor_install_context(current_exe.as_deref());
     let os = env::consts::OS;
@@ -55,6 +58,9 @@ pub(super) fn runtime_check() -> DoctorCheck {
 /// means features that depend on file search may degrade even when the CLI
 /// launches.
 pub(super) fn search_check() -> DoctorCheck {
+    #[cfg(target_os = "openbsd")]
+    let current_exe = Some(std::path::PathBuf::from("${PREFIX}/bin/codex"));
+    #[cfg(not(target_os = "openbsd"))]
     let current_exe = env::current_exe().ok();
     let install_context = doctor_install_context(current_exe.as_deref());
     let rg_command = install_context.rg_command();
