[3558437] DrupalPod-AI-QA Better AI API key injection/selection
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3561528. -->
Reported by: [littlepixiez](https://www.drupal.org/user/2568718)
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>In Progress<br>
<strong>Check-in Date: </strong>TBC<br>
<strong>Additional Collaborators: </strong><br>
<em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br>
[/Tracker]</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Child issue of: <a href="https://www.drupal.org/project/ai_initiative/issues/3558437">https://www.drupal.org/project/ai_initiative/issues/3558437</a><br>
Development: <a href="https://github.com/drupalforge/drupalpod-ai-qa/tree/main">https://github.com/drupalforge/drupalpod-ai-qa/tree/main</a></p>
<p>QA testers need to be able to easily inject or override AI API keys to test provider functionality. Currently this is unclear or cumbersome.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>- Clear method for injecting API keys (via DP_AI_VIRTUAL_KEY or similar)<br>
- Documentation on how to configure provider credentials<br>
- Works with LiteLLM and other providers</p>
<p><strong>Acceptance criteria</strong><br>
- I can easily inject/override an AI API key<br>
- Provider functionality works with my key<br>
- Process is documented</p>
<h3 id="summary-remaining-tasks">Target date or deadline</h3>
<p>TBD</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>- Decide on API key input flow (environment variable, UI, etc.)<br>
- Development<br>
- Testing<br>
- Documentation</p>
> Related issue: [Issue #3558437](https://www.drupal.org/node/3558437)
issue