Create the command-line Python chat app described in this MandAPI recipe. Use the OpenAI Python client with base_url https://api.mandapi.com/v1 and read MANDAPI_API_KEY and MANDAPI_MODEL_ID from the environment. Provide models, once, stream, and chat modes. Preserve streaming and local message history. Do not hard-code or print a key. Start with local syntax checks. Make a tiny live request only if I provide a usable key and authorize it. Report the commands run and any missing settings.