October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

How to Connect Bluehost AI Credits to Claude Code

Create a gateway key in the Bluehost Portal, set two environment variables, and Claude Code draws from your AI Credits. Here are the steps, billing effects and fixes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To run Claude Code on Bluehost AI Credits, create a gateway API key in the Bluehost Portal. Then set ANTHROPIC_API_KEY to that key and ANTHROPIC_BASE_URL to https://gateway.ai.bluehost.com. Launch claude and send a test prompt. You need an active credit balance first, and Bluehost lists the feature for Self-Managed VPS and VDS plans. Setting an API key also changes how Claude Code is billed, which is covered below.

What you need before you start

  • An eligible plan. Bluehost says AI Credits are available on Self-Managed VPS and VDS plans and lists Claude Code among compatible apps (Understanding AI Credits).
  • An active credit balance. Bluehost requires available credits before it lets you create API keys (How to Manage Your Bluehost API Keys).
  • Claude Code installed on the server. Bluehost’s guide assumes it is already installed on the VPS/VDS and reached over SSH.

Step 1: Create a gateway API key

  1. Open the Bluehost Portal and select Hosting.
  2. Choose Manage on the relevant package.
  3. Open AI Tooling, then Manage API Keys.
  4. Note the endpoint the page displays.
  5. Select + Create API Key, name the key, and create it.
  6. Copy the key and store it securely.

Bluehost shows the full key only once. If you lose it, you must create a replacement (source). The key spends your gateway balance, so keep it out of public documents, source control, shared workflows and screenshots. Bluehost also tracks usage per key, so a separate named key for each project or machine makes spending easier to read (source).

As an Amazon Associate I earn from qualifying purchases.

Step 2: Configure a fresh Claude Code install

Bluehost’s example connects to the server by SSH and appends two exports to /root/.profile:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
export ANTHROPIC_API_KEY="YOUR_AI_CREDITS_API_KEY"
export ANTHROPIC_BASE_URL="https://gateway.ai.bluehost.com"

Replace the placeholder with your real key on the server only. Then load the file, check the install, and start Claude Code:

source /root/.profile
claude --version
claude

With both variables set, Bluehost says Claude Code skips the Anthropic sign-in screen and goes straight into a working session (Bluehost Help Center).

/root/.profile is Bluehost’s example for the root user, not a universal location. The two variables are what matter. If you use a different account or shell, put them in whichever startup file that account loads.

If Claude Code is already signed in

An existing Claude Code login may take precedence over ANTHROPIC_BASE_URL. Bluehost’s advice:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Launch Claude Code.
  2. Run /logout, then exit.
  3. Set the two variables as in Step 2 and reload your profile.
  4. Relaunch claude.

Bluehost notes that it has not retested this existing-install route the way it has the fresh-install route. If it fails, try a clean install before assuming the gateway is at fault.

Step 3: Test the connection

claude -p "Say hello and confirm you're responding."

A normal reply with no authentication error means the route works. Bluehost’s suggested checks for a 401 or similar auth error are:

  • Check that the endpoint and the key match what the Portal shows.
  • Consider that the authentication method or response format may be mismatched.
  • Contact Bluehost support if the error persists.

To choose a model, Bluehost’s guide mentions the /model command inside Claude Code or the ANTHROPIC_DEFAULT_MODEL variable. Model IDs and per-token costs change, so take them from Bluehost’s live model list and pricing rather than from a copied example.

What changes in billing

Anthropic states that if ANTHROPIC_API_KEY is set, Claude Code uses it instead of your Claude Pro, Max, Team or Enterprise subscription. The result is API usage charges rather than your plan’s included usage (Anthropic Help Center). In this setup the key points at Bluehost’s gateway, so usage should draw down your Bluehost AI Credits. To return to plan billing, unset the variables and sign in with your Claude account again.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Route How it is set up Trade-offs
Bluehost AI Credits gateway Bluehost key in ANTHROPIC_API_KEY, Bluehost endpoint in ANTHROPIC_BASE_URL Needs an eligible VPS/VDS, an active balance and a gateway key. Credits are non-refundable and expire.
Claude plan sign-in Sign in with your Claude account A set ANTHROPIC_API_KEY overrides it and triggers API charges.

The published sources do not show that either route is cheaper in general. It depends on your workload and the model’s per-token cost.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Credit prices, expiry and refunds

These figures come from Bluehost’s help pages (September 2026), and Bluehost warns that rates can change. Check the Portal for live prices.

Credits Price
500 $5
1,000 $10
5,000 $50
10,000 $100
  • Each credit has a fixed retail value of $0.010. Model costs vary by token and model.
  • Balance validity is 12 months from your most recent purchase, and a new purchase resets the window for the whole balance. Your Portal shows your actual expiry date (Understanding AI Credits).
  • Credits are a one-time purchase with no subscription or automatic renewal. One account-level wallet is shared across eligible VPS/VDS instances (same source).
  • Purchases are final and non-refundable (How to Purchase Bluehost AI Credits), so start with a small pack.

Everything here follows Bluehost’s and Anthropic’s published documentation. Dashboard labels and eligibility can change, so confirm them in the Portal.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.