We study a Dirichlet problem in the entire space for some nonlocal degenerate elliptic operators with internal nonlinearities. With very mild assumptions on the boundary datum, we prove existence and uniqueness of the solution in the viscosity sense. If we further assume uniform ellipticity then the solution is shown to be classical, and even smooth if both the operator and the boundary datum are smooth.