Skip to main content

Overview

Using Claude Model for Creative Tasks Claude Code CLI is Anthropic’s AI-powered coding assistant that can read files, run commands, search the web, edit code, and more. PraisonAI integrates with Claude CLI to use it as an external agent.

Installation

Authentication

Set your Anthropic API key:
Or authenticate via Claude subscription:

Basic Usage with PraisonAI

--external-agent claude invokes Claude CLI via a manager Agent by default. The manager reasons and calls Claude as a subagent tool. Use --external-agent-direct for pass-through proxy behavior.

CLI Options Reference

Model Selection

System Prompts

Tool Control

Permission Modes

Permission Mode Values:
  • default - Standard permission behavior
  • acceptEdits - Auto-accept file edits
  • bypassPermissions - Bypass all permission checks
  • plan - Planning mode (no execution)
  • delegate - Delegate decisions
  • dontAsk - Don’t ask for permissions

Session Management

Budget & Limits

MCP Integration

Additional Options

Commands

Examples

Basic Query

With Tool Restrictions

With Custom System Prompt

JSON Output

Continue Session

Python Integration

Environment Variables

Built-in Tools

Claude Code includes these built-in tools: