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.3.tar.gz (16.7 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.3-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datn_cli-0.2.3.tar.gz
  • Upload date:
  • Size: 16.7 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.3.tar.gz
Algorithm Hash digest
SHA256 63aa7a0b079484a2c676480b897c029865f1d8a004d3a57c53e4796b7edad55f
MD5 d3496ea18e6da5553e941918c634e90d
BLAKE2b-256 720a40839dbf5f7ab688b9ce58737e438309733f2fb40df2bd276d3719b06c2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datn_cli-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 18.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f044e27ce45ce7d8d79e16a2092f994a49b53b76a134e5f8140fcfb3db9fd1
MD5 898bb968d7ca961877cb51373de531a1
BLAKE2b-256 b93bbb8017e4a8a52bc245d83baf49c21702d82d9c4127f94f45e76bdd2728dc

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