MarkTechPost AIAI Agent

Perplexity 推出 pplx:單一二進位 CLI,將搜尋 API 帶入終端機,專為程式碼代理設計

2026年7月27日 16:32

重點摘要

Perplexity 發布了 pplx,這是其搜尋 API 的官方命令列客戶端。該工具會回傳有基礎依據的搜尋結果與萃取後的頁面文字,全部以 JSON 格式呈現。根據官方文件,它同時面向人類與程式碼代理,但並非聊天客戶端:沒有對話模式、沒有模型選擇,也不提供合成答案。pplx 僅提供兩個操作介面:pplx search web 執行即時網路搜尋,pplx content fetch 則擷取 URL 並回傳清理後的頁面文字。其輸出合約定義明確:成功時退出碼為 0,並在標準輸出中輸出單一 JSON 物件;失敗時退出碼為 1,標準輸出則為空。

站內 AI 整理稿

Perplexity has released pplx, an official command line client for its Search API. The tool returns grounded search results and extracted page text, all as JSON. According to its docs, it targets humans and coding agents equally. It is not a chat client. There is no conversational mode, no model selection and no synthesized answer. Two surfaces, one output contract The tool exposes exactly two working surfaces. pplx search web runs a live web search. pplx content fetch pulls a URL and returns cleaned page text. The contract around them is the interesting part. Per the official pplx-cli Agent Skill, success means exit code 0 and exactly one JSON object on stdout. Search returns {hits: [{url, title, domain, snippet, ...}], total, saved_to?}. Every failure exits 1 with an empty stdout. One JSON error object goes to stderr, shaped {"error":{"code","message","command","hint"?}}. Documented codes include AUTHENTICATION, UNKNOWN_ARGUMENT, ARGUMENT_ERROR and BAD_REQUEST. The skill notes that list is not exhaustive, so callers should branch on error.code. (function(){ var f=document.getElementById("mtpPplxExplainerFrame"); window.addEventListener("message",function(e){ if(!e.data||e.data.pplxEmbed!=="pplx-explainer")return; var h=parseInt(e.data.height,10); if(h>0)f.style.height=h+"px"; }); })(); #mtp-pplx-explainer hr,#mtp-pplx-explainer p:empty,#mtp-pplx-explainer del,#mtp-pplx-explainer s{display:none!important} Install path and platform support Installation is a single shell command that pipes a script into sh: Copy CodeCopiedUse a different Browsercurl -fsSL https://github.com/perplexityai/perplexity-cli/releases/latest/download/install.sh | sh Reading install.sh shows what it actually does. It downloads manifest.json from the latest release and extracts the tag and version. It then pins every remaining download to that tag, explicitly to avoid racing a concurrent publish. It fetches SHA256SUMS and the platform binary, verifies the checksum, and installs to ~/.local/bin/pplx. No sudo is required. A receipt is written to ~/.config/pplx/pplx-receipt.json, but only after the installed binary runs successfully. Platform coverage is limited to three targets: macOS on Apple Silicon, Linux x86_64 and Linux arm64. Anything else exits with an error. There is no Windows build and no Intel macOS build. Context-window economics are a first-class design concern The most agent-specific feature is token budgeting. --output-dir writes the full result set to a JSON file. --stdout-preview[=<CHARS>] truncates long string fields in stdout, adding ...<truncated> markers. The skill is blunt about the trap: --stdout-preview is a no-op without a save directory. It truncates only when the result is also saved via --output-dir or $PPLX_OUTPUT_DIR. Used alone it returns full-size output, and hits can be multiple KB each. Saved search results land at {dir}/web/{rand}.json and fetches at {dir}/fetch/{rand}.json. Files are written only after a successful request. PPLX_OUTPUT_DIR sets a workspace default so the flag need not be repeated. For content fetch, the skill adds a correctness check rather than a cost one. Verify error and is_paywall in the output before trusting content. --html adds a raw_html field fetched live via crawler, and --no-cache forces a live fetch. (function(){ var f=document.getElementById("mtpPplxDeployFrame"); window.addEventListener("message",function(e){ if(!e.data||e.data.pplxEmbed!=="pplx-deploy")return; var h=parseInt(e.data.height,10); if(h>0)f.style.height=h+"px"; }); })(); #mtp-pplx-deploy hr,#mtp-pplx-deploy p:empty,#mtp-pplx-deploy del,#mtp-pplx-deploy s{display:none!important} Key Takeaways pplx is a single verified binary exposing two commands: pplx search web and pplx content fetch. Success is exit 0 plus one JSON object on stdout; failures put one JSON error object on stderr. pplx auth login is TTY-only, so agents and CI must export PERPLEXITY_API_KEY. --stdout-preview only truncates when paired with --output-dir or $PPLX_OUTPUT_DIR. Search API billing is $5.00 per 1,000 requests, capped at 50 QPS on every usage tier. Sources: perplexityai/perplexity-cli, pplx-cli SKILL.md, api-platform-developers, Perplexity API pricing, Rate limits and usage tiers, and Search API quickstart The post Perplexity Releases pplx, a Single-Binary CLI That Puts Its Search API in the Terminal for Coding Agents appeared first on MarkTechPost.

