Switching off & switching between gateways for some kernels

Is it possible to switch between different --gateway-url to start a specific kernel? Or use a remote gateway only for some kernels but be able to lunch local kernels too?

Couldn’t find anything about such a more dynamic usecase anywhere, but perhaps there’s some option to include a gateway in the kernel spec?