\(\psi \) -fractional differential equations ( \(\psi \) -FDEs) extend the capabilities of standard fractional differential equations by introducing a general function \(\psi \) in the fractional derivative operator. We can recover various known fractional derivatives such as Riemann-Liouville, Caputo, Hadamard, and others by selecting specific forms of \(\psi \) . This provides a flexible framework for modeling different types of non-local behaviors. Hence, this study is devoted to designing a new computational scheme to solve \(\psi \) -FDEs and \(\psi \) -fractional integro-differential equations ( \(\psi \) -FIDEs) with \(\psi \) -Caputo derivative. We use the generalized Lucas polynomials (G-LPs) and the collocation method to develop the desired technique. To do this, we propose a \(\psi \) -Caputo derivative operator for G-LPs. Subsequently, by employing the collocation method, and the mentioned required preliminaries, the addressed problems are transformed into systems of algebraic equations, which can be solved through Newton’s iterative method. Numerical results and comparative analyses illustrate that the proposed method exhibits a high accuracy and efficiency.