Infisical

Store your TheRouter inference key in your Infisical project as THEROUTER_API_KEY. After authenticating the Infisical CLI and selecting the project and environment, start the server process with secret injection:

bash
infisical run -- python app.py

Your application reads the environment variable and configures the OpenAI client as shown in the Python guide. Keep secrets out of client-side code and logs.

This is generic environment-variable injection; it does not create a native TheRouter connection or automatically rotate API keys. Configure and test your own key-rotation process separately. See Infisical CLI documentation.

Help & contact