Codex CLI · regional access

Use Codex in Russia with one API key and no monthly plan

AnyModel connects Codex CLI to available GPT, Claude, Gemini, GLM and Kimi models through one OpenAI-compatible endpoint. You pay from a prepaid AnyModel balance instead of buying a direct ChatGPT or Codex subscription.

Codex CLI installerPay per tokenGPT-5.6 and Kimi K3Free test credits
Access options

API usage is different from a consumer subscription

A direct Codex or ChatGPT plan and an independent compatible gateway solve different problems. AnyModel is for API-backed coding sessions and model switching, not access to OpenAI consumer products.

OptionAuthenticationBillingBest fit
Codex through AnyModelAnyModel API keyPrepaid per tokenCLI agents and model switching
Direct OpenAI APIOpenAI API keyOpenAI account billingTeams with direct regional access
ChatGPT subscriptionOpenAI consumer accountMonthly planChatGPT and included first-party features
One-line setup

Point Codex at GPT-5.6 Terra

  1. 1

    Create a key

    Register with AnyModel and copy the API key from your account.

  2. 2

    Run the installer

    The command writes the compatible endpoint, key and selected model to the local Codex configuration.

  3. 3

    Test a small repository

    Start with a bounded task, inspect the patch and usage, then choose Sol, Terra, Luna or Kimi K3 for the next run.

bash · Codex CLI with GPT-5.6 Terra
bash <(curl -fsSL "https://anymodel.org/i?tool=codex&model=gpt-5.6-terra") \
  <YOUR_API_KEY>

What works from Russia — and what can change

Codex sends requests to the AnyModel endpoint with an AnyModel key. This removes the need to create and bill a separate OpenAI API account, but it does not create an official OpenAI account or include a ChatGPT subscription.

Payment methods are account- and provider-specific. The checkout is the source of truth for cards, local transfers, SBP, crypto and settlement currency; do not rely on a method until it appears there.

Network reachability varies by ISP and deployment environment. Test from the same machine or server that will run Codex, and keep a recoverable git state before allowing an agent to edit files.

Codex in Russia FAQ

Can I use Codex CLI from Russia through AnyModel?

You can connect Codex CLI to the AnyModel endpoint wherever the service is reachable and your account has a supported payment method. Test the exact network where you plan to work.

Do I receive an official OpenAI or ChatGPT account?

No. You receive an AnyModel API key for an independent OpenAI-compatible gateway. It is not an OpenAI account, Codex subscription or ChatGPT plan.

Which model should I use in Codex?

GPT-5.6 Terra is a practical default, Sol fits the hardest repository-wide tasks, Luna fits focused inexpensive subtasks, and Kimi K3 is an alternative flagship worth testing on your code.

Can I pay in rubles or through SBP?

Only when the current checkout offers that rail for your account. Available methods and settlement currencies depend on the active payment provider.

Test Codex on one bounded task

Fund a small balance to verify connectivity, patch quality and measured cost before a long autonomous session.

Create an AnyModel key