Skip to content

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 15 Mar 01:58
· 14 commits to main since this release

What's Changed

Bug Fixes

  • Shell-independent API key resolution: Fixed "Missing Authentication header" errors when running sidecar in non-interactive shells (Claude Code, CI/CD, cron jobs). Sidecar now automatically loads credentials from multiple sources in priority order: existing environment variables, ~/.config/sidecar/.env, then ~/.local/share/opencode/auth.json. This resolves the issue where API keys exported in ~/.zshrc weren't available in non-interactive contexts.

Improvements

  • Unified credential loading: Consolidated scattered credential loading logic into a new env-loader.js module that runs at CLI startup, ensuring all available API keys are projected into process.env before any validation occurs.
  • Better error messages: Updated validation errors to provide clear troubleshooting steps for missing credentials, explaining why non-interactive shells don't inherit ~/.zshrc exports and offering three resolution paths.
  • Legacy key migration: Automatically migrates deprecated GEMINI_API_KEY to GOOGLE_GENERATIVE_AI_API_KEY during credential loading.

Documentation

  • Shell profile guidance: Added note in skill documentation warning zsh users that ~/.zshrc exports only work in interactive shells, with recommendations to use ~/.zshenv or sidecar setup instead.
  • Troubleshooting section: Added new troubleshooting entry covering the "Missing Authentication header" error in Claude Code and CI environments.
  • Design specification: Added detailed technical specification documenting the shell-independent key resolution design, including priority order, multi-model review feedback, and testing approach.

Full Changelog: v0.5.0...v0.5.1