SwiftRelay

← All sprint notes

Roo Code Setup on SwiftRelay: Models That Pair Correctly

Agent quick startsEN

The Roo Code trap that turns a quick setup into a guessing game

Roo Code is ready to work, so the first lap of your SwiftRelay setup should feel simple: point the client at the right endpoint, add your key, choose a compatible model, and start making calls. The trap is assuming that every model can be dropped into every client. Roo Code uses the OpenAI-compatible endpoint, which means it pairs with GPT and DeepSeek models. That is the clean lane to stay in.

Think of it as a pit stop. You do not need to rebuild the car; you need the correct fuel line. If a model name does not belong to the GPT or DeepSeek group available through SwiftRelay, it is the wrong line for Roo Code. Choosing from the supported list saves you from a longer afternoon of failed requests and unexplained responses.

There is a second trap in the mental picture: treating SwiftRelay as a subscription you have to manage. It is not. SwiftRelay is a pay-per-token API relay with no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used. That makes the setup feel lighter because you are not signing up for another recurring commitment. You are simply giving the relay a balance to work from.

The endpoint trap: one base URL, one key, and no detours

The next common trap is fussing over several connection paths when there is a straightforward route. Roo Code belongs with the OpenAI-compatible clients. For those clients, SwiftRelay provides the base URL https://api.fastapirelay.com/v1, and the API key goes in the API key field as a swft_ key.

Here are the exact configuration lines to keep nearby:

01  export OPENAI_BASE_URL=https://api.fastapirelay.com/v1
02  export OPENAI_API_KEY=<your swft_ key>

Those two lines are the reference point for the endpoint and key. Roo Code can then be pointed at that same OpenAI-compatible base URL with the same kind of swft_ key. The important check is not how many settings you touch. It is whether the base URL and key both match the SwiftRelay connection.

Another trap is copying a key from the wrong place or wondering whether you need a separate key for every model. SwiftRelay supports up to 20 live API keys per account. That gives you room to organise separate keys for separate projects, but it does not mean a new key is required for every model. Create what you need, keep it tidy, and use the same compatible endpoint.

Finally, resist the urge to complicate a working configuration. SwiftRelay is built around a quick start: copy three lines and run. For Roo Code, the essentials are equally tidy. One base URL, one swft_ key, and a model from the correct group. Clean in, clean out, no unnecessary lap around the track.

The model trap: match the model family before you measure the cost

The most expensive-looking mistake can happen before a single token is spent: choosing a model that is not on the Roo Code pairing list. Roo Code works with GPT and DeepSeek models through the OpenAI-compatible endpoint. Check the family first, then compare prices. SwiftRelay shows current prices per 1M tokens, so the decision can be made with figures in front of you rather than vague impressions.

Here is the current shortlist worth keeping on your screen:

  • DeepSeek V4 Flash (deepseek-v4-flash): input $0.2639, output $1.06, cache read $0.006944 per 1M tokens.
  • DeepSeek V4 Pro (deepseek-v4-pro): input $1.17, output $3.51, cache read $0.0389 per 1M tokens.
  • GPT-6 Astra (gpt-6-astra): input $0.6597, output $3.28, cache read $0.0653 per 1M tokens.
  • GPT-6.1 Sol (gpt-6.1-sol): input $0.1736, output $0.8542, cache read $0.0347 per 1M tokens.

Worked example: suppose one Roo Code call uses 100,000 input tokens and 20,000 output tokens with GPT-6.1 Sol. Using the listed prices, the input portion is $0.01736 and the output portion is $0.017084, for a total of $0.034444. That is an example, not a promise about your own traffic, but it shows the point clearly. Because SwiftRelay deducts only what each call used, the balance reflects real usage instead of a flat recurring charge.

Usage lists also show tokens and cost per call. Use that view to spot the trap after launch as well. If one model is producing a long stream of output, the usage view makes the cost visible. If another request is tiny, you can see that too. Good value starts with a clear bill, and SwiftRelay gives you the figures to check it yourself.

The balance trap: top up in the size that fits your work

Another trap is overthinking the top-up. SwiftRelay sells no plans and asks for no monthly commitment. You choose from six top-up amounts: $1.39, $6.94, $13.89, $27.78, $69.44, or $138.89. That range gives you a small first run or a larger balance for heavier work, without turning the decision into a long-term purchase.

For a first test, the smaller options keep the stopwatch short. Put in a modest balance, connect Roo Code, and watch the usage list. If your workload grows, add more later. The model is simple: top up a balance, make calls, and let actual usage reduce it.

Do not confuse pay-per-token billing with keeping your own subscription or official account. SwiftRelay is a relay, and its billing follows token use. There is no monthly fee and nothing to subscribe to. That is useful when you want straightforward access without carrying a separate recurring charge for the same kind of activity.

New accounts also receive $0.22 in sign-up gift credit. It is a small starter cushion rather than the main event, but it gives you another reason to begin with a modest top-up and check the whole loop: key, endpoint, model, usage, cost. A clean first run is the goal.

The support trap: use the dashboard route that already exists

The practical trap here is searching for a support channel that SwiftRelay does not use. Support is provided through Messages in the SwiftRelay dashboard, and access requires login. There is no support email to hunt for. Once you are signed in, Messages is the place to send your question.

That route is useful during setup because most Roo Code issues come down to a small number of checks. Confirm that the base URL is https://api.fastapirelay.com/v1. Confirm that the API key is a swft_ key. Confirm that the selected model belongs to the GPT or DeepSeek group that Roo Code can use. Then check that the balance has room for the call.

Referral rewards follow a clear structure too. You receive 14% of each top-up made by someone you invited, and 3% from the people they invite. Rewards can be withdrawn once you reach the $4.86 minimum, or they can be moved into your balance. Either choice has a purpose: withdrawal gives you a separate reward flow, while moving the reward into the balance puts it straight to work on API usage.

One more trap worth clearing is the refund timeline. Unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee. That is a defined window, not a vague promise. Keep your top-up record handy if you need it, and make the decision while the window is open.

Your clean Roo Code run starts with three small checks

You do not need a long checklist to get Roo Code moving on SwiftRelay. First, top up a balance from the available amounts. Second, set the OpenAI-compatible base URL to https://api.fastapirelay.com/v1 and enter your swft_ key. Third, choose a GPT or DeepSeek model from the list and run a test call.

Then use the usage view to confirm the tokens and cost per call. If the result looks right, you have a working loop: no monthly fee, nothing to subscribe to, and charges that follow actual use. If something looks off, check the endpoint, key, model family, and balance in that order. Four checks, one clean pit stop.

SwiftRelay also keeps the account tidy for a larger workload, with up to 20 live API keys per account. Use separate keys when separate projects need separate tracking, and keep each one pointed at the same compatible endpoint.

Stopwatch ready, keys in hand, Roo Code lined up on the OpenAI-compatible route? Sign up for SwiftRelay, top up your balance, and run your first clean call today.

Keep reading

Back for another lap?Log in