1 KiB
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.
- Run
test -n "$MOZOUT_API_KEY" && echo set || echo missingin the terminal. - If it is set, run
curl -sS "https://api.mozout.com/v1/token" -H "Authorization: Bearer $MOZOUT_API_KEY"and reportdata.mode(sandbox or production),data.permissions,data.expires_atand the spending limit indata.spending. Do not showdata.suffixor any part of the key. - If the
mozout-aiMCP server is enabled, call itsget_balancetool and report the AI credits. Otherwise runcurl -sS "https://api.mozout.com/v1/ai/balance" -H "Authorization: Bearer $MOZOUT_API_KEY". - 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), setMOZOUT_API_KEYin the shell profile and open Cursor again.
Answer in the language the user writes in, in five lines or fewer.