Claude Code CLI Setup EN

Claude Code CLI Setup EN

Codex

Main article:

https://telegra.ph/Api-Vibecode-Claude-EN-04-14

Steps:

This will take you no more than 5 minutes. If you already have Claude Code installed and are registered, it will take up to 1 minute (start from step 3).

  1. Installing Claude Code CLI
  2. Authorization
  3. Connecting our API

Installing Claude Code CLI

Run PowerShell as administrator.

Then run the command:

Windows

irm https://claude.ai/install.ps1 | iex

Linux

curl -fsSL https://claude.ai/install.sh | bash

Screenshot for reference:

https://skr.sh/saXgTtnguoy

If, after running the command, you see a successful installation message, then everything went fine.

Authorization

After launch, you will be offered 3 sign-in options, each with its own number.

You need to choose option 2.

After that, a browser window will open for authorization.

If you do not have an account yet, register one.

It is recommended to sign in via Google — just click “Continue with Google” or a similar button. This is the fastest method, and it usually does not require a foreign phone number.

Next, the system will either:

  • provide a code that you will need to enter in the terminal, or
  • authorize you in Claude Code automatically

PS: if it offers a $5 subscription, just skip it — the system will authorize you anyway.

Connecting our API

In practice, everything works through a single file. All you need to do is paste the configuration there. The file is ALWAYS located at:

Windows

C:\Users\<username>\.claude\settings.json

Linux

~/.claude/settings.json

If you are already using Claude Code CLI or have your own subscription in parallel, save the original file first, and then you will be able to easily return to your previous setup.

Paste the following content there (completely replace everything that was there before):

Fully replace its contents with the following:

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.vibecode-claude.online",
    "ANTHROPIC_API_KEY": "sk-******************",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4.6",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4.6",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4.5",
    "DISABLE_TELEMETRY": "1",
    "DISABLE_ERROR_REPORTING": "1",
    "DISABLE_AUTOUPDATER": "1",
    "DISABLE_BUG_COMMAND": "1",
    "DISABLE_COST_WARNINGS": "1",
    "DISABLE_NON_ESSENTIAL_MODEL_CALLS": "1",
    "CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY": "1"
  },
  "permissions": {
    "allow": [
      "Read",
      "Edit",
      "Write",
      "Bash"
    ]
  },
  "model": "opus[1m]",
  "defaultMode": "acceptEdits"
}

After that, it will ask whether to trust the key. Make sure to click Yes (by default, No is highlighted in green there, so it is easy to confuse them).

Next, you will see an Auth Conflict banner — this is normal. Check whether the model responds.

Everything works. You can change the model via /model.

IMPORTANT: you can replace the model names. For example, if you bought a GPT provider from us or Gemini, you can also use it in Claude Code — just specify, for example, gpt-5.4-xhigh for ANTHROPIC_DEFAULT_OPUS_MODEL, and gpt-5.4-mini-middle for sonnet. Everything will work.


Report Page