claude-code-action icon indicating copy to clipboard operation
claude-code-action copied to clipboard

What to configure my own base url

Open FlowerRealm opened this issue 1 year ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Workflow yml file If it's not sensitive, consider including a paste of your full Claude workflow.yml file.

API Provider

[ ] Anthropic First-Party API (default) [ ] AWS Bedrock [ ] GCP Vertex

Additional context Add any other context about the problem here.

FlowerRealm avatar Sep 07 '25 05:09 FlowerRealm

Can you elaborate? You shouldn't need to configure a base url.

ashwin-ant avatar Sep 07 '25 05:09 ashwin-ant

When I want to use some other model, I really need this

FlowerRealm avatar Sep 08 '25 11:09 FlowerRealm

You can set the environment variable ANTHROPIC_BASE_URL in the action or in the step to overwrite the default base url

...
- name: Run Claude Code
  id: claude
  uses: anthropics/claude-code-action@v1
  env:
    ANTHROPIC_BASE_URL: ${{ vars.YOUR_BASE_URL }}
  with:
    claude_code_oauth_token: ${{ secrets.YOUR_API_KEY }}
...

jlrosende avatar Sep 17 '25 07:09 jlrosende