Skip to main content

DeepSeek AI Agent - 智能终端助手,支持 JSON 模式工具调用、文件精确编辑、后台任务处理、对话历史

Project description

DeepSeek AI Agent v3.1

智能终端助手 —— 专为 Termux 环境设计的 AI Agent,基于 DeepSeek API。

功能特性

  • JSON 模式工具调用 —— 自动执行 shell 命令、读写文件、访问网页
  • 文件精确编辑 —— replace_in_file 只替换需要改的部分
  • 后台任务处理 —— 自动识别服务启动命令并加 & 后台运行
  • 对话历史 —— 实时保存,下次启动可继续对话
  • 用户自定义规则 —— 嵌入系统提示词,个性化 AI 行为
  • 国内镜像源 —— 支持阿里云/清华源/中科大/自定义四种模式
  • Termux 环境检测 —— 启动时自动验证运行环境

安装

从 PyPI 安装(推荐)

pip install deepseek-agent-2026

从源码安装

git clone https://github.com/user/deepseek-agent.git cd deepseek-agent pip install -e .

快速开始

安装后直接运行:

deepseek-agent-2026

或者作为 Python 模块运行:

python -m deepseek_agent

首次运行需要:

  1. 同意用户协议与隐私政策
  2. 输入 DeepSeek API Key(可从 https://platform.deepseek.com 获取)

可用工具

工具 功能
run_shell 执行系统命令
read_file 读取文件(带行号)
write_file 安全写入文件
replace_in_file 精确替换文件内容
mkdir 创建目录
fetch_webpage 访问网页(Lynx)
ask_user 向用户提问

特殊命令

命令 功能
help / 帮助 显示帮助信息
setting / 设置 打开设置菜单
clear 清屏
reset 重置对话并删除历史
exit / 退出 保存并退出

系统要求

  • Android 设备
  • Termux 应用(GitHubF-Droid
  • Python 3.8+
  • DeepSeek API Key

许可证

MIT License

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

deepseek_agent_2026-3.1.1.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

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

deepseek_agent_2026-3.1.1-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file deepseek_agent_2026-3.1.1.tar.gz.

File metadata

  • Download URL: deepseek_agent_2026-3.1.1.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for deepseek_agent_2026-3.1.1.tar.gz
Algorithm Hash digest
SHA256 0f24001746b6d20b70d45ba06a3ecff861ef892749bd42a3678ca27c1268a848
MD5 e9f0e90c07500b2a878a65a34e658d7b
BLAKE2b-256 0a8bf19b910853ea116abbab17f6602b76f27976186edb8b7e88c2809c7dcfdf

See more details on using hashes here.

File details

Details for the file deepseek_agent_2026-3.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for deepseek_agent_2026-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efbd1a73a2ed2366cba37e24ae7d8626f1421a9d98ecf94ddabe72c9e57cc32b
MD5 f5fccee0c527d8aca95625ae07a7603c
BLAKE2b-256 afb87b72b3215094c86cdfb0e85f64f607adcb3e638715c38165ccbb78da9147

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