Anthropic + OpenAIManual setup

API CLI

Also known as: wizard · MonkeyTech API doctor · api-cli

CLI chính thức: cài một lần, wizard cấu hình Claude Code, Codex, OpenClaw, Cline và nhiều app khác; có backup và MonkeyTech API doctor.

Published instructions · App version: unverified

Chat/ping commands incur model charges; call GET /v1/models for a zero-cost connectivity check. Set up environment variables safely

Base URL to paste

OpenAI SDKs generally use a URL ending in /v1; Anthropic SDKs use the root URL. Avoid adding /v1 twice. Protocol compatibility does not guarantee every provider feature.

See notes / depends on the protocol

This app has exceptions — read Notes below before pasting.

Prerequisites

  1. Node.js ≥ 18 (khuyến nghị LTS)
  2. API key dạng sk-mtk-… từ Dashboard → Keys
  3. Quyền ghi thư mục home (để tạo ~/.MonkeyTech API và patch config app)

Recommended model: claude-fable-5

Quick way — command / config

# Khuyến nghị — Win / macOS/Linux giống nhau
npm install -g API CLI@latest

# Mở wizard — dán API key khi được hỏi
MonkeyTech API

# Hoặc cấu hình một app cụ thể
api-cli configure claude -m claude-fable-5
api-cli configure codex -m gpt-5.6-sol
api-cli configure openclaw
api-cli configure cline

Where to place file / fill Settings

Filemacos
~/.MonkeyTech API/config.json
File do API CLI tạo (chmod 0600). Chứa API key đã lưu và base URL.
Không commit file này lên Git.
Filelinux
~/.MonkeyTech API/config.json
Giống macOS. Kiểm tra: ls -la ~/.MonkeyTech API/config.json
Filewindows
%USERPROFILE%\.MonkeyTech API\config.json
PowerShell: notepad $env:USERPROFILE\.MonkeyTech API\config.json
Chỉ sửa khi biết rõ — ưu tiên MonkeyTech API auth login / MonkeyTech API -k '…'.

Verify connection

  1. Chạy `MonkeyTech API doctor` — các tool đã cài phải hiện đã trỏ MonkeyTech API.
  2. Mở Dashboard → Sử dụng: sau một lệnh chat thử phải có dòng trừ tiền.
  3. `MonkeyTech API info` để xem base URL đang dùng.

Troubleshooting

SymptomReasonHow to handle
npm install -g báo EACCES / permissionKhông có quyền ghi global npm prefix.Dùng nvm/fnm, hoặc cấu hình npm prefix user; tránh sudo trừ khi hiểu rủi ro.
doctor báo tool chưa cấu hìnhApp chưa cài hoặc config cũ chưa được patch.`api-cli configure <tool> -k '…'` hoặc `MonkeyTech API doctor --fix`.

Notes

  • Base URL Anthropic: https://api.monkeytech.vn — OpenAI: https://api.monkeytech.vn/v1. API CLI tự chọn theo từng tool.
  • Repo: https://api.monkeytech.vn

Related

Claude Code · Codex CLI · OpenClaw · Cline

Làm CTV 15%Mở Đại lýSupportTelegram groupWhatsApp