← Hướng dẫn

Cài đặt ứng dụng Claude

Dùng các model Claude trong gói LaRouter với ứng dụng Claude trên Mac và Windows, kể cả tab Code.

Cách A · Nhanh nhất

File cài đặt 1 chạm

Tải một file rồi mở. File cài Claude App bản chính thức và kết nối sẵn với LaRouter bằng key của bạn. Bạn cần tài khoản LaRouter và một gói.

  1. Tải file

    Đang lấy key…

    File được tạo ngay trên trình duyệt và có key của bạn bên trong, nên đừng gửi cho ai và dùng xong thì xoá. Trước khi sửa file cài đặt nào, file lưu một bản sao ngay cạnh (tên kết thúc bằng .bak-…). Bản sao này cũng có thể chứa key, chạy ổn rồi thì xoá luôn.

    Dùng Linux? Claude App chưa có bản cho Linux. Bạn dùng công cụ dòng lệnh thay thế, xem trang Claude CLI hoặc Codex CLI.

  2. Mở file

    Lần đầu mở file tải từ mạng, máy sẽ hiện cảnh báo. Làm theo các bước dưới đây để mở file.

    macOS

    1. 1. Mở file zip trong Downloads (Safari thường tự giải nén). Bấm chuột phải vào file cài đặt, chọn Open, rồi bấm Open thêm lần nữa.

      Thư mục Downloads với file cài đặt LaRouter đang được chọn, mục Open được đánh dấu trong menu chuột phải
    2. 2. Từ macOS 15, máy hiện thông báo "LaRouter setup" Not Opened. Bấm Done.

      Hộp thoại cảnh báo "LaRouter setup" Not Opened, nút Done được đánh dấu
    3. 3. Vào System Settings > Privacy & Security, kéo xuống mục Security và bấm Open Anyway. Xác nhận xong là file chạy.

      Cài đặt Privacy & Security báo "LaRouter setup" đã bị chặn, nút Open Anyway được đánh dấu

    Windows

    1. 1. Mở file .cmd trong Downloads. Nếu hiện màn hình xanh "Windows protected your PC", bấm More info.

      Màn hình xanh "Windows protected your PC", liên kết More info được đánh dấu
    2. 2. Bấm Run anyway. File chạy trong một cửa sổ. Lúc cài ứng dụng, Windows sẽ hỏi quyền vài lần, lần nào cũng bấm Yes. Cài xong cửa sổ báo Done.

      Màn hình xanh đó sau khi bấm More info, nút Run anyway được đánh dấu

    File nhỏ nào không tải từ kho ứng dụng cũng hiện cảnh báo này. Muốn xem trước, bạn mở file bằng trình soạn thảo.

  3. Kiểm tra

    Khi file báo Done, mở Claude App rồi bắt đầu trò chuyện. Nếu ứng dụng đang mở sẵn thì thoát hẳn rồi mở lại để nhận LaRouter.

Cách B

Cài thủ công

Muốn tự làm từng bước, hoặc dùng Linux? Bạn cài Claude App theo hướng dẫn dưới đây. Khi đã đăng nhập, các lệnh có sẵn key của bạn.

Bạn cần chuẩn bị

  • Tài khoản LaRouter
  • Ứng dụng Claude cho Mac hoặc Windows, tải tại claude.com/download
  • Không cần cài thêm gì, lệnh ở bước 7 dùng công cụ có sẵn trên máy
  • Khoảng 3 phút

Đang tải API key…

