@QingQ77: Tell the Agent which website to control in one sentence, and it automatically generates a CLI tool for you, directly using your logged-in Chrome browser, no API or token required. https://github.com/better-world-ai/x-cli… x-cl…
Summary
x-cli is an open-source project that uses an AI agent to automatically generate CLI tools for controlling web pages, leveraging the logged-in session of Chrome without needing an API or token. It supports generating a CLI in one sentence after installing the Kimi WebBridge plugin, and comes with built-in example tools like Baidu Search and Google Search.
View Cached Full Text
Cached at: 05/18/26, 08:30 AM
Just tell the Agent which website to control, and it automatically generates a CLI tool for you, directly using your logged-in Chrome browser—no API calls or tokens needed. https://github.com/better-world-ai/x-cli… The way x-cli works: after installing the Kimi WebBridge plugin, tell the Agent, “Help me create a CLI for a website.” The Agent will first ask what features you want, then analyze the page, write code, and generate the tool. The CLI you get directly controls your logged-in Chrome session—no API. The repo includes four ready-made tools: Baidu Search, Google Search with scraping, Nano Banana image generation, and ChatGPT image generation, all written in Go.
better-world-ai/x-cli
Source: https://github.com/better-world-ai/x-cli
x-cli
Things you want to do repeatedly on a website—just say it in one sentence to the AI agent, and it will create a CLI tool for you. The generated CLI can be invoked by the agent anytime, directly driving your real Chrome login session—no API, no token hassle.
This repository contains several CLI tools made this way. They are ready to use out of the box and also serve as reference examples, demonstrating how AI agent + kimi-webbridge can generate a complete CLI from a single requirement. The section 「Create a New CLI Yourself」 will walk through the full process.
DEMO (The birth of a CLI): https://github.com/user-attachments/assets/c1d04187-972a-4b8a-b243-df085281fc77
Create a New CLI Yourself
The CLI tools in this repo were all generated automatically by an AI agent using the skills/agent-cli-creator/ skill. Set up the following for your agent, then say “Help me create a CLI for example.com.”
Prerequisites
To let the agent actually control your browser, you need to install kimi-webbridge (https://www.kimi.com/zh-cn/features/webbridge). It has two parts:
- Browser extension – the entry point for the agent to control your browser. Once installed, all clicks, inputs, and reads go through it, automatically reusing your logged-in Chrome session.
- 中文:
- English:
- Local skill – tells the agent how to use the extension above. Install it:
bash curl -fsSL https://kimi-web-img.moonshot.cn/webbridge/install.sh | bash
Install the Skill
bash npx skills add better-world-ai/x-cli
No Node.js? Manual install:
Copy skills/agent-cli-creator/ to your agent’s skills directory (for Claude Code it’s ~/.claude/skills/). Not sure about the path? Throw this README at your agent—it can figure it out.
Once installed, you’re ready to go. Just say “Help me create a CLI for example.com” in the conversation.
How to Use
- Start kimi-webbridge and log in to the target website in Chrome.
- Tell the agent something like:
“Help me create a CLI for example.com. I want to pull the homepage feed and post comments.”
- The agent will ask you a few questions (which language, the top 1–3 features, etc.), then analyze the site, scaffold the project, implement the commands, and pause for confirmation at key points.
- You’ll end up with a tool you can use like this:
bash example-cli login-status example-cli home --limit 10 example-cli post --content "hello"
Included CLI Tools
| Tool | One-liner |
|---|---|
baidu-cli | Baidu Search, output JSON |
google-cli | Google Search + page scraping, output JSON |
nanobanana-cli | Generate images with Gemini 2.5 Flash Image (Nano Banana) |
chatgpt-image-cli | Generate images via chatgpt.com/images |
Install Precompiled Binary
Go to the Releases page and download the archive for your platform, then extract it.
macOS Launch Warning
If you see “can’t be opened because the developer cannot be verified”, run:
bash xattr -d com.apple.quarantine ./<binary>
Build Locally
bash git clone https://github.com/better-world-ai/x-cli cd x-cli/<some-cli> go build -o . .
License
MIT, see LICENSE.
Similar Articles
@geekbb: A CLI tool written in Go that integrates three search capabilities: Web search (Brave/DDG/SearXNG/Exa), code search (Grep/Sourcegraph/GitHub), and library documentation query (Context7). It also supports web scraping and site crawling. For AI...
A blazing-fast, stateless CLI tool written in Go that integrates Web search, code search, and library documentation query. It supports web scraping and site crawling, designed for AI agents and terminal use.
@0xQiYan: Google just released an official CLI purpose-built for AI agent development. It’s not a new agent — it’s a “skill pack” you add on top of any coding agent like Claude Code, Codex, etc. Once installed, your agent automatically learns the full workflow: project bootstrapping, coding (ADK), evaluation, deployment, and observability. 7 official…
Google released the official CLI (google-agents-cli), designed for AI agent development, enhancing the full workflow capabilities of coding agents like Claude Code and Codex — covering project setup, coding, evaluation, deployment, and observability. It is open-source and installable with a single command.
@quant_sheep: I had an Agent use Chrome to find and book an Airbnb for me. It even proactively asked the host: 'Do you have a kitchen?' If you need your Agent to operate a browser like a human — whether for testing web pages or automatically booking Airbnb stays — any web-based operation can be done...
Showcases an open-source tool called open-browser-use that enables an AI Agent to operate Chrome browser like a human, completing the full process of finding and booking accommodation on Airbnb, including proactively asking the host.
@daweifs: The Essential Tool for AI Agents: CLI-Anything Hub. In a nutshell: Turn any GUI/SaaS/desktop software into an AI-native CLI with one click! Agents no longer need to 'click buttons'; just one command gets it done! Key highlights: • 76+ ready-made CLI covering...
CLI-Anything Hub is an open-source tool that can convert any GUI or SaaS software into an AI-native CLI with one click, allowing AI agents to operate directly via command line without manual clicks. It currently offers 76+ ready-made CLIs covering 31 categories of software, and is compatible with mainstream Agent frameworks such as Claude Code and Cursor.
@jakevin7: OpenCLI One-Click Unlocks Agent's Twitter World! Tweet, reply, quote retweet, monitor notifications, keyword-triggered auto DM reply, grab entire thread for summary, batch organize lists, regularly back up someone's images and videos — any client operation you can think of, Agent…
OpenCLI is a tool that allows AI Agents to seamlessly operate Twitter by reusing the browser login state (no X API key needed), supporting 36 client commands like tweeting, replying, monitoring, fetching summaries, etc., turning Twitter into a full-fledged living environment for Agents.