Home / API & CLI

Your audits, 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
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

Credentials are stored in ~/.mim/config.json (chmod 600) and scoped to the projects your account owns. Requires Node 20+.

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" \
  -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

Tokens are scoped to the projects you own and billed per project. Session-replay recordings require the replay add-on on an active plan.

MCP

Hand it to your coding agent.

Mimetic ships a read-only MCP server, so Claude Code and Codex can see what's broken and why, redacted session narratives and findings, never raw replay payloads.

# 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