A command-line interface for managing AI agents from AGTHub.
Version 2.0: Now powered by AGTHub API with real-time search, publishing, and authentication features!
AGTHub is a comprehensive AI Agent marketplace platform where you can:
- ๐ Discover Agents: Browse thousands of free and premium AI agents
- ๐ค Publish Your Agents: Share your agents with the community
- ๐ฐ Monetize: Offer premium agents for sale
- โญ Rate & Review: Help others find the best agents
- ๐ Multi-language: Support for English, Chinese, Japanese, and Vietnamese
๐ก Tip: You can manage everything through the AGTHub website with a beautiful UI, or use this CLI for quick operations!
# Install globally via npm
npm install -g @chameleon-nexus/agents-cli
# Verify installation
agt --version
agt --help# 1. Login to AGTHub
agt login
# 2. Search for agents
agt search ruby
# 3. Install an agent (must use author/agent-id format)
agt install wshobson/ruby-pro
# 4. Uninstall an agent
agt uninstall wshobson/ruby-pro
# 5. Create and publish your own agent
agt init
# ... fill in the metadata ...
agt publish my-agent.md# Login to AGTHub (required for publishing)
agt login
# You'll receive a verification code via email
# Enter the code to complete authentication๐ Alternative: You can also login through the AGTHub website
# Initialize a new agent with guided prompts
agt init
# This creates a template file with metadata:
# - Agent ID, version, category
# - Multi-language names and descriptions
# - Tags and compatibility infoThe agt init command will guide you through:
- Basic Info: Agent ID, version, category
- Descriptions: English (required), Chinese, Japanese, Vietnamese (optional)
- Tags: Relevant keywords for discoverability
- Content: Write your agent's instructions
# Publish your agent to AGTHub
agt publish my-agent.md
# Publishing a new version automatically replaces old versions
# No need to manually delete or manage versions!๐ Web Alternative: You can also publish agents through the AGTHub Dashboard
# Search all free agents
agt search
# Search by keyword
agt search "code review"
# Search by category
agt search --category development
# Filter by language
agt search --language zh # Chinese agents only
agt search --language en # English agents only
agt search --language ja # Japanese agents only
agt search --language vi # Vietnamese agents only
# Combined filters
agt search "Python" --language zh --category development
# Sort results
agt search --sort downloads
agt search --sort rating๐ Note: The CLI only shows free agents. To browse premium agents, visit AGTHub Paid Section
# Install an agent (author/agent-id format required)
agt install wshobson/ruby-pro
# Install specific version
agt install wshobson/ruby-pro@1.0.0
# Install to specific target directory
agt install wshobson/ruby-pro --target claude-code
# Force reinstall (overwrite existing)
agt install wshobson/ruby-pro --force
# Installation output example:
# โ Installed wshobson/ruby-pro
# Installed to: ~/.claude/agents/wshobson_ruby-pro_v1.0.0.md
โ ๏ธ Important: Agent ID must be in formatauthor/agent-id. Useagt searchto find the full ID.
# Uninstall an agent (author/agent-id format required)
agt uninstall wshobson/ruby-pro
# Uninstall from specific target
agt uninstall wshobson/ruby-pro --target claude-code# Show current configuration
agt config
# This shows your API URL and other settings# Show all commands
agt --help
# Show command-specific help
agt search --help
agt install --help
agt publish --helpThe CLI stores configuration at ~/.agents-cli/config.yaml:
registry:
url: https://www.agthub.org
cacheTtl: 300
install:
target: claude-code
directory: ~/.agents
logging:
level: info
apiUrl: https://www.agthub.org- Claude Code: Official Claude CLI tool
- Codex: OpenAI Codex CLI
- Copilot: GitHub Copilot CLI
When you run agt init, it creates a file with the following structure:
---
id: my-agent
version: 1.0.0
category: development
name_en: My Agent
description_en: A helpful AI agent
name_zh: ๆ็ไปฃ็
description_zh: ไธไธชๆ็จ็AIไปฃ็
tags: [python, coding, helper]
---
# Agent Instructions
Your agent's instructions go here...- Free Agents: Thousands of community-contributed agents
- Premium Agents: Professional agents with advanced features
- Web Dashboard: Manage your agents with a beautiful UI
- Multi-language: Full support for zh, en, ja, vi
- Ratings & Reviews: Community feedback system
- Easy Publishing: CLI or web-based publishing
- Version Management: Automatic version replacement
- Analytics: Download counts and ratings
- Monetization: Sell premium agents (coming soon)
- Enterprise Login: Special access for teams
- Free Premium Access: Access paid agents at no cost
- Bulk Management: Manage multiple agents efficiently
# If login fails, try accessing the web interface:
# Visit: https://www.agthub.org/login# Make sure you're logged in
agt login
# Check your agent file format
# Use 'agt init' to generate a valid template# Clear npm cache and reinstall
npm cache clean --force
npm install -g @chameleon-nexus/agents-cli# Clone the repository
git clone https://github.com/chameleon-nexus/agents-cli.git
cd agents-cli
# Install dependencies
npm install
# Build the project
npm run build
# Test locally
node dist/cli.js --help
# Run tests
npm test
# Lint code
npm run lintWe welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Add tests if applicable
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - see LICENSE file for details.
- AGTHub Website: https://www.agthub.org
- AGTHub Dashboard: https://www.agthub.org/dashboard
- Premium Agents: https://www.agthub.org/paid
- VS Code Extension: Chameleon
- GitHub Repository: agents-cli
- ๐ Use the Web UI: For a better experience, visit AGTHub
- ๐ Stay Logged In: Your CLI session persists across commands
- ๐ฆ Version Control: Publishing a new version replaces the old one automatically
- ๐ Free First: CLI only shows free agents; browse premium agents on the website
- ๐ Multi-language: Write descriptions in multiple languages for better reach
Q: Can I sell agents through the CLI?
A: Publishing is free for all users. Premium agent features are managed through the AGTHub website.
Q: How do I update my published agent?
A: Simply publish again with a new version number using agt publish. Old versions are automatically replaced.
Q: Can I download premium agents via CLI?
A: No, premium agents are only available through the AGTHub website to ensure proper licensing and payment.
Q: What languages are supported?
A: Agent descriptions can be in English, Chinese (็ฎไฝ), Japanese, and Vietnamese. The CLI interface is in English.
Made with โค๏ธ by the AGTHub Team