OpenLens

The missing Measure and Control
for self-improving apps.

Your coding agents already Improve your app. OpenLens closes the DMAIC loop around them: it measures what users really do, and controls that every release moved the number. And an agent deploys and configures it, in one conversation.

See the demo Self-host it View on GitHub

Latest release v0.12.0 · 2026-11-30 · open source, AGPL-3.0

DMAIC, closed by software

The Six Sigma loop for improving with data instead of opinions. Teams, and now their agents, are fast at Improve. What they lack is a reliable Measure and a Control that says whether the change held. A self-improving app needs both: an agent that ships without them is just guessing faster.

The DMAIC loop: Define and Improve belong to your agents; Measure, Analyze and Control are OpenLens. Every release starts the next cycle.
D · Define

What is value here?

The feature map: features, success moments, roles. Your agents draft it from the code and keep it current.

M · Measure

What really happens?

One script, a backfill from your database, and every event tagged with its release and environment. Fixed KPI definitions.

A · Analyze

Why, and where first?

3 to 7 ranked insights with their evidence and cohort size, corrected for multiple comparisons. Replays behind each one.

I · Improve

What do we change?

A card becomes a drafted ticket, a human approves, your agent ships it as a release, optionally behind a flag.

C · Control

Did it work? Does it hold?

A verdict on every release written back to GitHub, control charts (mean ± 3σ) on each ticket's metric, goals with projection, alerts.

The loop never ends, by design: what Control measures on this release is what the next cycle defines.

Configured by an agent, not a console

Most services are installed by a human who reads a manual, then configured through a settings page. OpenLens inverts that: the agent is the operator, and the product is built for it.

A coding agent connects to OpenLens over MCP with one line, then creates the project, adds the SDK, writes the feature map, backfills history, verifies, and hands the product manager a login link
  • One line to connect. claude mcp add --transport http openlens …/mcp. Nothing to install.
  • The server explains itself. /agents.md is its own manual, and the onboarding tool names the next step.
  • No settings to find. No required variable. Anything that messages the outside, goes public or needs a secret is flagged: the agent asks, you decide.
  • Configured means verified. verify checks the round trip, the roles and the entry points. CI re-proves it on two reference apps every night.
  • Deploying is a one-liner too: one container, one volume.
The OpenLens Focus board: ranked insight cards, KPIs by role, feature pulse, retention cohorts and release comparison

A board that answers, instead of a toolbox to configure

Stick

“Users who use export in their first week stay 5.2× more.”

Churn

“72% of churned users were last seen in billing.” ▶ watch one of those sessions.

Roles

“Admins almost never use reports.”

Release

“Release v2: sessions with errors went from 3% to 33%.”

Every card comes with its evidence, its cohort size and a next step. KPIs have fixed definitions, by role and by release.

What your agent does

Built for apps that agents write and maintain. Every server serves its own wiring guide at /agents.md.

  1. Deploy one binary or one container. No setting required: the admin token and keys generate themselves, and every optional feature is off until you set it.
  2. Your agent wires the app: one script, identify(user, {role}), and a small feature map of features, success moments and roles.
  3. History on day one: it backfills from the app's own database, then checks the wiring.
  4. The PM gets a login link and opens a board that already ranks what matters.
  5. Agents stay in the loop over MCP: insights, KPI reports, user timelines, errors, flags, surveys and read-only SQL.

Everything a product team needs, in one place

Focus board

Three to seven ranked insights: stick drivers, value moment, churn points, blind spots, value journeys.

KPIs by role and release

Active users, stickiness, retention, resurrection, sessions, tasks, errors and Web Vitals, compared release to release.

Features table

Adoption, completion and uses for every feature, a bar per role, and tags for what the insights found about it.

Journeys and funnels

The paths into each success event and the step where people drop off.

Flags and experiments

Rollouts by percentage, role or account. Each flag is a cohort with a significance test.

Micro-surveys

One question right after a success, with results by role.

Session replay

Lazy-loaded recorder, inputs always masked, linked from every insight.

Errors

Grouped by cause, with source maps and the replay of the session.

Heatmaps

Clicks, rage clicks and scroll depth, over a real recorded visit of the page.

Weekly digest

On the dashboard, over MCP, and by email if you want it.

Privacy first

No cookies (or nothing stored on the device at all, in cookieless mode), input values never sent, Do Not Track and consent respected. Your data stays on your disk.

Server SDKs

Node, Python, Go, Ruby and PHP, or a plain HTTP call.

Lean by design

1binary, no Kafka, ClickHouse or Redis
0required settings
80kevents/s on one vCPU
11 Bper event on disk
5.5 kBbrowser SDK, gzipped

Rust, Parquet and DataFusion; a server-rendered dashboard with no JavaScript and a strict CSP. Benchmarks.

Self-host it anywhere

docker run -d -p 8686:8686 -v openlens-data:/data ghcr.io/philippe-arnd/openlens:0.12
# the admin token is printed in the log on first start

Upgrades back up your data first and refuse data from a newer release, so updates can run unattended.

What's new in v0.12.0

A stopped app now shows as down, and the onboarding follows the order things happen. v0.12.0 fixes uptime behind a reverse proxy, keeps monitoring probes out of your route stats, reads times in your browser's zone, and gives invited people and App maintainers the same guided start as the admin.

Release notes Changelog