Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ slug: "claude-code-configuration-support"
date: "2025-09-08"
title: "Claude Code Configuration Now Supported"
summary: "Configure Claude Code to use any LLM model through LLMGateway's unified API with simple environment variable setup."
draft: true
image:
src: "/changelog/claude-code-configuration-support.png"
alt: "Claude Code configuration support on LLM Gateway"
Expand All @@ -21,7 +20,8 @@ Set up Claude Code with LLMGateway using three environment variables:
```bash
export ANTHROPIC_BASE_URL=https://api.llmgateway.io
export ANTHROPIC_AUTH_TOKEN=llmgtwy_.... # your llmgateway.io api key here
export ANTHROPIC_MODEL=glm-4.5v # choose your model with tool support
# optionally, choose your model, otherwise it will use the default Claude model via LLMGateway
export ANTHROPIC_MODEL=gpt-5 # choose your model with tool support
```
Comment on lines +23 to 28

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Align model value format with the “Popular Model Options” list (provider/model).

Example list items use provider-qualified names (e.g., openai/gpt-5), but the snippet sets ANTHROPIC_MODEL=gpt-5. This can confuse users and may not route as intended if aliases aren’t supported. Prefer a fully qualified value or explicitly document alias support.

Apply this diff:

-# optionally, choose your model, otherwise it will use the default Claude model via LLMGateway
-export ANTHROPIC_MODEL=gpt-5 # choose your model with tool support
+# optionally, choose your model (provider/model); otherwise the default Claude model via LLMGateway is used
+export ANTHROPIC_MODEL=openai/gpt-5 # choose your model with tool support

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In apps/ui/src/content/changelog/2025-09-08-claude-code-configuration-support.md
around lines 23 to 25, the example sets ANTHROPIC_MODEL=gpt-5 which is
inconsistent with the "Popular Model Options" that use provider-qualified names;
update the snippet to use a fully-qualified provider/model value (e.g.,
anthropic/gpt-5) or add a short note stating that unqualified aliases like
"gpt-5" are supported by the system, and ensure the example and surrounding text
consistently use the provider-qualified format.


## 🚀 Key Benefits
Expand All @@ -30,8 +30,6 @@ export ANTHROPIC_MODEL=glm-4.5v # choose your model with tool support

**Cost Optimization**: Choose the most cost-effective model for your specific tasks while maintaining Claude Code's full functionality.

**Tool Support**: Use models that support function calling and tool use for advanced coding workflows.

**Unified Interface**: Single configuration gives you access to the entire ecosystem of LLM models.

## 🎯 Popular Model Options
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
id: "20"
slug: "claude-code-50-percent-off"
date: "2025-09-19"
Comment on lines +2 to +4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

🧩 Analysis chain

Ensure id/slug uniqueness across changelog entries.

Conflicts can break listings or routes.


🏁 Script executed:

#!/bin/bash
# Check duplicate ids
rg -n '^id:\s*"[0-9]+"' apps/ui/src/content/changelog | awk -F'"' '{print $2}' | sort | uniq -d

# Check duplicate slugs
rg -n '^slug:\s*"' apps/ui/src/content/changelog | awk -F'"' '{print $2}' | sort | uniq -d

Length of output: 2


🏁 Script executed:

#!/bin/bash
set -euo pipefail
echo "Searching for files with id \"19\" under apps/ui/src/content/changelog..."
rg -n -S '^id:\s*"19"' apps/ui/src/content/changelog || true

echo
echo "Unique files containing id \"19\":"
rg -l -S '^id:\s*"19"' apps/ui/src/content/changelog || true

echo
echo "Showing id/slug lines for each matched file:"
rg -l -S '^id:\s*"19"' apps/ui/src/content/changelog || true | while IFS= read -r f; do
  echo "---- $f ----"
  rg -n -S '^(id|slug):' "$f" || true
done

Length of output: 599


Duplicate changelog id "19" found — fix required

id "19" appears in:

  • apps/ui/src/content/changelog/2025-09-08-claude-code-configuration-support.md
  • apps/ui/src/content/changelog/2025-09-11-alibaba-qwen-models.md

Assign a unique id to one of these entries (and verify slugs) to avoid broken listings/routes.

🤖 Prompt for AI Agents
In apps/ui/src/content/changelog/2025-09-19-claude-code-50-percent-off.md around
lines 2–4, there are duplicate changelog ids (id "19" already used in
2025-09-08-claude-code-configuration-support.md and
2025-09-11-alibaba-qwen-models.md); pick a unique id value (one not present in
any other changelog file), update the id field in the appropriate file to that
unique number, and verify the corresponding slug(s) remain correct so
routes/listings are not broken.

title: "50% Off Claude Code - Limited Time Offer"
summary: "Get 50% off Claude Code for a limited time. Use any model via LLMGateway's unified API."
image:
src: "/changelog/claude-code-50-percent-off-09-19.png"
alt: "Claude Code 50% off limited time offer"
width: 1768
height: 677

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

