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

Adds keyless model channels to DeepSeek Harness and brings multiple providers into one model picker and local compatible gateway. Availability is checked dynamically; free quotas, regional access, and data handling remain controlled by upstream services.

GitHub
AI Infra2026

Connects coding agents to one local model gateway, making providers and subscriptions available across agents and routing requests to another account or model when quotas run out.

GitHub

Connects MCP-compatible AI assistants to Google Ads for account queries and reporting, with guarded support for asset creation, video uploads, and label management. It does not modify campaigns, budgets, or bids.