← All applications · Connect apps section on /docs
Anthropic + OpenAIManual setup
stali-cli
Also known as: wizard · stali doctor · api-cli
stali-cli: hướng dẫn cài trình cấu hình và kiểm tra kết nối ứng dụng.
Published instructions · App version: unverified
Chat, ping, invoke and content-generation examples may send real billable requests. Check the model, balance, rate and minimum before running them. GET /v1/models checks authentication and the catalogue only. 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 protocolThis app has exceptions — read Notes below before pasting.
Prerequisites
- Node.js ≥ 18 (khuyến nghị LTS)
- API key dạng sk-stali-… từ Dashboard → Keys
- Quyền ghi thư mục home (để tạo ~/.stali 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 stali-cli@latest
# Mở wizard — dán API key khi được hỏi
stali
# Hoặc cấu hình một app cụ thể
stali configure claude -m claude-fable-5
stali configure codex -m gpt-5.6-sol
stali configure openclaw
stali configure clineWhere to place file / fill Settings
Filemacos
~/.stali/config.json
File do stali-cli tạo (chmod 0600). Chứa API key đã lưu và base URL. Không commit file này lên Git.
Filelinux
~/.stali/config.json
Giống macOS. Kiểm tra: ls -la ~/.stali/config.json
Filewindows
%USERPROFILE%\.stali\config.json
PowerShell: notepad $env:USERPROFILE\.stali\config.json Chỉ sửa khi biết rõ — ưu tiên stali auth login / stali -k '…'.
Verify connection
- Chạy `stali doctor` — các tool đã cài phải hiện đã trỏ Stali.
- Mở Dashboard → Sử dụng: sau một lệnh chat thử phải có dòng trừ tiền.
- `stali info` để xem base URL đang dùng.
Troubleshooting
| Symptom | Reason | How to handle |
|---|---|---|
| npm install -g báo EACCES / permission | Khô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ình | App chưa cài hoặc config cũ chưa được patch. | `stali configure <tool> -k '…'` hoặc `stali doctor --fix`. |
Notes
- Base URL Anthropic: https://api.stali.vn — OpenAI: https://api.stali.vn/v1. stali-cli tự chọn theo từng tool.
- Repo: https://github.com/ngocvu/stali-cli
