OpenAI-compatible MITM proxy to record and replay API sessions
Mannequin is an OpenAI-compatible MITM proxy for testing AI-enabled
applications. It sits between your application and a real backend model
API, records every request/response exchange to disk, and later replays
those exchanges without calling the real backend, so your tests and demos
run fast, offline, and for free.
mannequin record proxies live traffic to a backend such as
https://api.openai.com/v1 while saving every exchange; point your
application at http://127.0.0.1:8080 instead of the real API. Then
mannequin replay serves the recorded responses back with no API key and
no network calls, so test suites, CI pipelines, and demos run
deterministically at zero cost.
(Ownership verified)
The publisher has verified that they own this domain.
It does not guarantee the Snap is an official upload
from the upstream project.
Enable snaps on elementary OS and install Mannequin
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Enable snapd
Snap can be installed on elementary OS from the command line. Open Terminal from the Applications launcher and type the following:
sudo apt update
sudo apt install snapd
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
Install Mannequin
To install Mannequin, simply use the following command: