Skip to content

Rawi (راوي) Documentation | Reference

Rawi (راوي) is a unified command-line tool to interact with multiple AI providers, manage chat sessions, and automate AI-powered workflows directly from your terminal.

Terminal window
rawi [options] <command> [subcommand] [parameters]

Use rawi <command> --help for information on a specific command. Use rawi help to view a list of available commands and topics. The synopsis for each command shows its parameters and their usage. Optional parameters are shown in square brackets.


OptionTypeDescription
--debugbooleanTurn on debug logging.
--profile <profile>stringUse a specific profile from your configuration.
--output <format>stringThe formatting style for command output.
Options: json, text, table, yaml, yaml-stream
--region <region>stringThe region to use (for cloud providers). Overrides config/env settings.
--color <mode>stringTurn on/off color output. Options: on, off, auto
--versionDisplay the version of this tool.
--no-paginatebooleanDisable automatic pagination for commands that support it.
--no-cli-pagerbooleanDisable CLI pager for output.
--cli-auto-promptbooleanAutomatically prompt for CLI input parameters.
--no-cli-auto-promptbooleanDisable automatic prompt for CLI input parameters.
--ca-bundle <file>stringThe CA certificate bundle to use when verifying SSL certificates.
--endpoint-url <url>stringOverride the default API endpoint URL.
--no-verify-sslbooleanDo not verify SSL certificates.
--no-sign-requestbooleanDo not sign requests (for local providers).

CommandDescription
askAsk AI a question and get a response
configureConfigure AI provider settings and profiles
historyManage chat history and sessions
infoDisplay system and configuration information

Use rawi <command> --help for detailed usage and options.


ProviderAPI Key RequiredLocalBest For
OpenAIYesNoGeneral, coding, creative
AnthropicYesNoSafety, long-form
Google GeminiYesNoFast, multimodal
OllamaNoYesPrivacy, offline, free
Azure OpenAIYesNoEnterprise, compliance
Amazon BedrockYes (AWS creds)NoAWS integration, enterprise
QwenYesNoMultilingual, Chinese
xAIYesNoReal-time, conversational

See rawi configure --list-providers for a full list and setup instructions.


Terminal window
# Ask a question using the default profile
rawi ask "What is TypeScript?"
# Use a specific profile
rawi ask "Summarize this code" --profile work
# Configure a new provider profile
rawi configure --profile openai --provider openai --model gpt-4o --api-key sk-...
# List all chat sessions
rawi history
# Show system info
rawi info