Regional Guide · As of 2026-11-27

Claude Code in Brazil: Availability, Paying in USD, Endpoints and Portuguese Tips

Summary: This guide is for developers in Brazil who want to use Claude Code, Codex CLI and other coding agents through one QCode key. It covers availability, a five-minute setup, paying in US dollars with a Brazilian card or with USDT, the IOF and exchange spread your bank adds, choosing between the api and us endpoints, when the daily quota resets in Brasília time, and how to work in Brazilian Portuguese. Everything below was checked on 2026-11-27. QCode is an independent third-party API service and is not affiliated with Anthropic, OpenAI or any model vendor.

Updated 2026-11-27

Key facts

  • Availability: Brazil has generally appeared on both Anthropic's supported-regions list and OpenAI's supported-countries list, but both lists change, so check them yourself before you buy.
  • Currency: QCode prices are in USD (there is also a CNY list). Choose the USD tab; your bank converts the charge to reais.
  • Payment methods (USD): Visa or Mastercard credit or debit cards enabled for international online purchases, Apple Pay, Google Pay and crypto such as USDT.
  • Brazilian card costs: IOF and your bank's dollar spread apply on top of the USD price; rates change, so check your bank's current figures.
  • Plans: the Starter plan is $9 for 30 days with $5 of usage per day; pay-as-you-go packs start at $4 and are valid for 7 days. See /pricing.
  • Endpoints: api.qcode.cc is the default entry and us.qcode.cc covers North America and Europe; the same cr_ key works on both. Measure from your own network.
  • Reset time: the daily quota resets at 13:00 in Brasília (BRT, UTC−3); booster packs reset two hours after the daily reset, at 15:00.
  • Language: Claude Code accepts Portuguese prompts, and the site and docs both have Portuguese versions.

Is Claude Code available in Brazil?

QCode does not change any vendor's policy. Whether you can use Claude Code depends on Anthropic's supported-regions list, and whether you can use Codex depends on OpenAI's supported-countries list. Brazil has generally been included on both, but the lists change, and Anthropic's policy also considers where a company is registered and who owns or controls it, so a business should read the policy itself rather than rely on a summary. Before you commit a team, open both lists, find Brazil, and note the date you checked. Follow QCode's terms and your local rules as well.

Set up Claude Code in about five minutes

Setup has three parts: install Claude Code, point it at QCode, and confirm that the key works.

Windows. On 64-bit Windows 10 version 1809 or later, and Windows Server 2019 or later, the native installer runs in PowerShell and needs no administrator rights:

irm https://claude.ai/install.ps1 | iex

macOS and Linux. Install the npm package with Node.js 22 or later:

npm install -g @anthropic-ai/claude-code

Open a new terminal window afterwards and run claude --version; a version string means the program is on your PATH.

Connect Claude Code to QCode. Claude Code reads two environment variables. In a bash shell — macOS, Linux, Git Bash or WSL on Windows — export them for the current session:

# Git Bash / WSL
export ANTHROPIC_BASE_URL=https://api.qcode.cc/api
export ANTHROPIC_AUTH_TOKEN=cr_your_key
claude

To keep the settings across sessions, write them into ~/.claude/settings.json (%USERPROFILE%\.claude\settings.json on Windows):

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.qcode.cc/api",
    "ANTHROPIC_AUTH_TOKEN": "cr_your_key"
  }
}

Keep three rules: use the whole cr_ key, do not also set ANTHROPIC_API_KEY, and do not add /v1 or a trailing slash to the base URL. A trailing slash produces //v1/messages, and /v1 produces /v1/v1/messages; both return 404.

Codex CLI. Codex uses the OpenAI protocol at https://api.qcode.cc/openai with wire_api = "responses". A user-level ~/.codex/config.toml like the one below works as it is:

# ~/.codex/config.toml
model_provider = "qcode"
model = "gpt-6.2-sol"
model_reasoning_effort = "high"
model_reasoning_summary = "concise"

approval_policy = "on-request"
sandbox_mode = "workspace-write"

project_doc_max_bytes = 65536

