Armodafinil seems to have filled a similar purpose for me that semaglutide does for you. Headaches from it are solved by taking choline, and the insomnia is minimized by taking it before 7 AM and only taking it every other day (long half-life). It's prescription-only in the US, but it's OTC in India and there are plenty of companies that will send it to you without a prescription. Even though it's a stimulant, it's chemically not an amphetamine, and I suspect that's part of why I've never had troubles with customs. Also makes me a 10x coder. I get more work done in a day on that than I do in a week off of it.
Again, I'm not a doctor, and this is not medical advice.
I use it for weight loss, but it has auxiliary benefits - like increasing my productivity at my tech job, which is an aspect I think some others on this tech forum might appreciate as well, in addition to the appetite suppression.
Again, I'm not a doctor, and this is not medical advice.