← All applications · Connect apps section on /docs
OpenAIManual setup
Crush
Crush: hướng dẫn cấu hình khóa API, model và nhà cung cấp trong terminal.
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.
https://apistack.vn/v1Prerequisites
- Cài Crush
- API key
Recommended model: gpt-5.6-sol
Quick way — command / config
export API_KEY="sk-stk-..."Where to place file / fill Settings
Filemacos
~/.config/crush/crushrc
Crush v0.98.2: lưu hai lệnh builtin trong file crushrc, không chạy trực tiếp trong terminal. Đặt API_KEY trong môi trường trước khi chạy crush.
Filelinux
~/.config/crush/crushrc
Giống macOS.
Filewindows
%USERPROFILE%\.config\crush\crushrc
Đặt $env:API_KEY trong PowerShell; nội dung crushrc vẫn dùng cú pháp $API_KEY như mẫu.
Verify connection
- Chạy crush models để kiểm tra model đã nạp; chọn API Stack/gpt-5.6-sol trong Crush trước khi chat thử có tính phí.
Troubleshooting
| Symptom | Reason | How to handle |
|---|---|---|
| 401 | API_KEY chưa có trong môi trường tiến trình. | Đặt API_KEY rồi khởi động lại ứng dụng từ cùng terminal. |
Notes
- Mẫu áp dụng Crush v0.98.2, đã kiểm tra nạp cấu hình cục bộ. Bản cũ cần nâng cấp; mẫu JSON OpenCode không dùng được cho Crush.
- Nếu đặt XDG_CONFIG_HOME, vị trí global là $XDG_CONFIG_HOME/crush/crushrc. File crushrc chạy như shell; chỉ dùng nội dung tin cậy.