Endpoints CLI
Thepraisonai endpoints CLI provides a unified interface for interacting with all PraisonAI server types.
Overview
The Endpoints CLI is a universal client tool that allows you to:- List available endpoints from any server type
- Describe endpoint details and schemas
- Invoke endpoints with input data
- Check server health
- Discover server capabilities
- Filter by provider type
Supported Provider Types
| Type | Description |
|---|---|
recipe | Recipe runner endpoints |
agents-api | Single/multi-agent HTTP API |
mcp | MCP server (stdio, http, sse) |
tools-mcp | Tools exposed as MCP server |
a2a | Agent-to-agent protocol |
a2u | Agent-to-user event stream |
Commands
List Endpoints
List all available endpoints from the server.Describe Endpoint
Get detailed information about a specific endpoint.Invoke Endpoint
Call an endpoint with input data.Health Check
Check if the endpoint server is healthy.List Provider Types
List all supported provider types.Discovery Document
Get the unified discovery document from the server.Options Reference
Global Options
| Option | Description | Default |
|---|---|---|
--url | Server URL | http://localhost:8765 |
List Options
| Option | Description |
|---|---|
--format json | Output as JSON |
--type <type> | Filter by provider type |
--tags <a,b> | Filter by tags (comma-separated) |
Describe Options
| Option | Description |
|---|---|
--schema | Show input/output schema only |
Invoke Options
| Option | Description |
|---|---|
--input <path> | Input file path |
--input-json <json> | Input as JSON string |
--config k=v | Config override (repeatable) |
--json | Output as JSON |
--stream | Stream output events (SSE) |
--dry-run | Validate without executing |
--api-key <key> | API key for authentication |
Environment Variables
| Variable | Description |
|---|---|
PRAISONAI_ENDPOINTS_URL | Default server URL |
PRAISONAI_ENDPOINTS_API_KEY | API key for authentication |
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Validation error |
| 3 | Runtime error |
| 4 | Authentication error |
| 7 | Not found |
| 8 | Connection error |

