Can You Pay for Claude Code in RMB? 3 Options Compared

Blog / Relays & gateways

Can You Pay for Claude Code in RMB? 3 Options Compared

Claude Code itself has no separate fee. Its cost comes from the Claude subscription or Anthropic API usage behind it. Payment methods, currencies, and supported regions for the official channels are defined by Anthropic's official pages. If you want to pay in Chinese yuan (RMB) directly, the current approach is a third-party gateway: you point Claude Code's endpoint at the gateway. Below are the three paths, followed by a checklist to run before you choose.

This article reflects the situation as of October 2026. Prices, payment methods, and regional policies change, so no specific amounts are given here. Check each provider's website.

Where does Claude Code's cost come from?

Claude Code is a command-line tool that calls a model every time it works, so cost can come from only two places:

  1. Claude subscription login: you sign in with a Claude account, and usage counts against your plan's quota.
  2. API key billing: you use an API key from the Anthropic Console and are billed by token usage.

For the difference between the two, see Claude Code: subscription or API, how to choose a billing method. Either way, payment happens on Anthropic's side, which means registering an account in a supported region and completing payment there.

Path 1: Official subscription. Can you pay in RMB?

Which payment methods each option supports (card types, whether local wallets such as Alipay are accepted) is shown on the page according to your account's region, and it can change. This article cannot say "yes" or "no". Confirm on the official checkout page and in the Help Center.

Two more points:

Path 2: Official API top-up

The API route is pay-as-you-go, which suits unpredictable usage or teams that need unified billing. Again, the payment methods available for top-ups are whatever the official console shows. For developers without an overseas credit card this is the step where people most often get stuck. See How to use the Claude API without an overseas credit card: payment options compared.

For enterprise use, you can also consider provisioning through a cloud vendor. See How enterprises can use Claude compliantly: four access options compared.

Path 3: A gateway that settles in RMB

A gateway is a service layer between you and the model providers. It exposes OpenAI-compatible and Anthropic-compatible interfaces. Claude Code supports a custom endpoint, so changing one setting is enough. For the exact syntax, see Custom API endpoint setup for Claude Code, Codex, and OpenCode.

Take AGI Plan as an example (AGI Plan is a commercial partner of cdnping, and this article does not represent any official position). It is a monthly-subscription gateway that aggregates large models from multiple providers, settles in RMB, and needs no overseas credit card. You keep using tools such as Claude Code and Codex, change a single endpoint, and switch between capability groups using the same quota. The service states plainly that it is not an officially authorized channel; see Is AGI Plan an official Claude channel? An honest explanation. Some models are marked "overseas only"; check agiplan.dev/models for specifics.

With a gateway, Claude Code authenticates with the gateway's API key, so you do not need a Claude account. Details are in Can you use Claude Code without a Claude account?

The three options side by side

ItemOfficial subscriptionOfficial API top-upRMB gateway
BillingPlan quotaPer-token usageDepends on the gateway (AGI Plan is a monthly subscription, and pay-as-you-go is also available)
Claude account neededYesYes, a Console accountNo
Payment methodsSee official pageSee official pageRMB
Channel typeOfficialOfficialThird party, not necessarily officially authorized
Main riskRegion and termsRegion and termsChannel stability, consistency of terms

What to check before choosing

Going through this list item by item is more useful than comparing prices:

  1. Is the channel type stated clearly? Official or third party, and whether the gateway site declares it honestly.
  2. Data handling: whether request content is stored, and whether it is used for training or resold. AGI Plan states that request bodies are not stored by default and content is neither used for training nor resold; refer to its official terms for specifics.
  3. Metering: what the quota unit is, and whether different models consume it at different rates. AGI Plan meters in CU, where 1 CU equals 1,000 output tokens of the baseline model.
  4. Is uptime published? Can you verify it yourself? AGI Plan publishes availability data, which cdnping mirrors at /en/status/agiplan. Probe results for the official API are at /en/status/anthropic.
  5. Terms of service: whether your usage pattern (team sharing, automation, commercial use) is allowed.

How do you verify the endpoint took effect?

The general flow:

  1. Sign up with the gateway and create an API key.
  2. Follow its tutorial to set the endpoint and key, either as environment variables or in a config file. Variable names and config keys are defined by the official Claude Code docs and the gateway's tutorial.
  3. Start Claude Code, ask a simple question, and confirm it returns normally.
  4. If you hit timeouts, check the network first. See Troubleshooting Claude Code connection timeouts and errors: a four-layer network checklist.

If everything seems to be down, start with cdnping's /en/down/claude-code to tell an official service problem from a local configuration problem.

Next steps

  • Want to stay with the official route: check the payment methods for your region on the official checkout page.
  • Want to pay in RMB without an overseas credit card: see the AGI Plan setup guide. It takes three steps: register with an email verification code, pick a plan and create a key, change one setting. Then go back and check the terms against the list above.
  • Still undecided between a subscription and an API: read Claude subscription or API gateway for coding: choose by usage habits first.

Related articles

Keep reading