SwiftRelay

← All sprint notes

Can Claude Run Through SwiftRelay? API Proxy Setup Guide

First lapsEN

Claude Through SwiftRelay: A Clear Starting Point

Yes, Claude models can run through SwiftRelay, and the setup is refreshingly small. SwiftRelay is a pay-per-token API proxy, which simply means it connects your supported client to the models listed on its pricing page. You top up a balance, and each API call deducts only what that call used. There is no monthly fee, nothing to subscribe to, and no need to commit to a plan before you try it.

The short version is this: Claude models answer only through the official Claude Code or Claude Desktop client, and Claude Desktop needs version 2.1.285 or later. SwiftRelay supports up to 20 live API keys per account, so one balance can serve several of your own setups. Every call appears in your usage list with its tokens and cost, which makes it easy to see where your money goes.

That combination is useful for newcomers because it removes guesswork. You can see the price before you run a call, watch the cost afterwards, and stop whenever you like. There is no recurring charge waiting in the background. SwiftRelay is simply a funded balance that moves as you use it.

New accounts also receive a sign-up gift credit of $0.22. That is enough to take the first steps, run a test, and get familiar with the flow before making a larger top-up. The referral programme rewards sharing as well: you receive 14% of each top-up made by someone you invited, and 3% from the people they invite in turn. Rewards can be withdrawn once they reach the minimum of $4.86, or they can be moved into your SwiftRelay balance.

Connecting Claude Code in Three Short Steps

The headline promise of SwiftRelay is simple: connected in minutes, with three lines to copy and run. For Claude Code, you set the Anthropic base URL, set your authentication token, and start the client. Here are the exact lines:

01  export ANTHROPIC_BASE_URL=https://api.fastapirelay.com
02  export ANTHROPIC_AUTH_TOKEN=<your swft_ key>

claude

Your swft_ key is the API key associated with your SwiftRelay account. The Claude Code setup is designed for Claude models specifically. It is not a general-purpose switch for every tool on your computer, so if you already use Claude Code, this is a direct path into the SwiftRelay service.

If you prefer the desktop experience, the same Claude models are available through the official Claude Desktop client at version 2.1.285 or later. The important point for beginners is that Claude models run only through these two official Claude clients. You do not need to translate the request into a different protocol or rebuild your workflow around another tool.

Before you begin, top up your SwiftRelay balance. Available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. A small first top-up is a sensible way to test your own usage pattern. If you find that you have unused credit left, SwiftRelay refunds unused credit within 11 days of a top-up, minus what was used and the payment fee.

What Claude Models Cost Through SwiftRelay

SwiftRelay charges per 1M tokens, with separate figures for input, output and cache reads. The current prices on the SwiftRelay pricing page are clear enough to plan around:

  • Claude Fable 5.1 (claude-fable-5-1): input $3.44, output $17.18, cache read $0.2222.
  • Claude Haiku 4.5 (claude-haiku-4-5-20251001): input $0.3542, output $1.69, cache read $0.0278.
  • Claude Opus 5.5 (claude-opus-5-5): input $1.53, output $7.27, cache read $0.0694.
  • Claude Sonnet 5 (claude-sonnet-5): input $1.01, output $5.06, cache read $0.0889.
  • Claude Sonnet 5.5 (claude-sonnet-5-5): input $0.9792, output $4.89, cache read $0.0861.

Here is an example of how those figures work. If one call reads 1M input tokens and produces 1M output tokens on Claude Haiku 4.5, the input cost is $0.3542 and the output cost is $1.69, giving a total of $2.0442. If the same call reads 1M cached tokens instead, the cache read cost is $0.0278. These are examples, not fixed session charges: your real bill depends on the tokens your requests actually use.

Another example uses Claude Sonnet 5.5. A call with 1M input tokens and 100,000 output tokens would cost $0.9792 for input plus $0.489 for output, for a total of $1.4682. Once again, this is an example based on the listed per-token prices. SwiftRelay records the tokens and cost per call, so you can compare the estimate with the actual usage entry.

This per-token approach gives you a practical advantage over keeping your own subscription or official account: you pay for what you use rather than committing to a recurring arrangement. If your work is quiet one week and busy the next, your spending follows that pattern naturally.

Running Claude Desktop With the Same Balance

Claude Desktop is the second supported route for Claude models, provided you are on version 2.1.285 or later. The underlying principle is the same as with Claude Code: the official client handles the Claude conversation, while SwiftRelay provides the relay connection and charges against your funded balance.

For a newcomer, the practical sequence is straightforward. Create your SwiftRelay account, claim the $0.22 sign-up gift credit, choose a top-up amount, and copy your swft_ key. Use the Claude Code lines if you work in a terminal, or use Claude Desktop if that is where you prefer to write. Either way, check the usage list after your first call to confirm that the tokens and cost appear as expected.

Because SwiftRelay supports up to 20 live API keys per account, you can keep separate keys for different projects or clients. That keeps your setups organised without splitting your balance across multiple accounts. If a key ever needs to be replaced, the account structure gives you room to manage live keys rather than relying on a single shared secret.

Support is available through Messages in the SwiftRelay dashboard, and a dashboard login is required. There is no support email to hunt for. Since the dashboard already contains your usage list and Messages area, it is the natural place to check a charge or ask a question about a call.

Why Pay-Per-Token Feels Better for a First Run

A first run should not feel like a contract. With SwiftRelay, there is no monthly fee and nothing to subscribe to, so the decision to continue is based on your own usage rather than a renewal date. Top up a balance, run a few calls, read the cost per call, and decide what happens next.

The range of top-up amounts supports that approach. You can begin with $1.39, test with $6.94 or $13.89, and scale to $27.78, $69.44 or $138.89 when your workflow is established. If you change your mind within 11 days of a top-up, unused credit can be refunded, minus what was used and the payment fee. That gives you room to experiment while keeping the downside small.

The referral rewards add another reason to keep the account funded. Rewards can sit in your balance and cover future calls, or you can withdraw them once they reach $4.86. Either choice keeps the reward useful without forcing a particular spending pattern.

It is also worth knowing that SwiftRelay serves more than Claude. GPT, DeepSeek and the other remaining models are available through the OpenAI-compatible endpoint, while Gemini models use their native protocol through Gemini CLI. That wider selection means your SwiftRelay balance can support different kinds of work, even though Claude models follow their own strict client route.

Your First Claude Call on SwiftRelay

You do not need a long tutorial to get moving. Create your SwiftRelay account, take the $0.22 sign-up gift credit, top up the amount that suits your test, and copy your swft_ key. Then paste the three Claude Code lines, start the client, and make a request. Open the dashboard to see the tokens and cost for that call.

From there, you can choose the Claude model that matches your budget and workload, compare the per-token prices on the pricing page, and keep an eye on every entry in your usage list. SwiftRelay gives you a clean start, transparent metering and the freedom to top up again when you are ready.

Copy the three lines, run your first Claude call, and sign up for SwiftRelay today.

Keep reading

Back for another lap?Log in