← Docs

Set up the Claude app

Use the Claude models in your LaRouter plan in the Claude desktop app for Mac and Windows, including its Code tab.

Option A · Fastest

1-click setup file

Download one file and open it. It installs the official Claude App and connects it to LaRouter with your key. You need a LaRouter account with a plan.

  1. Download the file

    Loading your key…

    The file is made in your browser and contains your key: don't share it, and delete it after use. Before changing a settings file it saves a copy next to it (names ending in .bak-…). Those copies can hold a key too, so delete them once everything works.

    On Linux? There is no Claude App for Linux. Use the command-line tool instead: see the Claude CLI or Codex CLI page.

  2. Open the file

    The first time you open a file from the web, your computer warns you. This is how to get past it.

    macOS

    1. 1. Open the zip file in Downloads (Safari unzips it for you). Right-click the setup file, choose Open, then click Open again.

      The Downloads folder with the LaRouter setup file selected and Open highlighted in the right-click menu
    2. 2. On macOS 15 and later you see "LaRouter setup" Not Opened instead. Click Done.

      Warning dialog reading "LaRouter setup" Not Opened, with the Done button highlighted
    3. 3. Go to System Settings > Privacy & Security, scroll to Security and click Open Anyway. Confirm, and the setup runs.

      Privacy & Security settings saying "LaRouter setup" was blocked, with the Open Anyway button highlighted

    Windows

    1. 1. Open the .cmd file in Downloads. If a blue "Windows protected your PC" screen appears, click More info.

      Blue "Windows protected your PC" screen with the More info link highlighted
    2. 2. Click Run anyway. The setup runs in a window. Windows asks for permission a few times while the apps install: click Yes each time. The window says Done when it finishes.

      The same blue screen after More info, with the Run anyway button highlighted

    This is the normal warning for any small file that isn't from an app store. You can open it in a text editor and read it first.

  3. Check it works

    When the file says Done, open Claude App and start a chat. If it was already open, quit it fully and open it again so it picks up LaRouter.

Option B

Manual setup

Prefer to see every step, or on Linux? Set up Claude App by hand: the commands below already include your key when you are signed in.

What you need

  • A LaRouter account
  • The Claude desktop app for Mac or Windows, from claude.com/download
  • Nothing else to install: the setup command in step 7 uses tools already on your computer
  • About 3 minutes

Loading your API key…

Connect the Claude app to LaRouter

  1. Open the Claude app. In the menu bar, click Help → Troubleshooting → Enable Developer Mode… (On Windows, open the ☰ menu at the top left first.)

    Claude app Help menu with Troubleshooting open and Enable Developer Mode highlighted
  2. A message asks you to confirm. Click Enable. A new Developer menu appears in the menu bar.

    Confirmation message with the buttons Don't Enable and Enable
  3. Click Developer → Configure Third-Party Inference…

    Developer menu with Configure Third-Party Inference highlighted
  4. A settings window opens on Connection. Leave the top choice on Gateway.

    Configure third-party inference window on Connection, with Gateway selected and empty fields
  5. Click the Credential kind list and choose Static API key.

    Credential kind list open, showing Static API key at the top
  6. Fill in the three fields below, then click Apply Changes at the bottom right.

    Gateway base URL
    https://i-larouter.lapage.vn/v1
    Gateway API key
    YOUR_API_KEY
    Gateway auth scheme
    bearer
    Finished form with the gateway address, an API key, auth scheme bearer and the Apply Changes button
  7. Allow Claude to use the internet and your files. Open Terminal: on a Mac, press Command + Space, type Terminal and press Return. On Windows, open the Start menu, type PowerShell and press Enter. Copy the command for your computer, paste it into the window, press Enter and wait for the message "Done".

    Mac
    curl -fsSL https://larouter.lapage.vn/setup/claude-app.sh | bash
    See what this command does

    It downloads a short LaRouter script and runs it on your computer. The script changes only the Claude app's internet and sandbox settings, keeps everything else, and saves a backup first. It needs no key and prints no key. Read the script

    This lets Claude reach any website and turns off the Code tab's sandbox, so Claude can work with your files without the Windows virtual machine. A backup of each settings file is saved first.

  8. Quit Claude completely, then open it again. On a Mac, press Command + Q. On Windows, right-click the Claude icon in the system tray (bottom right, near the clock) and choose Quit; closing the window is not enough.

Check it works

  1. Open the Claude app and start a new chat, or open the Code tab.

  2. Choose a Claude model such as claude-fable-5-2 and ask "Say hello". If you get an answer, it works.

Common problems

