cursor-plugin/commands/status.md
2026-11-28 15:28:07 +02:00

1 KiB

description
Show the MozOut API key mode, its permissions and the AI credit balance, without printing the key.

Check the user's MozOut setup and give a short summary. Never print, echo or log the key.

  1. Run test -n "$MOZOUT_API_KEY" && echo set || echo missing in the terminal.
  2. If it is set, run curl -sS "https://api.mozout.com/v1/token" -H "Authorization: Bearer $MOZOUT_API_KEY" and report data.mode (sandbox or production), data.permissions, data.expires_at and the spending limit in data.spending. Do not show data.suffix or any part of the key.
  3. If the mozout-ai MCP server is enabled, call its get_balance tool and report the AI credits. Otherwise run curl -sS "https://api.mozout.com/v1/ai/balance" -H "Authorization: Bearer $MOZOUT_API_KEY".
  4. If the key is missing or answers 401, explain how to create one in the API Center (https://www.my.mozout.com/api-center.php), set MOZOUT_API_KEY in the shell profile and open Cursor again.

Answer in the language the user writes in, in five lines or fewer.