Netra

Netra

Coding-agent usage in the menu bar

A macOS menu-bar app that reads the local logs of Claude Code, Codex, Gemini CLI and every other coding agent, and shows tokens, cost and how close each subscription is to its limit, in the menu bar, a popover and the notch.

when
Aug 2026 to Present
status
Personal project · Release 2.1.0
stack
Swift · SwiftUI · Rust · GPUI · ccusage
links

The problem

I run several coding agents a day, each on its own subscription with its own limits. I wanted one glance to tell me what I've spent, in tokens and dollars, and which limit I'm about to hit, without opening five dashboards.

How it works

Netra (नेत्र, "the eye") lives in the menu bar. It reads the session logs the agents already keep on the Mac (~/.claude, ~/.codex and the rest) through ccusage, so nothing is sent anywhere to count them. The popover leads with each provider's limit windows: how much is used, when it resets, and a pace line only when a limit needs attention. Below that are the period's cost and an activity chart.

On a MacBook a small island sits over the camera notch: one cost tile and one tile per provider limit, and it grows for a moment when a limit runs hot. The label in the menu bar is built from parts you choose: today's cost, the tightest limit, or the time to a reset.

The menu-bar app is written in Swift. The main window, with usage history, subscriptions, accounts and settings, is a separate Rust app built on GPUI. It only displays and asks: every change goes back to the menu-bar app as a small command file, and no secret crosses between them.

Where it is

Release 2.1.0, installed with one curl line or through Homebrew. It also feeds this site: Netra publishes daily token totals, and the tokens section and the "coding with" line on the intro are drawn from them.

v2.05,607,895,613 tokens