1.1 KiB
1.1 KiB
| description |
|---|
| Show the Interweb Mozambique API key mode, its permissions and the AI credit balance, without printing the key. |
Check the user's Interweb Mozambique setup and give a short summary. Never print, echo or log the key.
- Run
test -n "$INTERWEB_API_KEY" && echo set || echo missingin the terminal. - If it is set, run
curl -sS "https://api.interweb.co.mz/v1/token" -H "Authorization: Bearer $INTERWEB_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
interweb-aiMCP server is enabled, call itsget_balancetool and report the AI credits. Otherwise runcurl -sS "https://api.interweb.co.mz/v1/ai/balance" -H "Authorization: Bearer $INTERWEB_API_KEY". - If the key is missing or answers
401, explain how to create one in the API Center (https://www.meu.interweb.co.mz/api-center.php), setINTERWEB_API_KEYin the shell profile and open Cursor again.
Answer in the language the user writes in, in five lines or fewer.