$ cat ~/map/pi-deepseek-search.md
pi-deepseek-search
pi tools for DeepSeek-powered web search and Markdown page fetch — no browser, MCP, or extra model calls.
extensions✓ Oct 19
Facts
- GitHub Stars
- ★ 2
- Forks
- 0
- license
- —
- npm / mo
- —
- last push
- Oct 23, 2026
install
pi install git:github.com/dingdinglz/pi-deepseek-search## TL;DR
A pi extension pairing DeepSeek's Search and Fetch APIs as two tools — web search returning titles, links, and summaries plus single-page Markdown fetch — with the key stored locally and no browser, MCP server, or extra model call involved.
## Key points
- $deepseek_search takes a query of 1-128 Unicode characters and returns titles, links, dates, and summaries with relevance and authority information; count spans 1-50 (default 10) and need_content attaches the fetchable page body.
- $deepseek_fetch reads one HTTP(S) URL of at most 8192 characters — no username or password in it — and returns the title and Markdown body; a page it cannot fetch produces an explicit error instead of invented content.
- $Search syntax follows the official API: site:, -site:, excluded keywords, exact phrases, lang:, after:, and before:, with OR joining multiple sites.
- $The /deepseek-key command in the TUI saves the key as plaintext to deepseek-search/key.json inside the pi user directory (default ~/.pi/agent/deepseek-search/key.json) with directory mode 0700 and file mode 0600; the extension reads neither DEEPSEEK_API_KEY nor .env.
- $Output is structured for codemode via outputSchema and structuredContent; model-visible text over 400 lines or 30 KiB is truncated, with the full copy saved to a temporary pi-deepseek-*/output.md file.
- $Total timeout is 60 seconds; retries cover only HTTP 408, 429, and 5xx — at most three in total, honoring Retry-After — while network errors are not retried to avoid uncertain double billing.
- $Requires Node.js 22.19+, a pi built from @earendil-works/pi-coding-agent, and a funded DeepSeek API key, priced per the official docs at ¥5 per 1,000 successful requests; verified against pi 1.3.0.
## FAQ
Q Where is the DeepSeek API key stored?
Locally and in plaintext at deepseek-search/key.json inside the pi user directory — ~/.pi/agent/deepseek-search/key.json by default — with directory mode 0700 and file mode 0600. Input is never echoed into the conversation, command history, or project files, though any program with local file-read permission can read the file, and queries, target URLs, and the localization IP are sent to DeepSeek.
Q Does it work outside the TUI?
The /deepseek-key command is TUI-only, but the tools work in RPC, print, and JSON modes with a key saved beforehand; the command does not accept the key as an argument, and no-key calls point you back to /deepseek-key.
## References
## Related entries
$ Pi Web Access
Web search, content extraction, and video understanding for the Pi agent.
$ pi-conversation-outline
Read-only outline rail for fullscreen: one tick per prompt, hover to preview, click to jump.
$ pi-dsh-minimal
Pi extension that anchors DeepSeek V4 Pro and V4 Flash to the official DSH minimal surface (one system prompt, two tools) on the first request, then restores pi's normal tools.
Last updated: Oct 23, 2026