You can go on a climbing trek solo and in a group. There’s no particular legality that restrains you from solo climbing in Nepal. However, a climbing guide, in any case, is a must.