Unofficial Agent — v7.0

DeepSeek CLI

Strategic AI Agent for the Terminal

A terminal-native autonomous AI agent built on a Strategic Agentic Loop. Connects to 7 AI providers, executes tasks through 67+ built-in tools, and streams results in real time — from file operations and live web search to OCR, PDF editing, and full browser automation.

Quick Install View on GitHub
67+ Built-in Tools
7 AI Providers
14 Tool Categories
12x Loop Guard

Installation

One-line Install
bash -c "$(curl -fsSL \ https://raw.githubusercontent.com/\ XbibzOfficial777/deepseek-cli/\ refs/heads/main/install.sh)"
Manual Install
# Clone the repository git clone https://github.com/\ XbibzOfficial777/deepseek-cli.git cd deepseek-cli bash install.sh # Launch dscli

On first launch, set your API key with /key or open the settings panel via Ctrl+P.

Capabilities

What it does

Strategic Planner

LLM-based task decomposition with step prioritization, progress tracking, and multi-step reasoning before execution.

67+ Tools

Category-based filtering and relevance ranking across 14 tool categories including PDF, OCR, browser automation, and MCP real-time data.

Multi-Provider

7 AI backends with seamless switching — OpenRouter, Gemini, Anthropic, OpenAI, Groq, Together, and HuggingFace.

Loop Protection

Max 12 rounds, same-tool detection at 3x, and anti-stuck content analysis to prevent runaway execution cycles.

Real-Time Data

16 MCP tools for weather, stocks, crypto, news, prayer times, and more — all free with no keys required.

Mobile Ready

Optimized for Android Termux with raw-mode input, paste detection, and minimal resource usage.

Supported Providers

Provider Free Tier Best For
OpenRouter FREE DeepSeek-R1, Llama, Claude, GPT-4o — 200+ models in one endpoint
Google Gemini FREE High-speed reasoning with large context windows
HuggingFace FREE Open-source model ecosystem
Groq FREE Ultra-low latency inference
Together AI FREE Diverse open-source model selection
Anthropic PAID Precision coding and reasoning with Claude 4
OpenAI PAID Industry-standard GPT-4o and o3 models

REPL Interface

Commands

Ctrl+P Open interactive settings panel
/provider Switch AI provider
/model Switch model via arrow-key selection or live fetch
/key Set API key for active provider
/tools List all 67+ available tools
/thinking Toggle reasoning visibility
/live_search Multi-source real-time web search
/live_models Fetch all available models from provider API
/search_model Filter models by name or capability
/export Save conversation to file
/compact Compact history to last 10 messages
/system Update the system prompt
/clear Clear conversation history
/info Display current configuration
/help Show all commands
/exit Exit the CLI

67+ Tools, 14 Categories

File

read_file write_file list_files delete_file file_info

Web

web_search web_fetch live_search

Code

run_code run_shell install_pkg

System

system_info process_list disk_usage network_info env_vars

PDF

read_pdf create_pdf pdf_edit

DOCX

read_docx create_docx docx_info

OCR

ocr_read ocr_url

Browser

navigate click fill_form snapshot extract js

MCP Real-Time

weather stocks crypto currency news prayer_times timezone ip_info

Math

calculate unit_convert

Image

image_view image_info

Utility

timestamp text_transform json_parse base64_tool regex_test

Internals

Agentic Loop

INPUT ──► PLANNER ──► TASK BREAKDOWN ──► TOOL EXECUTION ──► RESPONSE │ │ └── LLM decomposition └── Loop protection + step prioritization (max 12 rounds) + progress tracking (anti-stuck) (dupe detection) ┌──────────────────┐ │ User Input │ └────────┬─────────┘ │ ┌────────▼─────────┐ │ Planner (LLM) │ ◄──────────────────┐ │ Task Decompose │ │ └────────┬─────────┘ │ │ │ ┌────────▼─────────┐ │ │ Tool Intelligence│ │ │ Filter + Rank │ │ └────────┬─────────┘ │ │ │ ┌────────▼─────────┐ ┌────────────────┴───────┐ │ Agent Engine │──►│ Tool Registry │ │ Loop Guard 12x │ │ 67+ tools │ └────────┬─────────┘ └────────────────────────┘ │ ┌────────▼─────────┐ │ Final Response │ └──────────────────┘