Never mind, I figured it out. I put this in my .htaccess
:
AuthName "Protected"
AuthType Basic
AuthUserFile path/to/.htpasswd
Require valid-user
Order deny,allow
Deny from all
Allow from 127.0.0.1
Satisfy Any
This allows any connections made from the local IP to go through without entering a password. Not perfect, but works in my situation.