Skip to main content
The CLI runs agents with different LLM providers, tests connectivity, and manages provider configuration.

Quick Start

1

Simple Usage

2

With Configuration


Available Commands

List Providers

List all supported AI SDK providers and their status:
Output:

JSON Output

Test Provider

Test connectivity to a specific provider:
Output:

With Custom Model

JSON Output

Validate Configuration

Validate provider setup including API keys and packages:
Output:

JSON Output

Run Prompts

Execute prompts with any supported model:

Basic Usage

With Model Selection

Streaming

JSON Output

With Timeout

Verbose Mode

Shows additional details like token usage and timing.

List Models

Show common models for each provider:
Output:

Show Configuration

Display resolved configuration with redacted secrets:
Output:

JSON Output

Attribution Trace Demo

Demonstrate multi-agent attribution headers:
Output:

JSON Output

Tool Calling Documentation

Show how to use tool calling with AI SDK:
Displays example code for defining and using tools with Zod schemas.

Structured Output Documentation

Show how to generate structured JSON output:
Displays example code for using generateObject with Zod schemas.

Global Options

All commands support these options:

Environment Variables

Configure providers via environment variables:

Exit Codes

Examples

Test All Configured Providers

Compare Models

Streaming with Different Providers

Troubleshooting

Install the provider package if needed:
Ensure your API key is set:
Increase timeout for slow requests:

AI SDK

Code-based AI SDK usage

Streaming

Advanced streaming

Provider Registry

Managing providers