Alfven oscillations of strongly magnetized neutron stars coupled to shear modes in the solid crust could possibly explain the quasi-periodic oscillations (QPOs) observed in the giant flares of soft gamma repeaters. We present results of two-dimensional simulations of Alfven torsional oscillations in magnetars, modeled as relativistic stars with a dipolar magnetic field. We use a general relativistic magnetohydrodynamics code in the anelastic approximation, which allows for an effective suppression of fluid modes and an accurate description of the Alfven waves. We discuss the coupling of the neutron star interior with the magnetosphere and the observational consequences.