opencode cannot take a key "from a command"
Only env or a file. The launch script takes the key from agentctl and puts it into the process environment.
Registry stores a single configuration, and agentctl renders the files of each harness. The table below shows the facts of checks as of 2026-12-06, not intentions.
Versions: codex 0.174.0, Claude Code 2.1.318, opencode 2.4.5 (V2 format), Hermes Agent v0.23.6 (image pinned by digest).
| Capability | codex | Claude Code | opencode | Hermes |
|---|---|---|---|---|
| Model through the gateway, Registry key per session | verified: agentctl llm-key command | verified: apiKeyHelper | verified: env/file only — run.sh takes the key from agentctl | verified: providers.<name>.key_cmd |
| MCP over HTTP: service token from the environment, tool call | verified: bearer_token_env_var | verified: headers ${VAR} | verified: {env:VAR}, oauth: false | verified: headers ${VAR} |
| Skills (SKILL.md and references/) are read from the harness directory | verified: ~/.codex/skills | verified: ~/.claude/skills | verified: ~/.config/opencode/skills | verified: ~/.hermes/skills |
| Platform instructions (AGENTS.md / CLAUDE.md) | partial / not verified: rendered, reading not verified | partial / not verified: same | no: not rendered | no: not rendered |
| System (managed) layer on Mac | partial / not verified: user-level ~/.codex | partial / not verified: per documentation | partial / not verified: per documentation | partial / not verified: per documentation |
| Model window is limited | partial / not verified: not verified | verified: CLAUDE_CODE_MAX_CONTEXT_TOKENS | verified: limit on the model | verified: context_length |
✓ verified, ◔ partial or not verified, ✕ not supported.
Only env or a file. The launch script takes the key from agentctl and puts it into the process environment.
In the model: section the command is not read, and the request goes out with a placeholder. The key works only inside providers.<name>.
Set the catalog model explicitly, otherwise it calls claude-*.
Without a limit it requests 32000 output tokens and hits the model window; the limit is set in the configuration.