Skip to main content

ACP CLI Commands

The praisonai serve acp command starts an ACP server that enables IDEs and code editors to communicate with PraisonAI agents using JSON-RPC 2.0 over stdio.
Use praisonai serve acp for the unified command. The standalone praisonai acp still works but shows a deprecation warning.

Quick Start

Installation

Command Reference

Basic Usage

All Options

Usage Examples

Minimal (Read-Only Mode)

With Write Permissions

With Custom Agent

Resume Previous Session

With Specific Model

Debug Mode

Approval Modes

Editor Configuration

Zed Editor

Add to your Zed settings (~/.config/zed/settings.json):

JetBrains IDEs

Configure in Settings → Tools → AI Assistant:

VSCode

Add to your VSCode settings:

Environment Variables

Output Behavior

  • stdout: JSON-RPC 2.0 messages only (for IDE communication)
  • stderr: Logs and debug output (when --debug is enabled)
This separation ensures clean communication with IDEs while allowing debugging.

Security Considerations

By default, ACP runs in read-only mode for safety. Enable write/shell permissions only when needed.

Permission Levels

  1. Read-only (default): Can read files, cannot modify anything
  2. Allow-write: Can create and modify files within workspace
  3. Allow-shell: Can execute shell commands (use with caution)
  4. Allow-network: Can make network requests

Best Practices

Troubleshooting

Check ACP Installation

Debug Connection Issues

Verify API Keys