Three lines to put Claude Desktop on SwiftRelay
Here is the advanced version of the SwiftRelay quick start. You are not hunting through a settings panel, not filling in a dozen fields, and not guessing which endpoint belongs to which client. You paste three lines, and the official Claude client has what it needs to talk to the relay.
First, create your SwiftRelay key and make sure your balance is topped up. The key you receive begins with swft_. When that is done, these are the three lines:
01 export ANTHROPIC_BASE_URL=https://api.fastapirelay.com 02 export ANTHROPIC_AUTH_TOKEN=<your swft_ key>
claude
Line one points the Claude client at the SwiftRelay API host. Line two hands over your key as the authentication token. Line three starts the official Claude client from your terminal. Set them in the shell you launch your Claude session from, whether that session is Claude Desktop 2.1.285 or later, or the official Claude Code client, and the same three-line pattern applies.
That is the whole setup. No account juggling, no per-seat licences to negotiate, no monthly fee and nothing to subscribe to. You top up a balance, and every call deducts only what it used. Stopwatch out, terminal open, three lines pasted, first run on your way.
The version check that saves a wasted start
Most failed setups on a relay are not relay failures. They are client-version mismatches, an expired key, or a balance that has run down to nothing. Handle those three things before you launch and your first run behaves like a clean first lap instead of a pit stop.
- Use Claude Desktop 2.1.285 or later. Claude models answer only through the official Claude Code or Claude Desktop client, and that version floor is the line the fact sheet draws. Check the version once and you are done.
- Confirm the key prefix. The token in the second line must be your swft_ key from SwiftRelay, not a leftover key from another tool.
- Check the balance. SwiftRelay deducts per call, so an empty balance means an empty response. A small top-up is enough to get you moving.
- Keep the host exact. The Claude base URL is https://api.fastapirelay.com. Do not add a path to it, and do not carry over a path from an OpenAI-style client configuration.
One more detail worth internalising: the environment variables have to live in the shell that actually starts Claude. Export them in one terminal, then launch from another, and the client will be looking for configuration that is not there. Export them in the same session, or add them to the profile your shell loads on start, and the three lines become a repeatable launch ritual.
What SwiftRelay actually charges, token by token
Because SwiftRelay is a pay-per-token API relay, the number that matters is not a flat monthly figure. It is the price of the tokens your request consumes. The current SwiftRelay pricing page lists the following rates per 1M tokens for the Claude family:
- 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.
Read those figures as a menu rather than a bill. A short question to Haiku 4.5 and a long drafting job on Fable 5.1 are priced very differently, and the relay lets you choose per request instead of committing to one tier for the month.
Example: say you spend a day working with Claude Sonnet 5.5 and your usage totals 1M input tokens and 100K output tokens. Input costs $0.9792, output costs $0.489, and the day comes to $1.4682 in token charges. Add a cache read of 1M tokens at $0.0861 and the same day becomes $1.5543. The point of the example is control: you can see the shape of the spend before it happens, because there is no fixed monthly charge sitting over the top of it.
Top up once and let each call deduct its own cost
SwiftRelay sells no plans. There is no monthly fee, nothing to subscribe to, and no commitment to keep a certain spend level. You add credit, and the balance behaves like fuel in the tank: each call takes what it uses and leaves the rest where it is.
The available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. Start small to validate the three-line setup, then scale up once you trust your workflow. New accounts also receive $0.22 in sign-up gift credit, which is enough to cover a handful of real calls and confirm that the pipeline is wired correctly.
Refunds are straightforward too. Unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee. That window is worth noting in your own notes, because it is the one deadline attached to your balance.
Referrals add another angle. You receive 14% of each top-up made by someone you invited, and 3% from the people they invite in turn. Those rewards can be withdrawn once they reach the $4.86 minimum, or moved straight into your SwiftRelay balance to fund more calls.
And if something looks off, support runs through Messages in the dashboard, which requires a login. There is no support email to dig for, so keep the dashboard open alongside your terminal. It is where the conversation, the usage details and your keys all live in the same place.
Advanced moves once the first run is behind you
With the connection live, the next level of control comes from the dashboard. The usage list shows tokens and cost per call, so you can spot the expensive request rather than guessing at it. A single outsized output can be identified by call, compared against the day, and trimmed at the prompt instead of the invoice.
You can also run up to 20 live API keys per account. That is the advanced move for a busy setup: one key for a side project, one for a scheduled job, one for testing a new prompt style. Because each key is separate, the usage list tells you which workload is generating which spend, and revoking a single key does not disturb the rest of your work.
Model choice becomes the final lever. If a task is simple, Claude Haiku 4.5 at $0.3542 input and $1.69 output per 1M tokens keeps the cost small. If a task rewards deeper reasoning, you have Fable 5.1, Opus 5.5, Sonnet 5 and Sonnet 5.5 to choose from, with cache read rates listed for each so repeated context can be handled deliberately rather than accidentally.
Put the pieces together and the shape of SwiftRelay is clear: three lines to connect, per-token billing so you pay for what you use, top-ups from $1.39 upward, gift credit on sign-up, referral rewards, refunds on unused credit within 11 days, and a dashboard that shows you the tokens and the cost behind every call.
Stopwatch back at zero, balance topped up, three lines pasted, Claude Desktop ready to run on SwiftRelay — sign up now and take your first lap.