Home / API & CLI

Growth agents, in your terminal.

Pull Mimetic's site audits, prioritized findings, code-fix PRs, and session-replay insights straight into your shell, your scripts, and your AI coding agents, Claude Code, Codex, anything that runs a command.

mim CLI REST API MCP server x402 agentic

Growth context from the tools you already use

The mim CLI

One command for real growth context.

Install nothing globally. Authenticate once, and every audit and recording on your account is a command away, in a format your coding agent can read.

# authenticate to your Mimetic account (opens the browser, device-code flow)
npx -y --package @mimeticinc/mim-cli mim auth login

# now pull context for one of your projects
mim context --project yourstore.com

Device login stores an expiring bearer token in ~/.mim/config.json with restrictive file permissions on supported systems. The token is not encrypted locally or stored in your OS keychain; mim auth logout revokes it before removal. Use MIM_API_TOKEN if you prefer environment or secret-manager storage. Requires Node 20+. Privacy details.

REST API

Or call it directly.

Every CLI command is a JSON endpoint under /api/mim. Authenticate with the bearer token mim auth login issues, project-scoped, no scraping, no headless browser to run yourself.

# list your projects
curl https://trymimetic.com/api/mim/projects \
  -H "Authorization: Bearer mim_xxx"

# start an audit and poll for the report
curl -X POST https://trymimetic.com/api/mim/audits \
  -H "Authorization: Bearer mim_xxx" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://yourstore.com","mode":"slim"}'
POST/api/mim/auditsstart an audit
GET/api/mim/audits/:id/statuspoll status + report url
GET/api/mim/projectsyour sites
GET/api/mim/projects/:project/contextgrowth-context pack
GET/api/mim/projects/:project/findingsprioritized findings
GET/api/mim/projects/:project/fixesfixable findings + PR state
GET/api/mim/projects/:project/recordingssession-replay insights

Managed tokens are scoped to projects available to the authenticated account, expire, and can be revoked with mim auth logout. Session-replay recordings require the replay add-on on an active plan.

MCP

Hand it to your coding agent.

Mimetic ships an MCP server with project-scoped tools, so Claude Code and Codex can inspect findings and redacted session narratives and run provider-read-only queries across GA4, Search Console, Google Ads, PostHog, and Klaviyo. The same server also includes clearly described action tools for setup and fix workflows. Raw replay payloads are not returned.

# wire Mimetic into Claude Code or Codex
mim mcp install claude
mim mcp install codex

Your agent then reads findings and replay insights on demand and can open fixes as PRs, review and merge, or close them.

x402 / Agentic

Building an AI agent?

Mimetic exposes a pay-per-call audit over the x402 protocol, your agent pays in USDC on Base and gets a full report, no account or API key. It's even discoverable in the x402 bazaar.

The x402 agentic API →

Start in your terminal.

Authenticate once, and your audits, findings, and recordings are a command away.

npx -y --package @mimeticinc/mim-cli mim auth login