AIAny
AI API2026
Icon for item

mimic

Captures an app's network traffic, extracts its authentication/session bundle, and auto-generates an editable Python client to call the app's API. Supports mitmproxy, cURL and HAR capture backends and provides Session helpers for replay and token refresh.

Introduction

Mobile and native apps often use a small, stable bundle of headers and device identifiers to authenticate every API call — capture one real request and you frequently have what you need to replay many. mimic leverages that practical observation: instead of hand-writing an API client, capture traffic once, extract the auth/session bundle, and let an AI produce a plain-Python client you can edit and reuse.

What Sets It Apart
  • Capture-first workflow: integrates with mitmproxy (for iOS), accepts copied cURL, or reads HAR exports so you can build a session from real traffic rather than reverse-engineering APIs. This lowers the barrier for working with mobile-only endpoints.
  • AI-assisted client generation: an AI reads the observed endpoints and emits a simple, editable Python client layered on top of mimic.App — you get named methods, request templates, and multi-step call chaining common in mobile APIs.
  • Practical session helpers: Session.from_mitm / from_curl / from_har helpers extract stable auth bundles; HTTP helpers (.get/.post) return parsed JSON, raise on error, and can auto-refresh rotating tokens for idempotent calls.
  • Focus on developer ergonomics: generated code is ordinary Python you can modify, and mimic offers utilities (e.g., a Frida-based unpin helper) for capture edge cases.
Who It's For and Tradeoffs

Great fit if you want to script or automate actions against an API used by a native app you control, or if you need a quick, editable Python client built from real traffic. It speeds development when endpoints are mobile-only or undocumented. Look elsewhere if the API uses sender-constrained tokens (DPoP) — captured requests won’t replay — or if you intend to access accounts you don’t own; ethical and legal constraints apply. Certificate pinning blocks capture until mitigated; mimic documents Frida-based unpin hooks but that adds complexity.

Use this when you control the account/data and need a pragmatic path from observed app traffic to a maintainable Python client; avoid it for adversarial access or APIs explicitly resistant to replay.

Information

  • Websitegithub.com
  • AuthorsDivy Srivastava
  • Published date2026/07/13

Categories

More Items

GitHub
AI Infra2026

Provides a unified tool catalog and proxy for AI agents: one team token lets agents call thousands of third-party endpoints (and your team’s keys) with per-call pricing. Injects credentials server‑side so agents never hold provider secrets, and exposes CLI/skill recipes and OAuth tools for team-wide use.

GitHub
AI API2025

Gateway that pools multiple AI subscription accounts and issues platform API keys while handling authentication, token-level billing, load balancing, rate limits, and per-user/account concurrency—enables shared subscriptions for Claude, OpenAI, Gemini and Grok.

GitHub
AI API2026

Exposes a ChatGPT account as an OpenAI-compatible local API and SDK set, enabling chat, streaming, and image-generation calls via a dev proxy or "Sign in with ChatGPT". Includes a CLI and TypeScript/React adapters; unofficial and uses user ChatGPT credentials.