🧩 Analysis chain

Verify image asset exists and dimensions are correct.

Prevent broken images on the changelog page.


🏁 Script executed:

#!/bash
# Check image exists anywhere in the repo
fd -a 'claude-code-50-percent-off-09-19.png'

# Optional: spot-check other changelog images referenced by this PR
rg -n '\/changelog\/.*\.png' apps/ui/src/content/changelog -n

Length of output: 86


🏁 Script executed:

#!/bin/bash
set -euo pipefail
echo "Searching for exact image filename..."
if command -v fd >/dev/null 2>&1; then
  fd -HI --hidden --follow 'claude-code-50-percent-off-09-19.png' || true
else
  rg --files | rg -n 'claude-code-50-percent-off-09-19.png' || true
fi

echo
echo "Listing PNG references under apps/ui/src/content/changelog..."
rg -n --hidden -S '/changelog/.*\.png' apps/ui/src/content/changelog || true

# If the file is found, attempt to print filesystem info and image dimensions
file_path=$(fd -HI --hidden --follow 'claude-code-50-percent-off-09-19.png' -0 2>/dev/null | tr '\0' '\n' | head -n1 || true)
if [ -n "$file_path" ]; then
  echo
  echo "Found image at: $file_path"
  ls -l "$file_path" || true

  if command -v identify >/dev/null 2>&1; then
    identify -format "identify: %w %h\n" "$file_path" || true
  else
    python - <<'PY' || true
import sys
p = sys.argv[1]
try:
    from PIL import Image
except Exception as e:
    print("Pillow not installed; skipping dimension check:", e)
    raise SystemExit(0)
try:
    img = Image.open(p)
    print("PIL dims: {}x{}".format(img.width, img.height))
except Exception as e:
    print("Failed to read image dimensions:", e)
PY "$file_path"
  fi
else
  echo
  echo "Image not found in repo."
fi

Length of output: 3436


Missing changelog image — file not in repo; add or fix path

  • apps/ui/src/content/changelog/2025-09-19-claude-code-50-percent-off.md (lines 8–11) references /changelog/claude-code-50-percent-off-09-19.png but the image asset is not present in the repository — add the image to the appropriate static/changelog directory or update the src to an existing asset.
  • Frontmatter sets width: 1768 and height: 677 — ensure the committed image matches these dimensions or update the width/height values.
🤖 Prompt for AI Agents
In apps/ui/src/content/changelog/2025-09-19-claude-code-50-percent-off.md around
lines 8 to 11 the frontmatter references
/changelog/claude-code-50-percent-off-09-19.png which is missing from the repo;
add the PNG to the app's static/changelog directory (e.g.
apps/ui/public/static/changelog/) using the exact filename and case, or update
the src to point to an existing asset path; ensure the committed image matches
the frontmatter width: 1768 and height: 677 (or update those values to the
image's actual pixel dimensions), then commit the image and frontmatter change
so the path resolves in production.

---

🎉 **Limited Time: 50% Off Claude Code via RouteWay!**

For a limited time, get **50% off Claude Code** through our RouteWay provider integration.

## Setup Instructions

To access Claude Code with the 50% discount, configure these environment variables:

```shell
export ANTHROPIC_BASE_URL=https://api.llmgateway.io
export ANTHROPIC_AUTH_TOKEN=llmgtwy_.... # your llmgateway.io api key here

```

### Optional Variable

```shell
# optionally, choose your model, otherwise it will use the default Claude model via LLMGateway
export ROUTEWAY_MODEL=gpt-5
```
Comment on lines +30 to +38

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

ROUTEWAY_MODEL likely not read by Claude Code; use ANTHROPIC_MODEL for consistency.

Claude Code typically reads ANTHROPIC_* vars. Introducing ROUTEWAY_MODEL risks copy‑paste breakage. Recommend using ANTHROPIC_MODEL with provider/model values, matching the 2025‑09‑08 post.

-# optionally, choose your model, otherwise it will use the default Claude model via LLMGateway
-export ROUTEWAY_MODEL=gpt-5
+# optionally, choose your model (provider/model); otherwise the default Claude model via LLMGateway is used
+export ANTHROPIC_MODEL=openai/gpt-5
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
```shell
# optionally, choose your model, otherwise it will use the default Claude model via LLMGateway
export ROUTEWAY_MODEL=gpt-5
```
🤖 Prompt for AI Agents
In apps/ui/src/content/changelog/2025-09-19-claude-code-50-percent-off.md around
lines 30 to 33, the snippet sets ROUTEWAY_MODEL which Claude Code likely won't
read; change the environment variable to ANTHROPIC_MODEL and provide the
provider/model format used elsewhere (e.g.
ANTHROPIC_MODEL="anthropic/claude-2.1" or similar) so the runtime reads the
correct variable consistently with the 2025-09-08 post.


---

Don't miss this limited-time opportunity to access Claude Code at 50% off via RouteWay!