Nninteractive_agent on mac

Hi everyone, and thanks @lassoan for the new nnInteractive_agent integration in Slicer, it’s a great addition.

I’m trying it on macOS (Slicer 5.12.4) with nnInteractive running remotely: an nninteractive-server v2.6 on a Windows PC (RTX 5080), exposed through an ngrok tunnel, started with --api-key.

In the Server panel I use “Internal server” with “nnInteractive runs on: nnInteractive server” and the tunnel URL. The connection fails with 401 Unauthorized on /claim, so the server is reachable but the key is not sent.

I couldn’t find a field for the nnInteractive server API key in the panel. The “API key file” field seems to be for the LLM only. From the nninteractive-agent README, I understand the client reads NN_INTERACTIVE_API_KEY from the environment, but Slicer launched from the Dock doesn’t inherit my shell variables.

Questions:

  1. Is there a way to provide the nnInteractive server key from the GUI that I missed? I’m using nninteractive from my mac a lot and it works well.
  2. Would a key field next to the server URL be possible in a future version? It would help anyone using a shared GPU server.

Happy to share logs or test anything. Thanks!