Use GPIO2. Use a 2N2907, 2N3906, or 2N4403 PNP transistor.View attachment 350874
is this the changes you mentioned?
I have tried these but with this my esp does not boot and relay still flicks
also there are no GPIO 3 and GPIO 4 in ESP-01 module only TX RX pins and GPIO 0 and 2
I need TX RX as is to make internet connection and can only utilize GPIO 0 and 2 which needs to be momentary high for boot

Are you sure? when GPIO2 is floating its voltage wrt ground will rise to around 3.7v due to the internal clamp diode from GPIO2 to VCC, therefore the base of Q1 will be at (5-3.7)*10k/11k or about 1.18v wrt to the emitter... which may turn Q1 on.. I think you need a diode or two in series with R1 to avoid that possibility.Use GPIO2. Use a 2N2907, 2N3906, or 2N4403 PNP transistor.
Disable the MCU's internal weak pullup for GPIO2 so that it floats, then use R2 to pull up Q1 instead.
A ground signal on GPIO2 will energize the relay.
The idea is to remove any dependency on the internal pullup.Are you sure? when GPIO2 is floating its voltage wrt ground will rise to around 3.7v due to the internal clamp diode from GPIO2 to VCC, therefore the base of Q1 will be at (5-3.7)*10k/11k or about 1.18v wrt to the emitter... which may turn Q1 on.. I think you need a diode or two in series with R1 to avoid that possibility.
It might makes sense it would have GPIO protection diodes, but I couldn't find manufactures documentation to confirm that.