Kết nối ứng dụng Claude với LaRouter

  1. Mở ứng dụng Claude. Trên thanh menu, bấm Help → Troubleshooting → Enable Developer Mode… (Trên Windows, mở menu ☰ ở góc trên bên trái trước.)

    Menu Help của ứng dụng Claude, mục Troubleshooting đang mở và Enable Developer Mode được tô sáng
  2. Hộp thoại xác nhận hiện ra, bấm Enable. Thanh menu sẽ có thêm menu Developer.

    Hộp thoại xác nhận với hai nút Don't Enable và Enable
  3. Bấm Developer → Configure Third-Party Inference…

    Menu Developer, mục Configure Third-Party Inference được tô sáng
  4. Cửa sổ thiết lập mở ở mục Connection. Giữ lựa chọn trên cùng là Gateway.

    Cửa sổ Configure third-party inference ở mục Connection, đã chọn Gateway và các ô còn trống
  5. Bấm vào ô Credential kind và chọn Static API key.

    Danh sách Credential kind đang mở, Static API key ở trên cùng
  6. Điền ba ô dưới đây, rồi bấm Apply Changes ở góc dưới bên phải.

    Gateway base URL
    https://i-larouter.lapage.vn/v1
    Gateway API key
    YOUR_API_KEY
    Gateway auth scheme
    bearer
    Biểu mẫu đã điền địa chỉ gateway, API key, auth scheme là bearer và nút Apply Changes
  7. Cho phép Claude dùng internet và tệp trên máy. Mở Terminal: trên Mac, nhấn Command + Space, gõ Terminal rồi nhấn Return. Trên Windows, mở menu Start, gõ PowerShell rồi nhấn Enter. Sao chép lệnh đúng với máy đang dùng, dán vào cửa sổ, nhấn Enter rồi chờ đến khi hiện chữ "Done".

    Mac
    curl -fsSL https://larouter.lapage.vn/setup/claude-app.sh | bash
    Xem lệnh này làm gì

    Lệnh này tải một script ngắn của LaRouter về chạy trên máy bạn. Script lưu bản sao lưu trước, rồi chỉ đổi thiết lập internet và sandbox của ứng dụng Claude, mọi thứ khác giữ nguyên. Script không cần key và không in key ra màn hình. Xem nội dung script

    Lệnh này cho Claude vào mọi trang web và tắt sandbox của tab Code, nhờ vậy Claude làm việc được với tệp trên máy mà không cần máy ảo của Windows. Tệp thiết lập nào cũng được sao lưu trước khi sửa.

  8. Thoát hẳn Claude rồi mở lại. Trên Mac, nhấn Command + Q. Trên Windows, nhấp chuột phải vào biểu tượng Claude ở khay hệ thống (góc dưới bên phải, gần đồng hồ) rồi chọn Quit; chỉ đóng cửa sổ là chưa đủ.

Kiểm tra

  1. Mở ứng dụng Claude và tạo cuộc trò chuyện mới, hoặc mở tab Code.

  2. Chọn một model Claude, ví dụ claude-fable-5-2, rồi hỏi "Chào bạn". Có câu trả lời là xong.

Lỗi thường gặp

Không thấy menu Developer.
Làm lại bước 1 và 2. Claude khởi động lại với thiết lập mới thì menu Developer có thể bị ẩn, nên mỗi lần muốn đổi thiết lập, bạn bật lại Developer Mode.
Claude báo "Gateway was unreachable".
Kiểm tra ô Gateway base URL có đúng là https://i-larouter.lapage.vn/v1 không, và máy có đang kết nối mạng không.
Danh sách model trống hoặc không nhận được câu trả lời.
Kiểm tra lại API key. Đăng nhập trên trang này, sao chép key vào ô Gateway API key, bấm Apply Changes rồi mở lại Claude.
Claude không mở được trang web, Cowork không vào được internet, hoặc tab Code bị sandbox chặn.
Bước 7 chưa chạy hoặc chưa chạy xong. Chạy lại lệnh, chờ đến khi hiện "Done" rồi thoát hẳn Claude và mở lại.
Mac
curl -fsSL https://larouter.lapage.vn/setup/claude-app.sh | bash
Xem lệnh này làm gì

Lệnh này tải một script ngắn của LaRouter về chạy trên máy bạn. Script lưu bản sao lưu trước, rồi chỉ đổi thiết lập internet và sandbox của ứng dụng Claude, mọi thứ khác giữ nguyên. Script không cần key và không in key ra màn hình. Xem nội dung script

Windows: Claude báo "Claude's workspace requires the Virtual Machine Platform".
Trước hết, kiểm tra xem bước 7 đã hiện "Done" chưa, và bạn đã thoát Claude từ khay hệ thống rồi mở lại chưa. Vẫn thấy thông báo này thì bật tính năng Virtual Machine Platform của Windows: mở menu Start, gõ "Turn Windows features on or off", đánh dấu Virtual Machine Platform, bấm OK rồi khởi động lại máy. Nên mở thêm Task Manager → Performance → CPU xem dòng Virtualization có ghi Enabled không; nếu chưa thì bật Virtualization trong BIOS của máy. Cách khác là chạy lệnh sau trong PowerShell mở bằng quyền quản trị, rồi khởi động lại máy:
PowerShell (quyền quản trị)
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Lệnh không chạy được? Nhờ Claude làm giúp
  1. Sao chép đoạn prompt này, dán vào một cuộc trò chuyện mới trong tab Code của ứng dụng Claude rồi gửi. Claude báo xong thì thoát hẳn Claude rồi mở lại.

    Prompt cho tab Code
    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.
    

Skill cho agent

Skill cho agent dùng thêm các model khác của LaRouter. Cài skill xong, cứ nhờ agent bằng lời thường.