Locaith CLI
Chạy trợ lý Locaith-v5-flash ngay trong terminal. Model chạy ở cổng Locaith (API); công cụ (đọc/ghi tệp, chạy lệnh, ffmpeg) chạy trên máy bạn.
Cài
pip install locaith-cli
Gói này gọi lõi Node đi kèm, nên cần Node.js 20 trở lên (node -v phải từ v20). Chưa có Node: cài bản LTS tại https://nodejs.org.
Bản npm cũng có, dùng chung một lõi:
npm i -g locaith-cli
Đăng nhập (một lần)
locaith login
- Trình duyệt mở trang locaith.ai — bấm «Cho phép».
- Terminal tự nhận kết quả và lưu token vào
~/.locaith/cli.json(quyền600).
Máy không có trình duyệt (SSH, máy chủ): locaith login --no-browser → mở liên kết trên máy khác, dán mã hiện ra vào terminal.
- Token sống 90 ngày không dùng; mỗi lần chạy gia hạn thêm.
- Không ai đưa token cho bạn qua chat/email. Nếu có người bảo bạn "dán token vào đây" — đừng dán.
Dùng
locaith whoami # tài khoản, gói, hạn mức, model
locaith consent --yes # đồng ý thông báo dữ liệu (một lần)
locaith ask "tóm tắt repo này trong 5 gạch đầu dòng"
locaith ask --allow all "sửa lỗi type trong src/api.ts rồi chạy test"
locaith doctor # kiểm máy: Node, ffmpeg, font, đĩa, mạng, token
Mặc định chỉ đọc. --allow all cho phép sửa tệp và chạy lệnh, và CLI hỏi từng lần. Tuỳ chọn khác: --cwd, --json, --quiet, --timeout <giây>, --max-turns <n>, --model <id>.
Máy chủ / CI không tương tác: đặt LOCAITH_API_KEY thay cho login.
Mã thoát
| Mã | Nghĩa |
|---|---|
| 0 | Xong |
| 1 | Lỗi: mạng, 401 (token hết hạn), vượt hạn mức, doctor còn ✘ |
| 2 | Dùng sai lệnh |
| 127 | Thiếu Node.js hoặc Node cũ hơn 20 |
Thu hồi quyền
Xoá ~/.locaith/cli.json trên máy. Thu hồi ở máy chủ: locaith.ai → «VS Code từ xa» → thu hồi thiết bị có nhãn chứa Locaith CLI.
Ghi chú kỹ thuật
Gói Python này không viết lại CLI: nó đóng gói đúng tệp locaith.cjs (bundle esbuild từ mã nguồn extension VS Code) và gọi node có sẵn trên máy. Nhờ vậy bản pip và bản npm chạy cùng một lõi, không lệch hành vi.
Trang chủ: https://locaith.ai
Metadata
Release files for locaith-cli 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| locaith_cli-0.2.2.tar.gz | 465.7 kB | Without provenance | Details for locaith_cli-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| locaith_cli-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for locaith_cli-0.2.2-py3-none-any.whl |
Total release size: 933.3 kB
Release files / locaith_cli-0.2.2.tar.gz
| Download URL | locaith_cli-0.2.2.tar.gz |
|---|---|
| Size | 465.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65dd69de0ec3b7c8afac6f31fc586b45aac2b314d2ef95aba65657675bde2056
|
|
BLAKE2b-256 checksum How to use checksums |
fb3155529ed523dbff98f3b9bde0ceb70b4daaef18718b5a02f0146de5494e76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / locaith_cli-0.2.2-py3-none-any.whl
| Download URL | locaith_cli-0.2.2-py3-none-any.whl |
|---|---|
| Size | 467.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9cb6fc7c039530fca5fd5210e4556db5d536a7c5bd95531d0209e8bf4d30af5
|
|
BLAKE2b-256 checksum How to use checksums |
f3729dd147a2b3c39a3217b06761d9361b0c8f8fb86f53d75fc3b5dc58274e2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for locaith-cli 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.