Skip to main content
The PraisonAI TypeScript CLI provides commands to list and inspect registered LLM providers.

Quick Start

1

Simple Usage

2

With Configuration

Commands

List Providers

List all registered LLM providers:
Output:
Options:
  • --verbose, -v - Show available models for each provider
  • --json - Output in JSON format
Verbose output:
JSON output:

Provider Info

Get detailed information about a specific provider:
Output:
JSON output:

Using Custom Providers with CLI

Custom providers must be registered programmatically before using the CLI. Create a setup script:
Then import it before running CLI commands:
Or in your application entry point:

Environment Variables

Set API keys for built-in providers:
For custom providers, the CLI checks for {PROVIDER_NAME}_API_KEY:

Chat with Custom Provider

Once registered, use custom providers with the chat command:

Troubleshooting

Provider Not Found

Solution: Register the provider before using it:

API Key Not Set

Solution: Set the environment variable:

Provider Not Available

A provider may be registered but not available if:
  1. API key is not set
  2. Required dependencies are not installed
  3. Network connectivity issues
Check provider status:

Provider Registry

SDK registration

Providers CLI

Provider commands