Package Exports
- @hasna/economy
Readme
@hasna/economy
AI coding cost tracker — CLI + MCP server + REST API + web dashboard for Claude Code, Codex, and Gemini
Install
bun install -g @hasna/economyCLI Usage
economy --helpMCP Server
economy-mcp --helpREST API
economy-serve --helpNative 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 releaseCloud Sync
This package supports cloud sync via @hasna/cloud:
cloud setup
cloud sync push --service economy
cloud sync pull --service economyData 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