Use Claude Code and Codex with one LaRouter API key: set up in 2 minutes
AI Agents & Agentic Systems · November 13, 2026 · 3 min read

Use Claude Code and Codex with one LaRouter API key: set up in 2 minutes

Set up Claude Code and Codex with one LaRouter API key in about 2 minutes: one-line commands for macOS, Linux and Windows, manual config, and common fixes.

LP
LaPage Digital
Systems Editorial
Use Claude Code and Codex with one LaRouter API key: set up in 2 minutes

Claude Code and Codex are two AI coding tools that run in your terminal. Normally each needs its own account: Claude Code with Anthropic, Codex with OpenAI, each paid by international card. With LaRouter you use one API key for both, pay by VND bank transfer, and businesses get a VAT invoice.

▶ Watch the setup video (about 2 minutes, in Vietnamese): youtu.be/hO1bkBAedy0

This guide sets up each tool. Each takes about 2 minutes.

One API key for Claude Code and Codex

Before you start

  1. Sign in at larouter.lapage.vn and open the dashboard.
  2. Copy your API key. The key is for you or your team only; do not paste it anywhere public.
  3. Install Claude Code or Codex first, following each tool's own installation guide.

Claude Code

Quick way: one command

On macOS or Linux, open a terminal and run (replace YOUR_KEY with your API key):

curl -fsSL https://larouter.lapage.vn/setup/claude.sh | LAROUTER_KEY='YOUR_KEY' bash

On Windows, open PowerShell:

$env:LAROUTER_KEY='YOUR_KEY'; irm https://larouter.lapage.vn/setup/claude.ps1 | iex

This command only writes the LaRouter address and your API key to ~/.claude/settings.json. Your other settings stay as they are.

Manual way

Open ~/.claude/settings.json and add an env section:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://i-larouter.lapage.vn/v1",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_KEY"
  }
}

Reopen Claude Code and ask any question. If you get an answer, you are done.

Codex

Quick way

curl -fsSL https://larouter.lapage.vn/setup/codex.sh | LAROUTER_KEY='YOUR_KEY' bash

Windows:

$env:LAROUTER_KEY='YOUR_KEY'; irm https://larouter.lapage.vn/setup/codex.ps1 | iex

Manual way

Open ~/.codex/config.toml, set the model and add the LaRouter provider:

model = "gpt-6.1-sol"
model_provider = "larouter"

[model_providers.larouter]
name = "LaRouter"
base_url = "https://i-larouter.lapage.vn/v1"
wire_api = "responses"
requires_openai_auth = false
experimental_bearer_token = "YOUR_KEY"

Reopen Codex and try a command.

Plans and pricing

  • ChatGPT and Claude in one plan, from just 300,000 VND/month (plan T150: $150 of usage per week, reset every 7 days). Each $150 a week is about the size of one Claude Pro or Codex account.
  • Six tiers from T150 to T1500 (3,000,000 VND/month, about 10 accounts). Upgrade when you need more; the extra capacity is available as soon as payment is confirmed.
  • Annual plan: pay for 12 months, use 13.
  • Pay in VND by bank transfer (VietQR). Prices exclude VAT; companies choose "VAT invoice for a company" at checkout and pay 10% VAT on top.

See the plans at larouter.lapage.vn.

What to check if something fails

  • Authentication error (401): the key was pasted with missing characters or extra spaces. Copy it again from the dashboard.
  • Usage limit reached: check this week's usage in the dashboard; the limit resets after 7 days, or you can upgrade.
  • Model not supported: use a model from the list in the dashboard, for example claude-sonnet-5-5 for Claude Code, gpt-6.1-sol for Codex.

Step-by-step guides for each operating system are on the LaRouter docs page. For help with setup, message LaPage on Zalo.

LP

LaPage Digital

LaPage Digital publishes systems-focused writing on architecture, automation, infrastructure, and operational delivery.

Editorial subscription

Stay Updated

Subscribe to our newsletter to receive technical insights and updates on best practices for web development and hosting infrastructure.

We respect your privacy. Unsubscribe at any time.

Call: +84 981 690 658
Message us on Facebook
Zalo
Contact us on Zalo
Message us on WhatsApp
Contact us