Skip to content

CLI Commands

Janito provides a comprehensive command-line interface (CLI) for managing and interacting with LLM providers.

Core Commands

list-models

List all supported models for a given provider.

# List models for OpenAI
janito list-models --provider openai

# List models for the default provider
janito list-models

list-providers

List all available providers and their status.

janito list-providers

set-api-key

Set your API key for a specific provider.

janito set-api-key --provider openai --key sk-your-key-here

chat

Start an interactive chat session with the default model.

janito chat

show-config

Display current configuration settings.

janito show-config

ping-providers

Test connectivity to all providers.

janito ping-providers

Provider-Specific Commands

list-providers-region

List providers available in a specific region.

janito list-providers-region --region us-east-1

list-tools

List all available tools and plugins.

janito list-tools

Configuration Commands

set-config

Set a configuration value.

janito set-config provider=openai
janito set-config azure_deployment_name=my-deployment

show-config

Show current configuration.

janito show-config

unset-config

Remove a configuration value.

janito unset-config provider

Advanced Commands

model-selection

Interactively select a model from available options.

janito model-selection

enable-plugin / disable-plugin

Enable or disable a plugin.

janito enable-plugin webtools
janito disable-plugin filemanager

For detailed help on any command, use:

janito COMMAND --help

Note: The list-models command automatically reflects the latest model specifications defined in the codebase. No manual documentation update is required when new models are added.