Related

相關文章

IT之家AI Agent

美團 AI“小團”升級代理執行能力:從 AI 規劃,到直接幫你搞定

首頁 > 智能時代>人工智能 美團 AI“小團”升級代理執行能力:從 AI 規劃,到直接幫你搞定 2026/7/27 15:42:40 來源:IT之家 作者:遠洋 責編:遠洋 評論: 感謝IT之家網友 不一樣的體驗 的線索投遞! IT之家 7 月 27 日消息,美團宣佈旗下本地生活 AI 原生助手“小團”全面升級,“從 AI 規劃,到直接幫你搞定”。

2 小時前
鈦媒體AI Agent

如何破解大模型的“金魚記憶”困境

大型語言模型常因記憶短暫被稱為「金魚記憶」,導致對話中斷或重複執行,成為智慧化應用的瓶頸。透過賦予持續記憶機制,AI代理可累積經驗、學習偏好,從一次性工具進化為長期陪伴的智能夥伴。未來設計更高效、安全的記憶儲存與檢索機制,是破解此困境的關鍵。

3 小時前
量子位AI Agent

出海企業苦等的可信任AI營銷產品,飛書深諾做出來了

# 出海企業苦等的可信任AI營銷產品,飛書深諾Marvy 2.0正式發布 海外市場競爭日趨白熱化,流量成本持續攀升,平台算法不斷變動——出海這門生意,正在進入真正的「困難模式」。過去靠堆預算、擴團隊來拉動增長的老路逐漸失靈,越來越多的企業將希望寄託於AI。然而,市面上的AI營銷工具雖多,卻往往停留在單點輔助層級,生成的內容看似專業,實則難以直接轉化為商業回報。真正敢把預算和增長目標交給AI的企業,少之又少。 就在這樣的背景下,飛書深諾在7月23日交出了自己的答案:Marvy 2.

5 小時前

紅杉中國李彥男:下一個十年的智能硬件如何定義?

賬號設置我的關注我的收藏申請的報道退出登錄登錄搜索36氪Auto數字時氪未來消費智能湧現未來城市啟動Power on36氪出海36氪研究院潮生TIDE36氪企服點評36氪財經職場bonus36碳後浪研究所暗湧Waves硬氪氪睿研究院媒體品牌企業號企服點評36Kr研究院36Kr創新諮詢企業服務核心服務城市之窗政府服務創投發佈LP源計劃VClubVClub投資機構庫投資機構職位推介投資人認證投資人服務尋求報道36氪Pro創投氪堂企業入駐創業者服務創投平臺AI測評網 首頁快訊資訊推薦財經AI自助報道浙江最新創投汽車科技專精特新直播視頻專題活動搜索尋求報道我要入駐城市合作紅杉中國李彥男:下一個十年的智能硬件如何定義?紅杉匯·2026年07月27日 11:43“買硬件”這個動作可能會消失 智能硬件下一個十年是怎樣的? 2026 WAIC期間,一場主題為“手機的‘消亡’與機器人的‘新生’”的圓桌論壇備受關注。紅杉中國董事總經理李彥男與多位關注智能硬件領域的嘉賓展開了精彩對話。他就手機的未來形態、AI native硬件的本質差異、新型智能產品的暢想等話題分享了自己的判斷與思考。 以下為其發言實錄整理: Q:過去一年,我們看到了太多“非手機”形態的智能硬件。手機這個物種正在被替代,還是正在被延伸?手機還會是主宰AI時代的智能設備嗎?下一個十年的智能硬件生態會是怎樣的? 我不認為手機會被簡單替代。手機仍然會很重要,因為它有幾個不可替代的優勢。它有最大的用戶基數、最成熟的供應鏈、最強的支付和身份體系、最完整的開發者生態。任何新硬件想完全繞開手機,成本都非常高。 但手機正在從“唯一入口”變成“核心節點”。 過去一年大家看到很多非手機形態:AI 眼鏡、AI 耳機、陪伴機器人、人形機器人、車載智能體。表面上看,它們都在挑戰手機;但更深層看,它們其實是在把手機過去承擔的功能拆開,放到更自然的場景裡。

6 小時前
智東西AI Agent

累計數億元!前字節女將創業,一個月拿下兩輪融資

智東西 作者 | 程茜 編輯 | 李水青 智東西7月27日消息,剛剛,北京企業級AI Agent基礎設施服務商詞元無限宣佈近日已完成天使++輪融資,這是其一個月內完成的第二筆融資,詞元無限累計融資額達數億元。 由公開信息可知,詞元無限此前完成兩輪融資,今年1月和6月分別完成天使輪和天使+輪融資,金額均為數千萬元。

6 小時前