If one has no codex subscription and uses ONLY the API directly (like me), subagent spawn fails with:
stderr: No API key found for openai-codex. Use /login to log into a provider via OAuth or API key. See:
C:\Users\Ari\AppData\Roaming\npm\node_modules\@earendil-works\pi-coding-agent\docs\providers.md
C:\Users\Ari\AppData\Roaming\npm\node_modules\@earendil-works\pi-coding-agent\docs\models.md```
https://github.com/cortexkit/magic-context/blame/d576723637c9db07ac000f1804c8504ba85867c7/packages/plugin/src/shared/harness-provider-map.ts#L24-L31
If one has no codex subscription and uses ONLY the API directly (like me), subagent spawn fails with: