How It Works
MITM = Man-in-the-Middle Proxy
api.openai.com and reroutes it—with the correct headers and configurations to oai.helicone.ai. This enables you to swiftly integrate Helicone and all of its features without having to alter a single line of code.
Potential Use Cases for the MITM Proxy
- Github Actions
- Continuous Integration/Continuous Deployment (CI/CD)
- Testing
- Debugging
- Cost savings (utilizing Bucket Cache)
- Local Development
- Debugging
- Testing
- Cost savings (utilizing Bucket Cache)
Installation (Ubuntu/Debian)
We provide a script that will automatically install and configure the proxy for you.Starting the Proxy
Stopping the Proxy
Viewing Logs
Installation (Mac)
To install on a Mac, follow the same instructions as for Ubuntu/Debian, but use themitmproxy_mac.sh script instead. You can find this script here: https://raw.githubusercontent.com/Helicone/helicone/main/mitmproxy_mac.sh
Configuring the Dynamic Helicone Headers
You can configure custom properties using a lock file located at~/.helicone/custom_properties.json. These properties will be applied to all requests.