We present the numerical code $$\textsf {TAURUS}_{\textsf {vap}}$$ that solves the variation after particle-number projection equations for real general Bogoliubov quasiparticle states represented in a spherical harmonic oscillator basis. The model space considered is invariant under spatial and isospin rotations but no specific set of orbits is assumed such that the code can carry out both valence-space and no-core calculations. In addition, no number parity is assumed for the Bogoliubov quasiparticle states such that the code can be used to describe even-even, odd-even and odd-odd nuclei. The variational procedure can be performed under several simultaneous constraints on the expectation values of a variety of operators such as the multip...