Skip to main content
Run AI agents directly from your terminal.

Quick Start

1

Install CLI

cargo install praisonai-cli
2

Set API Key

export OPENAI_API_KEY="your-api-key"
3

Run

praisonai-rust "What is Rust?"

Commands

Single Prompt

# Direct prompt
praisonai-rust "What is the capital of France?"

# With model selection
praisonai-rust --model gpt-4o "Explain quantum computing"

Interactive Chat

# Start chat session
praisonai-rust chat

# Chat maintains conversation history
> Hello!
AI: Hello! How can I help you today?
> What is Rust?
AI: Rust is a systems programming language...

Run Workflow

# Run from YAML file
praisonai-rust run workflow.yaml

Options

OptionShortDescription
--model <name>-mLLM model to use
--help-hShow help
--version-VShow version

YAML Workflows

Create agents.yaml:
agents:
  - name: researcher
    role: Research Assistant
    instructions: Find accurate information
    tools:
      - web_search

  - name: writer
    role: Content Writer
    instructions: Write clear, engaging content

workflow:
  - step: research
    agent: researcher
    task: Research the topic

  - step: write
    agent: writer
    task: Write article based on research
Run:
praisonai-rust run agents.yaml

Environment Variables

VariableDescription
OPENAI_API_KEYAPI key (required)
PRAISONAI_MODELDefault model
RUST_LOGEnable debug logging

Examples

# Simple question
praisonai-rust "What is 2+2?"

# Use GPT-4
praisonai-rust -m gpt-4o "Write a haiku about Rust"

# Debug mode
RUST_LOG=debug praisonai-rust "Hello"

# Run workflow
praisonai-rust run my-agents.yaml