co-mono/packages
Carlos Villela def9e4e9a9
Support shell command execution for API key resolution in models.json (#762)
* Support shell command execution for API key resolution in models.json

Add ! prefix support to apiKey field in models.json to execute shell commands
and use stdout as the API key. This allows users to store API keys in secure
credential managers like macOS Keychain, 1Password, Bitwarden, or HashiCorp Vault.

Example: "apiKey": "!security find-generic-password -ws 'anthropic'"

The apiKey field now supports three formats:
- !command - executes shell command, uses trimmed stdout
- ENV_VAR_NAME - uses environment variable value
- literal - uses value directly

fixes #697

* feat(coding-agent): cache API key command results for process lifetime

Shell commands (! prefix) are now executed once and cached. Environment
variables and literal values are not cached, so changes are picked up.

Addresses review feedback on #762.

---------

Co-authored-by: Mario Zechner <badlogicgames@gmail.com>
2026-01-18 19:48:06 +01:00
..
agent docs(agent): update steering and options 2026-01-18 19:21:52 +01:00
ai Add [Unreleased] section for next cycle 2026-01-17 22:02:59 +01:00
coding-agent Support shell command execution for API key resolution in models.json (#762) 2026-01-18 19:48:06 +01:00
mom Add [Unreleased] section for next cycle 2026-01-17 22:02:59 +01:00
pods Release v0.49.0 2026-01-17 22:02:12 +01:00
tui docs: document Focusable interface propagation pattern for IME support 2026-01-18 17:27:16 +01:00
web-ui Add [Unreleased] section for next cycle 2026-01-17 22:02:59 +01:00