恒美微站
首页
关于我们
建站服务
主题模板
案例展示
资讯中心
联系我们
AIGC(生成式AI)试用 56 -- CLI
首页
资讯中心
/
AIGC(生成式AI)试用 56 -- CLI
AIGC(生成式AI)试用 56 -- CLI
发布时间:2026/8/24 15:07:48
用 AI 学习AI。是否有更简洁的方式 或 接口调用 CLI浅尝之试用之实践之。1. 为什么要用CLICLICommand Line Interface命令行界面 -- 那个传统的黑乎乎的界面那个传说中高手的操作小黑框框噼里啪啦的只能敲命令GUIGraphical User Interface图形界面 -- 与CLI相对除了键盘输入还提供了可用于鼠标操作的按钮、输入框。。。。。。提供给用户与系统之间的操作界面CLI 相对 GUI- 简单、直接一个命令解决一个问题、一件事- CLI需要记忆命令和参数专业性要求高- CLI对于GUI正如 历史大火的MUD游戏Multiple User Domain多用户虚拟空间游戏文字网游的统称最早的网络游戏和 现有最火的游戏王者荣耀为什么要用CLI -- 提问AI 为什么要推出 CLI- CLI 不是给人单纯用来敲命令玩本质是给 AI Agent、脚本、自动化流程提供原生交互接口同时补齐网页 / IDE 做不到的能力 -- 豆包- CLI完美适配大模型的运行特性解决了GUI图形界面无法满足AI自动化调用的痛点成为AI落地的关键基础设施 -- 文心- GUI是为人类设计的而CLI才是为AI原生设计的接口 -- deepseek- AI 工具需要调用另一个工具时CLI 天然契合 AI 的工作方式 -- 千问- AI接口调用、工具调用、自动化实现2. CLI 安装下载地址https://www.npmjs.com/安装# node --version # 检查node安装及版本# npm install -g CLI_NAME # 下载LLM对应CLI示例- opencli# jackwener/opencli # Make any website or Electron App your CLI. AI-powered. npm install -g jackwener/opencli added 17 packages in 27s 1 package is looking for funding run npm fund for details npm notice npm notice New major version of npm available! 10.5.2 - 12.0.2 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.0.2 npm notice Run npm install -g npm12.0.2 to update! npm notice ############################ OpenCLI把任意网站变成 CLI 在你的登录态浏览器上跑 Browser Use。 把网站、浏览器会话、Electron 应用和本地工具统一变成适合人类与 AI Agent 使用的确定性接口。 或者在任意页面上跑 Browser Use —— 导航、填表单、点击、抓取、自动化。 OpenCLI 可以用同一套 CLI 做三类事情 直接使用现成适配器B站、知乎、小红书、Twitter/X、Reddit、HackerNews 等 100 站点 开箱即用。 让 AI Agent 操作任意网站在你的 AI AgentClaude Code、Cursor 等中安装 opencli-browser skillAgent 就能用你的已登录浏览器导航、点击、输入/填充、提取任意网页内容。 把新网站写成 CLI用 opencli browser 原语 opencli-adapter-author skill从站点侦察、API 发现、字段解码到 opencli browser verify 一条龙。 除了网站能力OpenCLI 还是一个 CLI 枢纽你可以把 gh、docker、longbridge、tg、discord、wx、ntnNotion等本地工具统一注册到 opencli 下也可以通过桌面端适配器控制 Cursor、Trae CN、Codex、Antigravity、ChatGPT、Trae SOLO 等 Electron 应用。3. CLI调用callopencli Usage: opencli [options] [command] Make any website your CLI. Zero setup. AI-powered. Options: -V, --version output the version number --profile name Chrome profile/context alias for Browser Bridge commands -h, --help display help for command Commands: list [options] List all available CLI commands validate [target] Validate CLI definitions verify [options] [target] Validate smoke test skills list, read auth refresh, status convention-audit [options] [target] Scan adapters for agent-native convention violations browser [options] analyze, back, bind, check, click, close, console, dblclick, dialog, drag, eval, extract, fill, find, focus, frames, get, hover, init, keys, network, open, screenshot, scroll, select, state, tab, type, unbind, uncheck, upload, verify, wait doctor [options] Diagnose opencli browser bridge connectivity completion shell Output shell completion script plugin create, install, list, uninstall, update adapter eject, reset, status profile list, rename, use daemon restart, status, stop external install, list, register External CLIs (13): discord(discord-cli), docker, dws(DingTalk Workspace), gh, lark-cli, longbridge, ntn(notion), obsidian, tg(tg-cli), vercel, wecom-cli(企业微信), wrangler, wx(wx-cli) App adapters (10): antigravity, chatgpt-app, chatwise, codex, cursor, discord-app, doubao-app, qoder, trae-cn, trae-solo Site adapters (163): 12306, 1688, 1point3acres, 36kr, 51job, aibase, amazon, apple-podcasts, archive, arxiv, autohome, baidu-scholar, band, barchart, bbc, bilibili, binance, bloomberg, bluesky, booking, boss, brave, chaoxing, chatgpt, chess, claude, cnki, coingecko, confluence, coupang, crates, ctrip, dblp, deepseek, defillama, devto, dianping, dictionary, dockerhub, dongchedi, douban, doubao, douyin, duckduckgo, eastmoney, endoflife, facebook, flathub, flomo, gemini, geogebra, gitee, github, github-trending, google, google-scholar, goproxy, gov-law, gov-policy, grok, guazi, hackernews, hf, hltv, homebrew, huodongxing, hupu, imdb, indeed, instagram, jd, jianyu, jike, jimeng, jira, juejin, ke, kimi, lesswrong, lichess, linkedin, linkedin-learning, linux-do, lobsters, maimai, manus, maven, mdn, medium, mercury, mubu, notebooklm, nowcoder, npm, nuget, nvd, oeis, ones, openalex, openfda, openreview, osv, packagist, paperreview, pixiv, powerchina, producthunt, pubmed, pypi, quark, qwen, reddit, rednote, rest-countries, reuters, rfc, rubygems, semanticscholar, sinablog, sinafinance, slock, smzdm, spotify, stackoverflow, steam, substack, suno, taobao, tdx, ths, tieba, tiktok, toutiao, tvmaze, twitter, uisdc, uiverse, upwork, v2ex, wanfang, web, wechat-channels, weibo, weixin, weread, weread-official, wikidata, wikipedia, wttr, xianyu, xiaoe, xiaohongshu, xiaoyuzhou, xueqiu, yahoo, yahoo-finance, yollomi, youdao, youtube, yuanbao, zhihu, zlibrary, zsxq Run opencli list for full command details, or opencli site --help to inspect one site. Agent tip: use opencli site --help -f yaml for all command args/options in one structured response.zhihu answer [cookie] — Answer a Zhihu question answer-comments [cookie] — 知乎回答评论列表 answer-detail [cookie] — 知乎单个回答完整内容按 answer ID 获取 collection [cookie] — 知乎收藏夹内容列表需要登录 collections [cookie] — 知乎收藏夹列表需要登录 comment [cookie] — Create a top-level comment on a Zhihu answer or article download [cookie] — 导出知乎文章为 Markdown 格式 favorite [cookie] — Favorite a Zhihu answer or article into a specific collection follow [cookie] — Follow a Zhihu user or question followers [cookie] — 知乎某用户的粉丝列表 following [cookie] — 知乎某用户关注的人列表 hot [cookie] — 知乎热榜 like [cookie] — Like a Zhihu answer or article login [cookie] — Open zhihu login and wait until the browser session is authenticated pins [cookie] — 知乎某用户的想法短内容列表 question [cookie] — 知乎问题详情和回答 recommend [cookie] — 知乎首页推荐 search [cookie] — 知乎搜索 user [cookie] — 知乎用户主页资料粉丝/关注/回答/文章/获赞数 user-answers [cookie] — 知乎某用户的回答列表 user-articles [cookie] — 知乎某用户的文章/专栏列表 whoami [cookie] — Show the current logged-in zhihu account opencli zhihu hot ⏳ Starting daemon... ok: false error: code: BROWSER_CONNECT message: Browser Bridge extension not connected help: |- Make sure Chrome/Chromium is open and the OpenCLI extension is enabled. If not installed: 1. Download: https://github.com/jackwener/opencli/releases 2. Open chrome://extensions → Developer Mode → Load unpacked exitCode: 694. Python调用CLI- jackwener/opencliopencli 36kr search AI CLI ⏳ Waiting for Chrome/Chromium extension to connect... Make sure Chrome or Chromium is open and the OpenCLI extension is enabled. ok: false error: code: BROWSER_CONNECT message: Browser Bridge extension not connected help: |- Make sure Chrome/Chromium is open and the OpenCLI extension is enabled. If not installed: 1. Download: https://github.com/jackwener/opencli/releases 2. Open chrome://extensions → Developer Mode → Load unpacked exitCode: 69 opencli 36kr search AI CLI 36kr/search ┌──────┬──────────────────────────────────────────────────────────────────────────────────────┬──────┬─────────────────────────────────────┐ │ Rank │ Title │ Date │ Url │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 1 │ AI 即将接管流量而广告正在疯狂「末日反扑」 │ │ https://36kr.com/p/3951561851534723 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 2 │ 600 亿、5000 亿美国 AI 开始疯狂借钱 │ │ https://36kr.com/p/3950851925032069 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 3 │ AI让平庸规模化 │ │ https://36kr.com/p/3923246119431553 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 4 │ 越会用 AI 的人学习能力退化得越快 │ │ https://36kr.com/p/3950175530270084 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 5 │ AI的电力账单与算力碳足迹 │ │ https://36kr.com/p/3949940696317321 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 6 │ 36氪出海·中东世界银行报告卡塔尔跻身全球AI发展前列 │ │ https://36kr.com/p/3949910681517445 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 7 │ 以供应链视角构建AI算力价值闭环 │ │ https://36kr.com/p/3949332172291464 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 8 │ 苹果 Apple Music 不想放过任何一首 AI 音乐 │ │ https://36kr.com/p/3949142665297281 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 9 │ 音乐三巨头秀“肌肉”AI将是新杠杆 │ │ https://36kr.com/p/3949129578839175 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 10 │ 科大讯飞扣非净利下滑74.88%AI学习机销量未达预期 │ │ https://36kr.com/p/3949113720739462 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 11 │ 全球第一个“被AI老板开除”的人花10万美元让AI开店赚钱4个月亏了1.3万还学会了“炒人” │ │ https://36kr.com/p/3949157734825091 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 12 │ 失业小哥7000行代码复刻了AMD重金收购的AI芯片 │ │ https://36kr.com/p/3949004912475528 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 13 │ AI已经救不了大厂的股价了 │ │ https://36kr.com/p/3948932571937922 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 14 │ 大厂的AI人才抢夺战人比算力更贵 │ │ https://36kr.com/p/3948879291291271 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 15 │ Gen1.5 模型带来重要进展物理 AI 正在接近 GPT3 时刻 │ │ https://36kr.com/p/3948968465268103 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 16 │ ChatGPT 可以看短信了AI 想从你的 App 里拿到你的一切 │ │ https://36kr.com/p/3948936714190216 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 17 │ 2026世界机器人大会从Model到OrganizationAI进入「群智」时刻 │ │ https://36kr.com/p/3949050371816835 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 18 │ AI 硬件的下一步从 iKKO MindOne 看 Personal AI 的新路径 │ │ https://36kr.com/p/3949037514472836 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 19 │ 日本最年轻华人终身教授创业AI新材料自研200物理模型研发周期缩至两月丨36氪首发 │ │ https://36kr.com/p/3949036757155202 │ ├──────┼──────────────────────────────────────────────────────────────────────────────────────┼──────┼─────────────────────────────────────┤ │ 20 │ 抖快B红集体押注“AI互动内容”创作者如何抓住新机会 │ │ https://36kr.com/p/3948788952628359 │ └──────┴──────────────────────────────────────────────────────────────────────────────────────┴──────┴─────────────────────────────────────┘ 20 items · 2.0s · 36kr/search5. Python调用openCLIimport subprocess, sys, io process subprocess.Popen([cmd, /c, opencli 36kr search AI], stdoutsubprocess.PIPE, stderrsubprocess.PIPE) stdout, stderr process.communicate() stdout stdout.decode(utf-8) stderr stderr.decode(utf-8) print(f{stdout}) print(f{stderr}) ######################################################### - rank: 1 title: AI 即将接管流量而广告正在疯狂「末日反扑」 date: url: https://36kr.com/p/3951561851534723 - rank: 2 title: 600 亿、5000 亿美国 AI 开始疯狂借钱 date: url: https://36kr.com/p/3950851925032069 - rank: 3 title: AI让平庸规模化 date: url: https://36kr.com/p/3923246119431553 - rank: 4 title: 越会用 AI 的人学习能力退化得越快 date: url: https://36kr.com/p/3950175530270084 - rank: 5 title: AI的电力账单与算力碳足迹 date: url: https://36kr.com/p/3949940696317321 - rank: 6 title: 36氪出海·中东世界银行报告卡塔尔跻身全球AI发展前列 date: url: https://36kr.com/p/3949910681517445 - rank: 7 title: 以供应链视角构建AI算力价值闭环 date: url: https://36kr.com/p/3949332172291464 - rank: 8 title: 苹果 Apple Music 不想放过任何一首 AI 音乐 date: url: https://36kr.com/p/3949142665297281 - rank: 9 title: 音乐三巨头秀“肌肉”AI将是新杠杆 date: url: https://36kr.com/p/3949129578839175 - rank: 10 title: 科大讯飞扣非净利下滑74.88%AI学习机销量未达预期 date: url: https://36kr.com/p/3949113720739462 - rank: 11 title: 全球第一个“被AI老板开除”的人花10万美元让AI开店赚钱4个月亏了1.3万还学会了“炒人” date: url: https://36kr.com/p/3949157734825091 - rank: 12 title: 失业小哥7000行代码复刻了AMD重金收购的AI芯片 date: url: https://36kr.com/p/3949004912475528 - rank: 13 title: AI已经救不了大厂的股价了 date: url: https://36kr.com/p/3948932571937922 - rank: 14 title: 大厂的AI人才抢夺战人比算力更贵 date: url: https://36kr.com/p/3948879291291271 - rank: 15 title: Gen1.5 模型带来重要进展物理 AI 正在接近 GPT3 时刻 date: url: https://36kr.com/p/3948968465268103 - rank: 16 title: ChatGPT 可以看短信了AI 想从你的 App 里拿到你的一切 date: url: https://36kr.com/p/3948936714190216 - rank: 17 title: 2026世界机器人大会从Model到OrganizationAI进入「群智」时刻 date: url: https://36kr.com/p/3949050371816835 - rank: 18 title: AI 硬件的下一步从 iKKO MindOne 看 Personal AI 的新路径 date: url: https://36kr.com/p/3949037514472836 - rank: 19 title: 日本最年轻华人终身教授创业AI新材料自研200物理模型研发周期缩至两月丨36氪首发 date: url: https://36kr.com/p/3949036757155202 - rank: 20 title: 抖快B红集体押注“AI互动内容”创作者如何抓住新机会 date: url: https://36kr.com/p/3948788952628359 b.decode() ########################################################## ok: false error: code: NO_DATA message: No results found help: Try a different query or check your keyword exitCode: 16. GUI下的openCLI- 为什么还要在CLI下加个外壳GUI -- 也许只是让看上去专业的操作去适应到普适性的操作- 只是立个想法是否需要实现还要看实际应用参考CLI 是什么为什么大厂突然集体卷命令行 - 知乎https://www.npmjs.com/OpenCLI/README.zh-CN.md at 70890c7e26c6e8f31d20a7665b85a4a3d427d718 · jackwener/OpenCLI · GitHub