About
x-cli examples
Learning & EducationMeasured star growth
- in 24h
- -1
- in 7 days
- -3
- in 15 days
- -4
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_EN.md
Originalx-cli
English | 中文
11 PM, and you're still bouncing between Zillow, Apartments.com and half a dozen local listing sites. Refresh, wait, re-enter the filters, and half of what comes back is stale anyway. Try another country and it gets worse — London means Rightmove, Madrid means Idealista, and every site's filter panel is shaped differently.
I didn't go looking for a tool. I said one sentence to my agent:
Build me a CLI for 58.com. I want to search rentals.
Then I went and did something else. By the time I came back, 58-cli worked. Anjuke, Rightmove, Idealista came later — the same sentence, a few more times.
Two things make this work:
- agent-cli-creator — a skill that teaches your agent how to turn a website into a CLI. It handles how to build.
- kimi-webbridge — a browser extension plus a local skill that lets the agent drive the Chrome already sitting on your desk. It handles what the result runs on.
Why route through a browser at all? Because 58.com has no public API. Neither does Anjuke. Neither does Ctrip. That data doesn't live in any API doc — it only exists inside the tab you already have open and already logged into. What webbridge does is hand that tab to your agent. No key to apply for, no token to keep alive.
This repo is the showcase of what came out. All 15 CLIs in it were built this way.
What the agent did after that sentence
It asked me two questions first: which language, and which features to start with. I said Go, and just search plus detail for now.
Then it didn't write any code. It opened my Chrome, actually searched 58.com for an apartment, watched the network requests until it had the endpoint, and then ran that endpoint right there in the browser to confirm real data came back. That step is the one that matters most — a site won't tell you what its endpoints look like, so you have to go look.
Only after that did it start building. Scaffold, then read-only commands first, verifying each one before moving to the next.
What I ended up with:
58-cli search --city sh --keyword 张江 --max-price 5000 --limit 3
{"ok": true, "data": {"listings": [{"title": "...", "rent_monthly": 4800, "layout": "2室1厅", "area_sqm": 68}]}}
Here's a full CLI being born, start to finish:
https://github.com/user-attachments/assets/c1d04187-972a-4b8a-b243-df085281fc77
The same sentence, 14 more times
| Scenario | CLIs used | Full recipe |
|---|---|---|
| Rentals across countries | 58-cli, anjuke-cli, apartments-cli, rightmove-cli, idealista-cli + rental-assistant skill | find-shanghai-rental |
| Trip planning | ctrip-cli, booking-cli + travel-planning skill | plan-kyoto-trip |
| Gaokao applications | gaokao-cli + gaokao-assistant skill | gaokao-jiangsu-211 |
| Batch image generation | chatgpt-image-cli, nanobanana-cli | batch-image-shiba-inu |
| Topic research | google-cli, baidu-cli | research-local-ai-models |
| Academic literature | scholar-cli + paper-research skill | review-rag-literature |
| Job hunting | boss-cli | — |
| Free stock photos | unsplash-cli | — |
twitter-cli and xiaohongshu-cli ship via Homebrew and don't live in this repo:
brew tap xpzouying/agent-cli
brew install twitter-cli xiaohongshu-cli
What to install depends on what you want
Just want to use the existing CLIs
You don't need agent-cli-creator. Two steps:
Step 1 — install kimi-webbridge. It comes in two parts, installed once and shared by every CLI here:
The browser extension — your agent's way into the browser. Once it's in, every click, keystroke and read goes through it, and the Chrome sessions you're already logged into get reused automatically.
The local skill, which teaches your agent how to use that extension:
curl -fsSL https://cdn.kimi.com/webbridge/install.sh | bash
Step 2 — grab a CLI. Download the archive for your platform from the Releases page and extract it.
For the scenarios above that come with a skill, add one more line, e.g.:
npx skills add better-world-ai/x-cli --skill rental-assistant
Then open your agent and just talk: "Find me a two-bedroom in Zhangjiang, Shanghai, under 5000 a month."
Want to build your own
Install kimi-webbridge (both parts above — skip if you already have it)
Install agent-cli-creator:
npx skills add better-world-ai/agent-cli-creatorLog into the target site in Chrome, then tell your agent: "Build me a CLI for example.com. I want to pull the home feed and post comments."
The agent will ask which language and which features to start with, then go explore the site, scaffold the project and implement the commands, stopping to check with you at the decision points. For manual installation without Node.js, and for how the skill works internally, see the agent-cli-creator README.
macOS Gatekeeper prompt
If you see "cannot be opened because the developer cannot be verified", run:
xattr -d com.apple.quarantine ./<cli-name>
Build from source
git clone https://github.com/better-world-ai/x-cli
cd x-cli/<some-cli>
go build -o ./<cli-name> .
Your turn
Code stopped being the bottleneck a while ago. The bottleneck is whether you say the sentence out loud.
npx skills add better-world-ai/agent-cli-creator
Then fill in the blanks and send it to your agent:
Build me a CLI for ______. I want to ______.
All 15 in this repo started exactly there.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
zy 💻 📖 🚧 🚇 🤔 📆 |
wendy57h 💻 📖 🤔 |
Rachel Lu 💻 👀 |
董艺宽 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT — see LICENSE.
Explore related projects
Loading…