xAgent CLI is not just another AI coding assistant β it's an intelligent agent for personal PCs and autonomous living that transforms how you interact with your digital life.
| π― | Universal AI Companion |
|---|---|
| π | Life Automation - From file organization to smart scheduling |
| π» | Professional Development - Code, debug, and deploy with AI |
| π | Multi-Model Support - Free access to Kimi K2, Qwen3 Coder, DeepSeek v3 |
| π§ | GUI Automation - Precise mouse/keyboard control for any task |
| π | Flexible Security - 5 execution modes from YOLO to DEFAULT |
# Install
npm i -g @xagent-ai/cli
# Launch
xagent startThat's it! Start automating your digital life in seconds.
| Feature | xAgent CLI | Claude Code | Gemini CLI |
|---|---|---|---|
| Life Automation | β | β | β |
| PC Smart Management | β | β | β |
| Todo Planning | β | β | β |
| SubAgent System | β | β | β |
| Plan Mode | β | β | β |
| Task Tools | β | β | β |
| Conversation Recovery | β | β | β |
| Context Auto-compression | β | β | β |
| Web Search | β | β | |
| Thinking Mode | β | β | β |
| Workflow System | β | β | β |
> Organize my desktop, categorize files by type
> Set up daily backup to cloud storage
> Remind me of meetings at 3 PM
> Find largest files eating disk space
> Batch rename files with date format
> Download all PDFs from a webpage
> Analyze Excel data, generate charts
> Translate documents preserving format
> Analyze project architecture
> Find and fix bug root causes
> Create RESTful APIs with auth
> Code review PRs automatically
> Download stock prices, send email alerts
> Auto-update project dependencies
> Monitor websites, alert on downtime
| Mode | Permissions | Best For |
|---|---|---|
| π’ YOLO | Full control | Complete AI autonomy |
| π‘ ACCEPT_EDITS | File only | Safe coding |
| π΅ PLAN | Plan β Execute | Complex tasks |
| βͺ DEFAULT | Approval required | Security-first |
| π£ SMART | Intelligent | Daily use (recommended) |
xAgent offers completely free access with multiple authentication options:
| Method | Description |
|---|---|
| π xAgent Account | Browser-based login (recommended) |
| π API Key | Server environments |
| π Third-Party APIs | GLM-4, DeepSeek, Qwen, Kimi, and more |
xagent-cli/
βββ src/
β βββ tools/ # 12+ built-in tools
β βββ agents/ # SubAgent system
β βββ gui-subagent/ # GUI automation
β βββ workflow/ # Workflow engine
β βββ checkpoint/ # State persistence
β βββ mcp/ # MCP integration
βββ dist/ # Compiled output
βββ docs/ # Documentation
βββ test/ # Test suite
βββ package.json
npm test # Unit tests
npm run lint # ESLint
npm run format # Prettier
npm run typecheck # TypeScriptCustomize xAgent by editing ~/.xagent/settings.json:
{
"theme": "Default",
"selectedAuthType": "openai_compatible",
"apiKey": "your-api-key",
"baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4",
"modelName": "glm-4.7",
"guiSubagentModel": "doubao-1-5-ui-tars-250428",
"guiSubagentBaseUrl": "https://ark.cn-beijing.volces.com/api/v3",
"guiSubagentApiKey": "your-api-key",
"searchApiKey": "",
"executionMode": "smart",
"approvalMode": "smart",
"checkpointing": {
"enabled": false,
"autoCreate": true,
"maxCheckpoints": 10
},
"thinking": {
"enabled": true,
"mode": "normal",
"displayMode": "compact"
},
"contextCompression": {
"enabled": true,
"maxMessages": 30,
"maxContextSize": 1500000,
"preserveRecentMessages": 0,
"enableSummary": true
},
"contextFileName": "XAGENT.md",
"mcpServers": {},
"language": "en",
"autoUpdate": true,
"telemetryEnabled": true,
"showToolDetails": false,
"showAIDebugInfo": false,
"loggerLevel": "info",
"contextCompress": {
"enabled": false,
"autoTrigger": false,
"messageThreshold": 50,
"tokenThreshold": 100000,
"strategy": "summary",
"preserveRecent": 5
},
"type": "openai_compatible"
}- π Architecture
- π§ Tool System
- π SKILL, Worflow and MCP Integration
- π» CLI Commands
- π€ Contributing
- π Third-Party Models
We welcome contributions! Here's how to get started:
- π΄ Fork the repository
- πΏ Create a feature branch
- β Ensure tests pass
- π Submit a PR
MIT License - See LICENSE
Built with β€οΈ using Ink β’ Powered by xAgent Platform
