Managing AI Agents
Complete guide to registering and managing AI agents with the Nevermined CLI.Overview
AI agents are services that users can access by purchasing payment plans. Agents can be:- AI assistants: Chat-based conversational agents
- API services: REST APIs with metered access
- Data pipelines: Processing services with usage tracking
- Tools: Utility services with pay-per-use billing
Listing Agents
View all registered agents:Getting Agent Details
Retrieve detailed information about a specific agent:- Agent metadata (name, description, creator)
- API endpoint configuration
- Associated payment plans
- Access control settings
- Authentication requirements
Registering Agents
Basic Agent Registration
Register a new AI agent with payment plans:Agent with Service Configuration
Register an agent with detailed service configuration:Updating Agents
Update Agent Metadata
Modify agent name, description, or other metadata:Update Agent API Endpoint
Change the agent’s API endpoint:Add Payment Plans
Associate additional payment plans with an agent:Remove Payment Plans
Disassociate a payment plan from an agent:Agent Files and Resources
Upload Agent Files
Upload files associated with your agent (models, configs, etc.):Download Agent Files
Download files from an agent:Advanced Agent Operations
Create Agent Execution
Create a new agent execution/session:Get Agent Execution Status
Check the status of an agent execution:List Agent Executions
View all executions for an agent:Agent Access Control
Get Agent Access Config
View who can access your agent:Update Agent Access Config
Modify access control settings:Integration Examples
Example 1: Full Agent Setup
Complete workflow to register and configure an AI agent:Example 2: Multi-Plan Agent
Register an agent with multiple pricing tiers:Example 3: Agent Monitoring
Monitor agent usage and executions:JSON Output for Automation
Use--format json to integrate with other tools:
Best Practices
1. Use Descriptive Metadata
Provide comprehensive information about your agent:2. Implement Proper API Endpoints
Ensure your agent API follows best practices:- Use HTTPS for all endpoints
- Implement rate limiting
- Return proper HTTP status codes
- Include error handling
- Log requests for debugging
3. Version Your Agents
Update version numbers when making changes:4. Test Before Production
Always test agents in staging environment:5. Organize Multiple Agents
Keep agent configurations organized:Common Issues
”Agent endpoint not reachable”
Ensure your agent API endpoint is:- Publicly accessible
- Using HTTPS
- Responding to health checks
- Not blocking Nevermined’s IP ranges