cd /news/ai-agents/simple-deepseek-web-search-cli-writt… · home › topics › ai-agents › article
[ARTICLE · art-159983] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Simple DeepSeek web search cli written in TypeScript. Cheap + fast search tool for agents (built on DS web search API)

A developer released deepseek-search-cli, an open-source TypeScript command-line wrapper around DeepSeek's web search API, published on npm and GitHub. The tool lets agents run web searches and fetch URLs via simple commands like 'dsearch', with output to Markdown or JSON, and ships with auth handling, an SDK wrapper, linting, CI checks, and unit, integration, live, and e2e tests. The developer notes the API costs $0.75 per 1,000 requests and pitches the CLI as a time-saver for agents needing web search.

by read1 min views5 publishedOct 29, 2026

Hey guys, if you've been following along with DeepSeek news you will know they recently added web search capability to the DeepSeek API, where you can use web search under the same API key. It is pretty handy, also super cheap at only $0.75 per 1,000 requests (pretty much as cheap as it gets, one search credit can encompass many responses).

I created a simple TypeScript CLI wrapper around the API for my own agents to use (for open source models and harnesses)

npm install -g deepseek-search-cli

dsearch auth    # Prompt for & save DS API key (can pipe) 

dsearch "World Cup winners 2026 lang:en" -n 5    # equivalent to 'dsearch search ...'
dsearch https://example.com                      # equivalent to 'dsearch fetch ...'
dsearch "World Cup winners" -o output.md         # supports .md and .json (-j flag)

And wanted to share it with others, contributors are welcome, or fork it and build a better version :)

I'm sure most of you could whip this up on your own but it also comes with unit/integration/live/e2e testing, CI checks, changelog, auth handling, linting, sdk wrapper, and a fleshed out readme, potentially saving you a few hours of work + validation. Just need to install, auth, and drop a comment in your 'AGENTS.md' to use dsearch --help when agent needs web search.

GitHub: https://github.com/LaishGlenberg/deepseek-search-cli

NPM: https://www.npmjs.com/package/deepseek-search-cli

Drop a star if this helped you or your agents!

EDIT: Looks like the top of the GIF is getting cut off or cropped on certain views, I will look into resizing it.

── more in #ai-agents 4 stories · sorted by recency
── more on @deepseek 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/simple-deepseek-web-…] indexed:0 read:1min 2026-10-29 · —