Skip to content

Plan for issue #8#9

Open
github-actions[bot] wants to merge 1 commit intomainfrom
plan/issue-8-20260112061326
Open

Plan for issue #8#9
github-actions[bot] wants to merge 1 commit intomainfrom
plan/issue-8-20260112061326

Conversation

@github-actions
Copy link

This PR contains a plan for issue #8.

Plan Overview

The plan proposes supporting multiple LLM providers (z.ai, MiniMax, and any OpenAI-compatible API) through the existing Claude Code GitHub Action by using provider-agnostic configuration variables. The key insight is that the anthropics/claude-code-action already supports custom base URLs and models, so we only need to add configuration for provider selection rather than creating provider-specific workflows.

Key Changes:

  • Rename ANTHROPIC_BASE_URLPROVIDER_BASE_URL
  • Rename ANTHROPIC_MODELPROVIDER_MODEL
  • Add backward compatibility fallback
  • Create provider setup documentation

This approach is backward compatible and requires no new GitHub Actions or major architectural changes.

Closes #8

Comment on lines +83 to +95
Replace:
```yaml
env:
ANTHROPIC_BASE_URL: ${{ vars.ANTHROPIC_BASE_URL }}
ANTHROPIC_MODEL: ${{ vars.ANTHROPIC_MODEL }}
```

With:
```yaml
env:
PROVIDER_BASE_URL: ${{ vars.PROVIDER_BASE_URL }}
PROVIDER_MODEL: ${{ vars.PROVIDER_MODEL }}
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Where is this modified?
The env keys of the action cannot be changed since that is what claude relies on.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're absolutely right! I apologize for the confusion in the plan.

The plan is misleading here. The env keys (ANTHROPIC_BASE_URL, ANTHROPIC_MODEL) cannot be changed because that's what the claude-code-action expects.

What can be changed are the GitHub repository variable names that populate these values:

env:
  ANTHROPIC_BASE_URL: ${{ vars.PROVIDER_BASE_URL }}  # Was vars.ANTHROPIC_BASE_URL
  ANTHROPIC_MODEL: ${{ vars.PROVIDER_MODEL }}        # Was vars.ANTHROPIC_MODEL

This way:

  • Users configure provider-agnostic repository variables (PROVIDER_BASE_URL, PROVIDER_MODEL)
  • The workflow still passes them to the action using the expected ANTHROPIC_* keys

I'll update the plan to clarify this distinction.

@tomzx tomzx force-pushed the main branch 4 times, most recently from c69f792 to 47a5f71 Compare February 3, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support other providers than Anthropic

1 participant