feat: Add Pi agent support and .env.example template (based on #57)#58
Closed
shrwnsan wants to merge 12 commits into
Closed
feat: Add Pi agent support and .env.example template (based on #57)#58shrwnsan wants to merge 12 commits into
shrwnsan wants to merge 12 commits into
Conversation
Add ~/.agentbox/config for persistent settings (tool, Java, Claude channel). Make Java opt-out with --no-java flag (backwards compatible). Add --cc-latest flag for latest Claude Code channel. Improve Java status message to avoid command-not-found errors. Config file supports bash key=value format with shebang for syntax highlighting. CLI flags override config file settings. Co-Authored-By: GLM <zai-org@users.noreply.github.com>
Override AGENTBOX_INCLUDE_OPENCODE=false when AGENTBOX_TOOL=opencode since the tool cannot run without being installed. Co-Authored-By: GLM <zai-org@users.noreply.github.com>
- Prefix all Docker ARGs with AGENTBOX_ for consistency (INCLUDE_JAVA, CC_CHANNEL, etc.) - Add AGENTBOX_SIMPLE_PROMPT arg for simple traditional Unix-style prompt (user@host:~) - Keep default oh-my-zsh theme for backwards compatibility - Maintain terminal size handling for better TTY support - Add projects/ and .agents/ to .gitignore Co-Authored-By: OpenCode <noreply@opencode.ai>
Add support for Pi coding agent (pi.dev) as an opt-in tool. - Add AGENTBOX_INCLUDE_PI build arg (default: false) - Auto-enable Pi when AGENTBOX_TOOL=pi is set - Mount ~/.pi/ directory for config persistence - Add Pi to tool validation and help text - Update entrypoint.sh to display Pi version Usage: AGENTBOX_TOOL=pi agentbox
- Template for ~/.agentbox/.env (global configuration) - Anthropic API key (required for Claude, Pi, OpenCode) - Optional LLM providers for Pi and OpenCode (OpenAI, Gemini, Mistral, Groq, etc.) - Docker host access configuration (AGENTBOX_EXTRA_HOSTS) - Clear authentication setup instructions for each tool - Documented config/auth directory mounts and precedence Co-authored-by: Amp <amp@ampcode.com>
- ANTHROPIC_AUTH_TOKEN (used by Claude Code) - ANTHROPIC_BASE_URL (API endpoint) - ANTHROPIC_MODEL variants (Opus, Sonnet, Haiku selection) - Kept ANTHROPIC_API_KEY for Pi compatibility - Both AUTH_TOKEN and API_KEY can be set to same value Co-authored-by: Amp <amp@ampcode.com>
Claude Code recommends AUTH_TOKEN over API_KEY. Kept both for Pi compatibility. Co-authored-by: Amp <amp@ampcode.com>
Replace generic beach emoji with 🤖 to match other tool icons Co-Authored-By: GLM <zai-org@users.noreply.github.com>
- Update --tool error message to include 'pi' option - Move ANTHROPIC_API_KEY to optional section in .env.example (Pi agent uses this variable, Claude Code uses ANTHROPIC_AUTH_TOKEN)
Contributor
Author
|
Closing this PR in favor of #60, which contains the same Pi agent support feature but is now based on upstream/main instead of feat/config-file. This makes the PR self-contained and not dependent on the config file feature. |
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
AGENTBOX_INCLUDE_PIbuild arg and--tool piflag.env.exampletemplate for API key configurationANTHROPIC_API_KEYvsANTHROPIC_AUTH_TOKENusage in .env.exampleDependency:
Based on
feat/config-file(PR #57) which adds config file support and optional toolchains.Changes
Pi Agent Support
AGENTBOX_INCLUDE_PIbuild arg (default: false)--tool piCLI flag for running Pi instead of Claude--tool piis selected~/.pidirectory for Pi configuration persistence.env.example Template
Bug Fixes
--toolerror message to list all three optionsTest plan
--tool piand verify Pi installs correctlyagentbox --tool pistarts Pi agent.env.exampletemplate covers necessary API keys