feat: add global .env file support#7
Closed
shrwnsan wants to merge 3 commits into
Closed
Conversation
Add comprehensive security review documentation with findings for high and medium severity issues including supply chain risks, GitHub Actions permissions, and secret exposure. Co-Authored-By: GLM <zai-org@users.noreply.github.com>
Scope gh pr comment permissions to only the PR being reviewed by using PR number variable instead of wildcard. Prevents compromised workflow token from commenting on arbitrary PRs. Resolves #2 Co-authored-by: GLM <zai-org@users.noreply.github.com>
Add support for ~/.agentbox/.env that loads before project-specific .env files. This enables centralized configuration for API keys and custom inference endpoints across all projects. Changes: - Load ~/.agentbox/.env first, then PROJECT_DIR/.env - Project env vars override global vars (Docker's last-wins behavior) - Add log message for discoverability when global .env is loaded - Document global .env usage in README with examples Co-Authored-By: GLM <zai-org@users.noreply.github.com>
Owner
Author
|
Closing - will recreate against dev branch (main is for upstream tracking only) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements global .env file support at ~/.agentbox/.env that loads before project-specific .env files, enabling centralized configuration for API keys and custom inference endpoints.
Closes #6
Changes
Use Case
Configure third-party inference providers (e.g., non-Anthropic inference services) without needing to set credentials per-project:
# ~/.agentbox/.env ANTHROPIC_BASE_URL=https://api.example.com/v1 ANTHROPIC_API_KEY=your-shared-key-hereBehavior
Alignment with Project Philosophy
🤖 Generated by Claude Code - GLM 4.7