Companion code for I gave Codex Cloud a way to call my DGX Sparks. These are two setups. Start with one text endpoint, then add Studio and Qwen if you want to reproduce the video demo. The scripts use Python 3 and the standard library.
Start with an OpenAI-compatible API on the Spark head. The example backend listens at 127.0.0.1:8888. Check for an existing mapping and, if HTTPS 443 is available for this API, add one:
curl -fsS http://127.0.0.1:8888/v1/models