[model_providers.qcode]
name = "qcode"
base_url = "https://api.qcode.cc/openai"
wire_api = "responses"
requires_openai_auth = true
request_max_retries = 4
stream_idle_timeout_ms = 300000

[model_providers.qcode-asia]
name = "qcode-asia"
base_url = "https://asia.qcode.cc/openai"
wire_api = "responses"
requires_openai_auth = true

[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp"]
startup_timeout_sec = 20

The key goes in ~/.codex/auth.json under OPENAI_API_KEY:

{
  "OPENAI_API_KEY": "cr_your_key"
}

On macOS and Linux, run chmod 600 on that file. Claude models are served only on the Anthropic endpoint and GPT models only on the OpenAI endpoint, so keep the two configurations separate. QCode's recommended default is claude-opus-5-5 for Claude Code and gpt-6.2-sol for Codex; the config above already sets the latter.

Paying from Brazil in US dollars

QCode prices are in US dollars. There is also a CNY price list; choose the USD tab, and your bank converts the charge to reais at its own rate.

Cards. Use a Visa or Mastercard credit or debit card enabled for international online purchases (compras internacionais). Some Brazilian cards block foreign merchants until you switch the feature on, so check it in your banking app before you try. Some cards then ask for a 3-D Secure confirmation in the app, so keep your phone nearby.

IOF and the exchange spread. International card purchases from Brazil are subject to IOF, and your bank may add a spread on top of its dollar rate. QCode sets neither one, and both change, so check your bank's current IOF rate and dollar rate before you pay, and treat the final figure in reais as an estimate.

Wallets. Apple Pay and Google Pay go through the same international checkout as cards, so the card behind the wallet must allow international online payments.

If a card is declined. Check the card's limit and its international-purchases setting, or try another Visa or Mastercard. If the card still fails, pay with USDT: open the top-up page, use the coin and network it shows, send the exact amount, and keep the transaction hash.

Keep the confirmation. Your card issuer, wallet or the blockchain shows each payment; save that confirmation and the transaction hash with your project records.

Choosing an endpoint from Brazil

QCode documents three hosts: api.qcode.cc (the default entry), asia.qcode.cc for Asia and us.qcode.cc for North America and Europe. From Brazil, compare api and us first. All three share one account, one cr_ key and the same paths, and none is described as a Brazil node, so the route from your ISP is what decides. Measure instead of guessing:

KEY="cr_your_key"
for host in api.qcode.cc asia.qcode.cc us.qcode.cc; do
  for i in $(seq 1 10); do
    curl -s -o /dev/null -X POST "https://$host/api/v1/messages" \
      -H "Authorization: Bearer $KEY" \
      -w "$host %{http_code} dns=%{time_namelookup} tcp=%{time_connect} tls=%{time_appconnect} ttfb=%{time_starttransfer} total=%{time_total}\n"
    sleep 1
  done
done | tee qcode-latency.txt

for host in api.qcode.cc asia.qcode.cc us.qcode.cc; do
  printf '%s median ttfb: ' "$host"
  grep "^$host " qcode-latency.txt | sed 's/.*ttfb=\([0-9.]*\).*/\1/' | sort -n \
    | awk '{a[NR]=$1} END {print a[int((NR+1)/2)] "s"}'
done

The script sends bodyless requests, which return 400 and produce no model output. Run it at the hours you normally work and keep the host with the lowest stable median ttfb and the fewest errors. The full method, including a time-to-first-token script, is in Choosing a QCode endpoint and testing latency.

To use the winner, change the hostname in ANTHROPIC_BASE_URL (for example https://us.qcode.cc/api) and start a new Claude Code session. For Codex, change base_url to https://us.qcode.cc/openai and reopen codex.

When the daily quota resets in Brazil

QCode's daily quota resets at 00:00 Beijing time (UTC+8). Brazil is on Brasília time (BRT, UTC−3) all year, so that is 13:00 in Brasília. Booster packs bought from My Subscription are added to that day's limit and reset two hours after the daily reset: 02:00 Beijing time, which is 15:00 in Brasília. If you code in the afternoon, you get a fresh daily budget part-way through your session. States on a different offset shift these times accordingly.

Using Claude Code in Portuguese

You can write prompts in Brazilian Portuguese (português do Brasil). Claude and GPT models handle Portuguese well; be specific about whether you want pt-BR or pt-PT for user-facing text, and keep identifiers, commit messages and code comments in English so the codebase stays consistent.

Put the language convention in CLAUDE.md so every session follows it: ask the agent to answer in Brazilian Portuguese, to keep code and commit messages in English, and to use pt-BR for user-facing strings, dates and number formats. A short section with those rules is enough; there is no need to repeat them in every prompt.

The QCode site has a Portuguese version at qcode.cc/pt, and the docs have one at docs.qcode.cc/pt/docs. If a page you need is not translated, its English version still works.

Choosing a plan

There are two low-commitment ways to start. A pay-as-you-go pack is a one-time payment, valid for 7 days, and packs stack, so it suits a first test or an occasional burst; packs start at $4. The Starter plan is $9 for 30 days with $5 of usage per day, which suits daily work. See /pay-as-you-go for packs and /pricing for the full list.

Packs and personal plans cover Claude, GPT and Chinese models. Claude and GPT usage is billed at the official API price ×1.0; Chinese models are billed at the rate shown on /models. For a team, see /enterprise.

FAQ

Is Claude Code available in Brazil?

Check Brazil on both Anthropic's supported-regions list and OpenAI's supported-countries list, because both lists change. If Brazil is on the list you need, buy a plan, copy your cr_ key and set ANTHROPIC_BASE_URL to a QCode endpoint.

Does QCode accept Pix or a Brazilian local card?

Pay with a Visa or Mastercard credit or debit card enabled for international online payments, or with crypto such as USDT using the coin and network shown at checkout. Cards that work only on a domestic scheme may be declined at an international checkout, and Apple Pay or Google Pay work only when the card behind them allows international payments.

What currency are the prices in, and how does IOF work?

Prices are in USD. Brazilian cards pay IOF on international purchases, and your bank may add a spread on the dollar; QCode sets neither one. Check your bank's current IOF rate and dollar rate before you pay.

My card was declined. What should I try next?

Enable international online purchases for the card, check its limit, or try another Visa or Mastercard. If it still fails, pay with USDT on the top-up page, using the coin and network shown there, and keep the transaction hash.

When does the daily quota reset in Brazil?

At 13:00 in Brasília (UTC−3), which is 00:00 Beijing time. Booster packs reset two hours after the daily reset, at 15:00 in Brasília (02:00 Beijing time).

Is there a QCode server in Brazil?

QCode documents three hosts: api, asia and us. None is described as a Brazil node, so measure api.qcode.cc and us.qcode.cc from your own network and use the one with the better stable result.

Does Claude Code understand Portuguese prompts?

Yes. The models read and write Portuguese well. Tell the agent in CLAUDE.md whether user-facing text should be pt-BR or pt-PT, and keep code, identifiers and commit messages in English.

Should I start with a pay-as-you-go pack or the Starter plan?

A pay-as-you-go pack is a one-time payment valid for 7 days and is the smallest commitment for a test; packs stack if you need more. The Starter plan runs for 30 days with $5 of usage per day and suits daily work.

Start with a small pack or the Starter plan

The lowest-risk start is a pay-as-you-go pack from $4: one payment, 7 days of validity, and the same key for Claude, GPT and Chinese models. If you already know you will use it every day, the Starter plan at $9 gives you 30 days with $5 of usage per day. Both are enough to install Claude Code, connect Codex, measure the api and us endpoints from your network and finish a real task in your own repository. See /pricing for current plans and /pay-as-you-go for pack sizes.

Start with a small pack or the Starter plan

One key for both the Anthropic Messages API and OpenAI-compatible APIs. Claude and GPT are billed at the official price ×1.0; live rates are on /models.

Not sure where to start?

Try it for a week

Small Pack: $4 for $30 of quota, valid 7 days

Use it every day

Starter: $9.00/month with $5 of quota every day — just $0.060 per $1 of quota, vs about $0.113 for the Medium Pack