Files
Divy Srivastava 3361c2a1d4 mimic: intercept any iOS app, AI-generate a Python client
Capture your own session with mitmproxy, reuse your real auth, and let
claude -p write an ergonomic client from the captured endpoints.

- Session/App runtime with mitm + cURL sources and token auto-refresh
- CLI: record / doctor / hosts / learn / gen
- one-command install via uv; mitmproxy launched on demand via uvx
- MIT licensed, own-accounts-only framing
2026-07-13 10:42:59 +05:30

22 lines
660 B
Bash
Executable File

#!/usr/bin/env sh
# One-command install for mimic. Installs uv if missing, then mimic (isolated).
set -e
if ! command -v uv >/dev/null 2>&1; then
echo "installing uv…"
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
fi
# Install from the current directory if run inside the repo, else from PyPI.
if [ -f "pyproject.toml" ] && grep -q 'name = "mimic-client"' pyproject.toml 2>/dev/null; then
uv tool install . --reinstall
else
uv tool install mimic-client --reinstall
fi
echo
echo "installed. next:"
echo " mimic doctor # check setup"
echo " mimic record # start capture, follow the iPhone steps"