Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>DuanAPI - AI code agentNew to Visual Studio Code? Get it now.
DuanAPI - AI code agent

DuanAPI - AI code agent

DuanAPI - AI code agent

|
5 installs
| (0) | Free
AI code agent powered by DuanAPI
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DuanAPI

Trợ lý lập trình AI mã nguồn mở — chat, agent, edit và autocomplete ngay trong VS Code

VS Code Agent

Agent để cùng AI thực hiện các task phát triển: tạo file, sửa nhiều file, chạy lệnh và kiểm tra kết quả.

VS Code Chat

Chat để hỏi các câu hỏi chung và làm rõ đoạn code bạn đang quan tâm.

VS Code Edit

Edit để sửa một đoạn code mà không rời khỏi file hiện tại.

VS Code Autocomplete

Autocomplete để nhận gợi ý code nội tuyến ngay khi bạn gõ.

Cài đặt

Cách 1 — Marketplace (khuyến nghị)

Mở trang extension trên Visual Studio Marketplace → bấm Install. VS Code tự tải và cài, không cần tải file .vsix về máy. Mỗi khi có bản mới, bấm Update trong danh sách Extensions là xong.

Trong VS Code cũng có thể gõ vào Command Palette:

code --install-extension DuanAPI-AIcodeagent.duanapi

Cách 2 — Từ file .vsix

  1. Tải file .vsix từ thuehay.com/downloads/latest.vsix
  2. Mở Command Palette (Ctrl+Shift+P) → gõ Extensions: Install from VSIX... → chọn file vừa tải
  3. Gõ Developer: Reload Window để nạp lại extension

Cấu hình nhanh

  1. Mở panel DuanAPI ở Sidebar bên phải (Secondary Side Bar).
  2. Nhấn Configure để nhập API key và chọn model.
  3. Bắt đầu chat, dùng /help để xem các lệnh nhanh có sẵn.

Cấu hình được lưu tại ~/.duanapi (config.yaml, .env, rules/).

Phím tắt

Phím tắt Hành động
Ctrl/Cmd + I Mở / focus ô nhập của DuanAPI
Ctrl/Cmd + L Chấp nhận toàn bộ diff được đề xuất
Ctrl/Cmd + J Mở panel DuanAPI Console

License

Apache 2.0 © 2023-2026 DuanAPI

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft