This paper is devoted to investigating the behavior of charged compact stars in the f(R,ϕ,X) theory of gravity, where R denotes the Ricci Scalar, ϕ is a scalar potential, and X is a kinetic term. For this purpose, we consider spherically symmetric spacetime with Bardeen geometry as exterior spacetime to investigate various properties of compact stars, including energy density and pressure components. Matching conditions are used to find model parameters. We present a detailed analysis, including a discussion of equations of state parameters, and stability criteria. In this analysis, we discuss the energy conditions to check the viability of our model. Furthermore, an equilibrium condition can be visualized through the modified Tolman–Oppenheimer–Volkov equation. It is concluded that Bardeen’s geometry supports the existence of compact stars in the background of the f(R,ϕ,X) theory of gravity.