We explore the viable f(R) gravity models in FLRW backgrounds with a free spatial curvature parameter ΩK. In our numerical calculation, we concentrate on the exponential f(R) model of f(R)=R−λRch(1−exp(−R/Rch)), where Rch is the characteristic curvature scale, which is independent of ΩK, and λ corresponds to the model parameter, while Rchλ=2Λ with Λ the cosmological constant. In particular, we study the evolutions of the dark energy density and equation of state for exponential f(R) gravity in open, flat and closed universe, and compare with those for ΛCDM. From the current observational data, we find that λ−1=0.42927−0.32927+0.39921 at 68% C.L and ΩK=−0.00050−0.00414+0.00420 at 95% C.L. in the exponential f(R) model. By using Akaike information criterion (AIC), Bayesian information criterion (BIC) and Deviance Information Criterion (DIC), we conclude that there is no strong preference between the exponential f(R) gravity and ΛCDM models in the non-flat universe.