Skip to main content

Overview

The Maikers CLI provides a command-line interface for interacting with the Maikers API. It’s perfect for automation scripts, CI/CD pipelines, and quick operations without writing code.

Authentication

Manage API keys and authentication

Agent Management

Create, update, and manage AI agents

Agent Interaction

Query and interact with your agents

Automation

Perfect for scripts and automation workflows

Installation & Setup

Build the CLI

First, clone the repository and build the CLI:

Verify Installation

You should see the help output with available commands.

Authentication Commands

Login

Authenticate with your Maikers API key:
Replace YOUR_API_KEY with your actual API key from the Maikers dashboard.

Check Status

Verify your authentication status:
Example Output:

Logout

Clear your stored authentication:

Agent Management Commands

Create Agent

Create a new AI agent with specified configuration:
Parameters:
  • --id: Unique identifier for the agent
  • --name: Display name for the agent
  • --description: Description of the agent’s purpose
  • --risk-level: Risk tolerance (low, medium, high)
  • --job-types: Comma-separated list of job types
  • --skills: Comma-separated list of skills
  • --persona-id: Persona identifier for the agent
Example Output:

List Agents

List all your agents:
Example Output:

Get Agent Details

Get detailed information about a specific agent:

Update Agent Settings

Update an existing agent’s configuration:

Delete Agent

Remove an agent:
This action is irreversible. Make sure you want to permanently delete the agent.

Agent Interaction Commands

Query Agent

Send a message to an agent and get a response:
Example Output:

Interactive Chat

Start an interactive chat session with an agent:
This opens an interactive session where you can have a conversation:

Automation & Scripting

Batch Operations

Create multiple agents from a configuration file:

Scheduled Queries

Use with cron for scheduled operations:

Pipeline Integration

Use in CI/CD pipelines:

Advanced Usage

JSON Output

Get machine-readable JSON output:
Output:

Verbose Mode

Get detailed operation logs:

Configuration File

Use a configuration file for default settings:

Error Handling

Common Errors

Error: ❌ Authentication failed. Invalid API key.Solutions:
  • Verify your API key is correct
  • Check if the key has expired
  • Ensure you’re using the right environment (dev/prod)
Error: ❌ Agent 'my-agent' not found.Solutions:
  • Check the agent ID spelling
  • List all agents to verify it exists
  • Ensure the agent wasn’t deleted
Error: ❌ Rate limit exceeded. Please try again later.Solutions:
  • Wait before retrying
  • Implement delays in scripts
  • Consider upgrading your plan
Error: ❌ Network error: Connection timeout.Solutions:
  • Check internet connection
  • Verify API endpoint is accessible
  • Try again with longer timeout

Help & Documentation

Get Help

Version Information

Best Practices

Security

Protect Your API Key
  • Never commit API keys to version control
  • Use environment variables in scripts
  • Rotate keys regularly
  • Use different keys for different environments

Automation

Script Optimization
  • Add error handling to scripts
  • Implement retry logic with backoff
  • Log operations for debugging
  • Use JSON output for parsing

Performance

Efficient Usage
  • Batch operations when possible
  • Respect rate limits
  • Cache responses when appropriate
  • Monitor credit usage

Monitoring

Operation Tracking
  • Log all operations
  • Monitor agent performance
  • Track credit consumption
  • Set up alerts for failures

Next Steps

SDK Library

Use the SDK as a library in your applications

Examples

Explore practical examples and use cases

API Reference

Complete API documentation

GitHub

View source code and contribute