Skip to main content

One-command distribution for the datn multi-agent assistant (hides docker compose).

Project description

datn-cli

Cài hệ trợ lý đa tác tử datn bằng 1 lệnh — CLI ẩn docker compose. Không cần source code.

Cài đặt (1 lệnh)

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/ngoquan0904/datn-cli/main/install.sh | sh

Windows (PowerShell):

irm https://raw.githubusercontent.com/ngoquan0904/datn-cli/main/install.ps1 | iex

Script tự cài: Python 3.9+, pipx, Docker (Linux) / WSL2+Docker Desktop (Windows), rồi datn-cli.

Chạy

datn init     # nhập API key cho LLM + embedding (chọn provider)
datn up       # pull images + khởi động + chờ healthy (lần đầu mất vài phút)
datn open     # mở http://localhost:5173

Trong datn init bạn chỉ cần nhập API key. Embedding dimension tự dò. Gmail/Calendar cấu hình sau trong Settings của web UI (upload client_secret.json).

Lệnh hay dùng

Lệnh Việc
datn doctor Kiểm tra Docker, ports, cấu hình
datn logs agent-api Xem log 1 service
datn down Dừng (giữ data)
datn config llm Đổi LLM provider/model/key
datn config embedding Đổi embedding (đổi dim → cần datn reset)
datn update --tag vX.Y.Z Cập nhật phiên bản image
datn reset Xoá data (RAG + chat history)
datn uninstall Gỡ data + cấu hình

Self-host LLM/Embedding

Chọn provider selfhost trong datn init, nhập base_url (OpenAI-compatible, vd vLLM/llama.cpp/Ollama). localhost/127.0.0.1 tự đổi sang host.docker.internal để container gọi được host.

Troubleshooting

Triệu chứng Cách xử lý
Docker chưa cài (macOS) Tải Docker Desktop: https://www.docker.com/products/docker-desktop/ — script không tự cài được file .dmg
permission denied Docker (Linux) Đăng xuất + đăng nhập lại 1 lần (đã thêm bạn vào nhóm docker). Kiểm tra: datn doctor
WSL2 chưa có (Windows) Chạy lại install.ps1 sau khi khởi động lại máy (script đã chạy wsl --install)
Port bận (5000/8000/5173/5432/6333/9000) datn doctor báo port + tiến trình. Đóng app chiếm port hoặc dừng stack cũ
Đĩa đầy khi pull Cần ~5GB trống cho images. Dọn ổ rồi datn up lại
Đổi embedding → lỗi dim datn reset (xoá data) → datn initdatn up. Đổi dim làm vỡ Qdrant collection
News/Travel báo "chưa cấu hình" Thiếu Tavily/SerpApi key — chạy datn config tavily / datn config serpapi (optional)
Image pull lỗi / tag không tồn tại Kiểm tra tag trong ~/.datn/provider.lock; thử datn update --tag latest

Yêu cầu hệ thống

  • RAM ≥ 4GB (Qdrant + Postgres + backend).
  • Đĩa trống ≥ 5GB (images ~2-4GB).
  • Kết nối Internet (pull images + gọi LLM API).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datn_cli-0.2.2.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datn_cli-0.2.2-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file datn_cli-0.2.2.tar.gz.

File metadata

  • Download URL: datn_cli-0.2.2.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for datn_cli-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2750651930972f856b6932233ac1859d679694ec6a4b0c015cdf73c3a55e7b30
MD5 df558011a9493cd73748d8ec9ca14a9f
BLAKE2b-256 907c1ae4cfa52da0ad39743423ecdff1b7d154b706afd7185e6642e9a91c906f

See more details on using hashes here.

File details

Details for the file datn_cli-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: datn_cli-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for datn_cli-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd71da8a0e9b376eae540781364311828aa40b4021d3219e9599de2954073e0b
MD5 2c645ae005571596a3e9604e9823d0fe
BLAKE2b-256 6dae19f54fc1b623f45f0b4e247e966daed87dc04f29e65b71932adb63fb03ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page