A Developer's Guide to steipete/CodexBar: Real-time AI Stats Without the Login Hassle


A Developer's Guide to steipete/CodexBar: Real-time AI Stats Without the Login Hassle

steipete/CodexBar

2026-03-04

The tool you're looking at, steipete/CodexBar, is a lifesaver for exactly that. Created by Peter Steinberger (a well-known figure in the iOS/Swift community), it’s a tiny macOS menu bar app that tracks your usage for OpenAI Codex, Claude Code, and several other providers without you needing to manually log into their dashboards every time.

Here is a breakdown of why it's awesome and how you can get it running.

If you're using CLI tools like claude or codex, you know the feeling of being "cut off" mid-flow because you hit a 5-hour or weekly limit.

Zero-Friction Monitoring
It sits in your menu bar, showing tiny progress bars for your current "session" and "weekly" usage.

Privacy-First
It doesn't ask for your passwords. Instead, it smartly pulls data from local CLI outputs, browser cookies (if you opt-in), or OAuth.

Multi-Provider Support
It handles everything from GitHub Copilot and Cursor to more niche agents.

Since it's a Swift-based macOS app, you have two main ways to get it.

Check the Releases page on GitHub, download the .zip or .dmg, and drag it to your Applications folder.

If you want to poke around the code or contribute

Clone the repo
git clone https://github.com/steipete/CodexBar.git

Open in Xcode
Just double-click Package.swift or the project file.

Run
Select your Mac as the target and hit Cmd + R.

CodexBar works by "scraping" or "probing" the local environment. For example, it might run a CLI command in the background and parse the text output to find your remaining tokens.

Here’s a simplified Swift/SwiftUI logic example of how a provider might fetch usage stats using a background process

import Foundation

struct UsageStats {
    let sessionPercent: Double
    let resetTime: String
}

class ClaudeProvider {
    func fetchUsage() async throws -> UsageStats {
        let task = Process()
        task.executableURL = URL(fileURLWithPath: "/usr/local/bin/claude")
        task.arguments = ["--status"] // Hypothetical CLI flag
        
        let pipe = Pipe()
        task.standardOutput = pipe
        
        try task.run()
        
        let data = pipe.fileHandleForReading.readDataToEndOfFile()
        let output = String(data: data, encoding: .utf8) ?? ""
        
        // Use Regex to find usage numbers in the CLI output
        return parseOutput(output)
    }
    
    private func parseOutput(_ text: String) -> UsageStats {
        // Real CodexBar code uses complex Regex to catch 
        // "45/50 requests used" or "Resets in 2h 15m"
        return UsageStats(sessionPercent: 0.9, resetTime: "2h 15m")
    }
}

The app uses a compact UI to show you exactly where you stand. It looks something like this in your menu bar

Top Bar
Your 5-hour/session window.

Bottom Bar
Your weekly limit.

Colors
They change as you approach your limit (usually turning red or dimming when data is stale).

If you want to extend this, the project is built with SwiftUI and uses a modular architecture. You can actually add your own "Provider" by implementing a specific protocol in the Sources/CodexBarCore directory. It’s a great way to learn how to interact with macOS system processes (NSTask) and menu bar items (NSStatusItem).


steipete/CodexBar




AgenticSeek: Your Personal, Cost-Free AI Assistant for Local Development

AgenticSeek is a fully local, autonomous AI agent. "Autonomous" means it can break down a high-level goal into smaller tasks


From Zero to AI Chat App: Lobe Chat for Engineering Teams

Lobe Chat is an open-source, modern AI chat framework designed to make it easy to create and deploy your own private, feature-rich AI agent applications


How trycua/cua Solves Safety and Testing for Desktop Automation Agents

Let's break down what c/ua is, how it can be useful for you, and how to get started.The simplest way to understand c/ua is that it's "Docker for Computer-Use Agents


A Software Engineer's Guide to Hugging Face aisheets

Huggingface/aisheets is a library that allows you to easily build, enrich, and transform datasets using AI models, without writing any code


From Text to Interaction: A Software Engineer's Guide to the MCP Apps Protocol

The Model Context Protocol (MCP) Apps extension changes that. It allows AI models to not just send text back, but to serve embedded UI components directly into the chat interface


State Management for AI: An Engineer's Guide to Implementing memU

Usually, LLMs are like goldfishes—they have a great "now, " but they forget who you are or what you discussed as soon as the session ends


Engineering Sophisticated AI Agents: A Deep Dive into the ADK-Go Toolkit

This toolkit, which we'll refer to as the AI Development Kit for Go (ADK-Go), provides a structured and code-first way to build complex AI applications


Accelerate Design Reviews: Integrating AI and draw.io for Engineering Excellence

From a software engineering standpoint, documentation and visualization are crucial for building, communicating, and maintaining complex systems


Supercharging Claude Code: Building an Autonomous "Inner Loop" for Faster Shipping

If you’ve used Claude Code (Anthropic’s command-line tool), you know it’s powerful for editing files and running commands


x1xhlol/system-prompts-and-models-of-ai-tools

Let's dive in!As a software engineer, I see x1xhlol/system-prompts-and-models-of-ai-tools as a fantastic open-source repository that acts as a central hub for understanding and utilizing the "brains" behind many popular AI-powered development tools