@pghoya2956/opencode-env-injector
v0.1.0
Published
opencode plugin that injects OPENCODE_OTLP_* env vars from macOS keychain and ~/.claude-otel-kit/opencode-config.yaml so plugin-otel can consume them
Maintainers
Readme
@pghoya2956/opencode-env-injector
opencode plugin that injects OPENCODE_OTLP_* environment variables for @devtheops/opencode-plugin-otel from:
- macOS keychain (
Claude Code-credentials→pluginSecrets."claude-otel-kit@infograb-platform".bearer_token) ~/.claude-otel-kit/opencode-config.yaml(agent.name, user.email, endpoint, protocol)
Designed to be listed before @devtheops/opencode-plugin-otel in ~/.config/opencode/opencode.json:
{
"plugin": [
"@pghoya2956/opencode-env-injector",
"@devtheops/opencode-plugin-otel"
]
}Why
opencode's opencode.json schema does not support an env key, and @devtheops/opencode-plugin-otel reads its config exclusively from process.env. This plugin bridges the gap without touching the user's shell profile.
License
MIT
