mirror of
https://github.com/littledivy/mimic.git
synced 2026-10-26 19:15:10 +00:00
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
22 lines
660 B
Bash
Executable File
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"
|