x-cli  by better-world-ai

AI agent for generating custom CLI tools from natural language

Created 1 month ago
305 stars

Top 87.5% on SourcePulse

GitHubView on GitHub
Project Summary

This project enables the generation of custom Command Line Interface (CLI) tools from natural language prompts, automating repetitive web tasks. It targets users and developers seeking efficient web automation, offering a novel approach where AI agents translate text requests into functional CLIs that directly leverage existing browser sessions without API keys or complex configurations.

How It Works

An AI agent, integrated with the skills/agent-cli-creator skill and kimi-webbridge, controls a live Chrome instance via a browser extension and local component, reusing established login states. Users describe desired CLI functionality; the agent interactively analyzes the target website, scaffolds the CLI, implements commands, and seeks confirmation before finalizing the tool, bypassing manual scripting or API integration.

Quick Start & Requirements

  • Installation: Install kimi-webbridge browser plugin and local skill (curl -fsSL https://kimi-web-img.moonshot.cn/webbridge/install.sh | bash). Add CLI creator skill: npx skills add better-world-ai/x-cli (Node.js required) or manual copy.
  • Prerequisites: Active Chrome session logged into the target website.
  • Usage: Start kimi-webbridge, prompt agent with task (e.g., "Create CLI for example.com to fetch feed items and post comments.").
  • Local Build: Clone repo, cd to CLI dir, run go build -o ./<cli-name> . (Go required). Pre-compiled binaries available on Releases.
  • macOS: May require xattr -d com.apple.quarantine ./<cli-name> for downloaded binaries.
  • Links: DEMO: https://github.com/user-attachments/assets/c1d04187-972a-4b8a-b243-df085281fc77; kimi-webbridge: https://www.kimi.com/zh-cn/features/webbridge (CN) / https://www.kimi.com/features/webbridge (EN).

Highlighted Details

  • AI-driven generation of CLI tools from natural language.
  • Direct browser control via kimi-webbridge, preserving authentication states.
  • Pre-built scenarios include travel planning, housing search, AI art generation, and web scraping.
  • Supports automated skill installation and manual local compilation (Go).

Maintenance & Community

Contributors include zy, wendy57h, and Rachel Lu, following the all-contributors specification. No specific community channels or roadmap links are provided.

Licensing & Compatibility

Licensed under MIT. This permissive license allows commercial use, modification, and distribution, including integration within closed-source applications.

Limitations & Caveats

Setup requires installing the kimi-webbridge browser plugin and local skill. CLI generation is interactive and depends on the AI agent's interpretation of website structure and user requests. Functionality relies on kimi-webbridge capabilities and the agent's skill set.

Health Check
Last Commit

4 days ago

Responsiveness

Inactive

Pull Requests (30d)
40
Issues (30d)
1
Star History
287 stars in the last 30 days

Explore Similar Projects

Starred by Vincent Weisser Vincent Weisser(Cofounder of Prime Intellect) and Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems").

ii-agent by Intelligent-Internet

0.1%
3k
Agentic framework for building and deploying intelligent agents
Created 1 year ago
Updated 1 month ago
Starred by Li Jiang Li Jiang(Coauthor of AutoGen; Engineer at Microsoft), Jared Palmer Jared Palmer(SVP at GitHub; Founder of Turborepo; Author of Formik, TSDX), and
1 more.

copilot-sdk by github

0.4%
9k
AI agentic workflow SDK for application integration
Created 4 months ago
Updated 17 hours ago
Feedback? Help us improve.