Skip to main content

Python Interceptor


To begin the installation process, execute the following command:

pip3 install 'lunar-interceptor==0.3.*'


The only required configuration is the LUNAR_PROXY_HOST environment variable. This variable should be set to the host or IP of Lunar Proxy, including the port it is listening on.

For example:

export LUNAR_PROXY_HOST="lunar-proxy:8000"

For more details and other configuration options, refer to our Configuration Guide


Import Lunar Interceptor into the application entry point at the beginning of the file.

import lunar_interceptor
# imports ...

# your code
def main():
Click me for guidance 😀