Docs
Refer friends. Keep the rewards coming!Your friend can unlock up to 10M tokens · earn up to 30% revenue share.
+500K TokensGenerate link

China region access

CrabCode's China region endpoint is `acosmi.com`. The acosmi gateway proxies every model call and bills against your acosmi balance.

What it is

In the China region, CrabCode sends every model call to acosmi.com. The acosmi gateway proxies the request to upstream model providers on your behalf. Billing is per-token × per-model coefficient against your acosmi balance — there is no direct billing relationship with the upstream providers.

The model catalog is fetched live via the SDK, not hard-coded in the client. New models, removed models, and capability changes are pushed from the gateway side.

When you use this

  • You are in mainland China and want a domestically-reachable endpoint
  • You already have an acosmi.com account and want to run CrabCode against your acosmi balance / subscription
  • You want to see the current list of available models (run /model inside the TUI)

How to connect

  1. Sign up at acosmi.com

  2. Launch CrabCode:

    bash
    crabcode
    crabcode
  3. Complete the /login OAuth flow on first launch. CrabCode connects to acosmi.com by default

  4. Once in a session, run /model to view available models and switch between them

Default model

CrabCode's default main-loop model is deepseek-v4-flash, with qwen3.6-plus as the automatic fallback. The actual set of available models and their capabilities is whatever /model reports live — do not assume this doc enumerates the full set.

Example (illustrative only — use /model for the real list):

shell
> /model
Current model: deepseek-v4-flash
Available: deepseek-v4-flash, qwen3.6-plus, ...
> /model
Current model: deepseek-v4-flash
Available: deepseek-v4-flash, qwen3.6-plus, ...

To switch models, type /model <slug> in the TUI, e.g. /model qwen3.6-plus.

Billing

  • Charged uniformly from your acosmi account balance, per-token × per-model coefficient
  • No need to top up or open API keys with upstream providers
  • Use /cost to see session-cumulative usage; check the acosmi.com console for account balance and subscription status

Error codes

  • HTTP 402 [overloaded_error] insufficient quota: the subscription bucket for the current model is exhausted. Top up or switch to another model
  • HTTP 429: rate-limited. CrabCode applies a short backoff retry; if budget is exhausted it falls back
  • Transient network blips: CrabCode auto-retries a few times before falling back

Relationship with global region

acosmi.com (China) and acosmi.ai (Global) are two independent account systems: balances, login tokens, and API keys do not cross. Switching regions requires a fresh /login. See Global region access.

Data compliance

Data residency, retention, and privacy terms are governed by the Terms of Service and Privacy Policy published on acosmi.com.

See also