To do it correctly, you would run a separate circuit, and a 30 amp breaker to the compressor.
I personally use a magnetic starter with a on/off switch for my compressor, the rest of it is hardwired to the breaker panel. You will want to avoid using a plug on the air compressor if you do not...