---
title: "Can You Pay for Claude Code in RMB? 3 Options Compared"
description: "Claude Code has no separate fee; costs come from a Claude subscription or API usage. Compare the official subscription, the official API, and RMB gateways, plus 5 checks to run first."
url: https://cdnping.org/en/blog/claude-code-renminbi-subscription
language: en
published: 2026-11-29
category: "Relays & gateways"
tags: ["Claude Code","RMB payment","billing","API gateway","getting started"]
source: cdnping.org
license: Free to quote and summarize with a link to the url above.
---
# 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](/en/blog/claude-code-subscription-vs-api-billing). 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:

- Registration and use are governed by Anthropic's supported-regions list and terms of service. If you are not in a supported region, you should not work around that with technical means.
- Subscription credentials have their own usage terms, and uses such as automation or lending them to others may violate them. See [Why Claude Code accounts get banned: subscription credentials, automation, and terms](/en/blog/claude-code-account-ban-terms).

## 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](/en/blog/claude-api-without-foreign-credit-card).

For enterprise use, you can also consider provisioning through a cloud vendor. See [How enterprises can use Claude compliantly: four access options compared](/en/blog/enterprise-compliant-claude-usage-options).

## 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](/en/blog/configure-custom-api-endpoint-claude-code-codex).

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](/en/blog/is-agiplan-official-claude-channel). Some models are marked "overseas only"; check [agiplan.dev/models](https://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?](/en/blog/claude-code-without-claude-account)

## The three options side by side

| Item | Official subscription | Official API top-up | RMB gateway |
| --- | --- | --- | --- |
| Billing | Plan quota | Per-token usage | Depends on the gateway (AGI Plan is a monthly subscription, and pay-as-you-go is also available) |
| Claude account needed | Yes | Yes, a Console account | No |
| Payment methods | See official page | See official page | RMB |
| Channel type | Official | Official | Third party, not necessarily officially authorized |
| Main risk | Region and terms | Region and terms | Channel 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](/en/status/agiplan). Probe results for the official API are at [/en/status/anthropic](/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](/en/blog/claude-code-connection-troubleshooting).

If everything seems to be down, start with cdnping's [/en/down/claude-code](/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](https://agiplan.dev/startup). 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](/en/blog/claude-subscription-vs-gateway-for-coding) first.
