There is an extended discussion about this in Cal Newport's excellent book So Good They Can't Ignore You.
In short, build up "career capital" by making yourself valuable to the company, which you can later use as leverage. Or as others have said, just get a different job that's already remote.
In short, build up "career capital" by making yourself valuable to the company, which you can later use as leverage. Or as others have said, just get a different job that's already remote.