JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q88520F
  • License Apache-2.0

AI coding cost tracker — CLI + MCP server + REST API + web dashboard for Claude Code, Codex, and Gemini

Package Exports

  • @hasna/economy

Readme

@hasna/economy

AI coding cost tracker — CLI + MCP server + REST API + web dashboard for Claude Code, Codex, and Gemini

npm License

Install

bun install -g @hasna/economy

CLI Usage

economy --help

MCP Server

economy-mcp --help

REST API

economy-serve --help

Native macOS Menubar

The menubar/ app is a native SwiftUI menu bar app built with MenuBarExtra, not Electron. It targets macOS 26 and talks to the REST API exposed by economy-serve. The server URL is configurable inside the app and defaults to http://127.0.0.1:3456.

Build it on macOS with Xcode / Swift 6.2:

cd menubar
swift build -c release

Cloud Sync

This package supports cloud sync via @hasna/cloud:

cloud setup
cloud sync push --service economy
cloud sync pull --service economy

Data Directory

Data is stored in ~/.hasna/economy/.

The main SQLite database lives at ~/.hasna/economy/economy.db. Older ~/.economy/ data is auto-migrated on first open.

License

Apache-2.0 -- see LICENSE