libraries/cli/skills/auth/SKILL.md
Use when authenticating the CLI, managing API keys, or handling "Not logged in" errors. Covers login, logout, whoami, and env var auth.
npx skillsauth add Montte-erp/montte-nx @montte/cli/authInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
montte loginStores your API key locally in ~/.montte/config.json.
montte login --key <api-key>
montte login --key <api-key> --host https://api.staging.montte.com
| Option | Required | Description |
| -------- | -------- | ------------------------------------------------------------- |
| --key | Yes | Your Montte API key (starts with mnt_live_ or mnt_test_) |
| --host | No | Override the API base URL (default: https://api.montte.com) |
montte logoutRemoves stored credentials from ~/.montte/config.json.
montte logout
montte whoamiPrints the first 8 characters of the active API key and the host if overridden.
montte whoami
# API Key: mnt_live...
# Host: https://api.staging.montte.com
Environment variables take precedence over the config file:
| Variable | Description |
| ---------------- | --------------------- |
| MONTTE_API_KEY | API key |
| MONTTE_HOST | API base URL override |
Useful for CI/CD pipelines:
MONTTE_API_KEY=${{ secrets.MONTTE_API_KEY }} montte transactions list --json
If you run a command without authentication you will see:
Not logged in. Run: montte login --key <your-api-key>
Fix: run montte login --key <key> or set MONTTE_API_KEY.
tools
Use when integrating @montte/hyprpay SDK to sync customer lifecycle with Montte. Covers createHyprPayClient setup, customers.create/get/update/list, subscriptions, usage ingestion, benefits, coupons, customer portal, HyprPayError handling, and the better-auth plugin for automatic customer creation on signup.
tools
Use when listing, filtering, creating, summarizing, or deleting financial transactions via the montte CLI. Covers all options for date ranges, types, account/category filters, and pagination.
tools
Use when managing transaction categories via the montte CLI: listing by type, creating parent or subcategories, archiving (soft delete), or permanently removing.
tools
Use when creating or checking monthly budget goals per category via the montte CLI. Covers listing progress (percent used), alert thresholds, and removing goals.