The best thing to do would be to run a dedicated circuit from the battery with an inline fuse. Make sure that the wire is the correct gauge for the compressor that you will be using and that the fuse is the correct size for the wire.
One thing to always remember; a fuse protects the wire, not the item being used. Another thing is to always figure conservatively when it comes to size of wire needed. Heavier gauge wire than needed will not hurt anything, but too small a gauge wire can cause a fire. Always use the correct size fuse for the wire, not the item being powered.