I can't find the Developer menu.
Do steps 1 and 2 again. After Claude restarts with the new settings, the Developer menu may be hidden; turn Developer Mode on again whenever you want to change these settings.
Claude says "Gateway was unreachable".
Check that Gateway base URL is exactly https://i-larouter.lapage.vn/v1 and that your internet connection works.
The model list is empty, or replies fail.
Check the API key. Sign in on this page, copy your key again into Gateway API key, click Apply Changes and reopen Claude.
Claude can't open websites, Cowork can't reach the internet, or the Code tab is blocked by its sandbox.
Step 7 was skipped or didn't finish. Run the command again, wait for "Done", then quit Claude completely and open it again.
Mac
curl -fsSL https://larouter.lapage.vn/setup/claude-app.sh | bash
See what this command does

It downloads a short LaRouter script and runs it on your computer. The script changes only the Claude app's internet and sandbox settings, keeps everything else, and saves a backup first. It needs no key and prints no key. Read the script

Windows: Claude says "Claude's workspace requires the Virtual Machine Platform".
First make sure step 7 printed "Done" and that you quit Claude from the system tray and opened it again. If the message still shows, turn on the Windows feature Virtual Machine Platform: open the Start menu, type "Turn Windows features on or off", tick Virtual Machine Platform, click OK and restart the computer. Also open Task Manager → Performance → CPU and check that Virtualization says Enabled; if not, turn it on in your computer's BIOS settings. Or run this in PowerShell opened as administrator, then restart:
PowerShell (as administrator)
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
The command didn't work? Ask Claude to do it
  1. Copy this prompt, paste it into a new chat in the Code tab of the Claude app and send it. When Claude says it is done, quit Claude completely and open it again.

    Prompt for the Code tab
    Update my Claude desktop app's third-party inference (gateway) config so Cowork and the Code tab can reach the internet, and turn off the Code tab's sandbox. Work on whichever OS this machine runs (Windows or macOS). Do exactly this, nothing else:
    
    1. Detect the OS. Then find the config folder by checking these locations in order, and use the first one that contains `_meta.json`:
       - macOS:
         - `~/Library/Application Support/Claude-3p/configLibrary`
         - `~/Library/Application Support/Claude/configLibrary`
       - Windows (use PowerShell and expand the environment variables):
         - `%LOCALAPPDATA%\Claude-3p\configLibrary`
         - `%APPDATA%\Claude-3p\configLibrary`
         - `%LOCALAPPDATA%\Claude\configLibrary`
         - `%APPDATA%\Claude\configLibrary`
         - If none exist (Microsoft Store install), search `%LOCALAPPDATA%\Packages\*Claude*\LocalCache\` for a `configLibrary` folder containing `_meta.json`.
    
       If no folder is found, stop and tell me which paths you checked.
    2. Read `_meta.json` and get `appliedId`. The active config is `<appliedId>.json` in the same folder. If it doesn't exist, stop and tell me.
    3. Back up that file to `<appliedId>.json.bak` before changing it.
    4. In that file, keep every existing key unchanged (especially `inferenceProvider`, `inferenceGatewayBaseUrl`, `inferenceGatewayApiKey`, `inferenceModels` and `managedMcpServers`), then:
       - Set these keys:
         ```json
         "coworkEgressAllowedHosts": ["*"],
         "skipWebFetchPreflight": true,
         "builtinBrowserEnabled": true,
         "builtinBrowserDefaultDomainPolicy": "allow",
         "isClaudeCodeForDesktopEnabled": true,
         "disableDesktopLocalSessions": false,
         "disableBypassPermissionsMode": false,
         "blockReadsOutsideWorkingDirectories": false,
         "developerModeEnabled": true
         ```
       - Remove these keys if present: `allowedWorkspaceFolders`, `requireCoworkFullVmSandbox`.
    5. Write the file back as valid UTF-8 JSON without a BOM (on Windows, don't use PowerShell's default `Out-File`/`Set-Content` encoding if it adds a BOM), then re-read it to confirm it parses.
    6. Turn off Claude Code's own sandbox for my user. Edit the user settings file (macOS: `~/.claude/settings.json`, Windows: `%USERPROFILE%\.claude\settings.json`). Create it as `{}` if it's missing, or back it up first if it exists. Keep all existing keys and set `"sandbox": { "enabled": false }`. Write it as valid UTF-8 JSON without a BOM and re-read it to confirm.
    7. Do not print `inferenceGatewayApiKey` or any other secret in your reply.
    8. Tell me which files you changed and show the keys you added or removed. Remind me to fully quit the Claude app and reopen it:
       - macOS: Cmd+Q, or Claude menu → Quit.
       - Windows: right-click the Claude icon in the system tray → Quit (closing the window is not enough).
    
       Also remind me that Cowork always runs shell commands in its VM, so for tasks that need my real machine (browsers, Playwright, logging into sites) I should use the Code tab instead.
    

Agent skills

Skills let your agent use more LaRouter models. Install one, then ask your agent in plain words.