Docs
Refer a friend. Get a weekly-quota reset.Friend signs up and uses it → +1 reset (valid 30 days) · up to 10% cash back on their spend.
+1 resetGenerate link

Global region access

wrok Code's global region endpoint is `acosmi.ai`. The acosmi gateway proxies every model call and bills against your acosmi balance.

What it is

In the global region, wrok Code sends every model call to acosmi.ai. 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.

acosmi.ai (global) and acosmi.com (China) are two independent account systems: balances, login tokens, and API keys do not cross.

When you use this

  • You are outside mainland China, or you specifically want an internationally-reachable endpoint
  • You already have an acosmi.ai account and want to run wrok Code against your global subscription
  • You want to see the current list of available models (run /model inside the TUI)

How to connect

  1. Sign up at acosmi.ai

  2. Point wrok Code's OAuth endpoint to acosmi.ai (the exact environment variable / config follows the prompts in wrok Code's /login flow for your version)

  3. Launch wrok Code and complete login:

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

Model catalog

The global region and the China region do not have an identical model set (upstream provider availability and commercial licensing differ by region). Do not assume this doc enumerates the full set — use /model for the live list.

wrok Code's default main-loop model is deepseek-flash, with the automatic fallback taken from the default model reported by the gateway catalog (no longer a fixed slug). After logging in to the global region, /model will display the actual set of model slugs available in that region.

To switch models, type /model <slug> in the TUI.

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.ai 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. wrok Code applies a short backoff retry; if budget is exhausted it falls back
  • Transient network blips: wrok Code auto-retries a few times before falling back

Network reachability

acosmi.ai may not be reliably reachable from mainland China. If you are in mainland China, consider China region access instead.

Data compliance

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

See also