Slash Commands
PraisonAI CLI provides interactive slash commands for quick actions during your AI coding sessions. Inspired by Aider and Gemini CLI, these commands give you powerful control without leaving the terminal.Overview
Slash commands start with/ and provide quick access to common operations like viewing costs, managing models, and controlling the session.
Available Commands
Core Commands
| Command | Aliases | Description |
|---|---|---|
/help | /h, /? | Show help for all commands or a specific command |
/exit | /quit, /q | Exit the interactive session |
/clear | /reset | Clear the conversation history |
Session Commands
| Command | Aliases | Description |
|---|---|---|
/cost | /usage, /stats | Show token usage and cost statistics |
/tokens | - | Show detailed token breakdown |
/model | /m | Show or change the current model |
Code Commands
| Command | Aliases | Description |
|---|---|---|
/diff | - | Show git diff of changes |
/commit | - | Commit changes with AI-generated message |
/undo | - | Undo the last change |
/plan | - | Create an execution plan |
Navigation Commands
| Command | Aliases | Description |
|---|---|---|
/map | /repo | Show repository map |
/settings | - | Show current settings |
Usage Examples
Getting Help
Managing Costs
Changing Models
Git Operations
Python API
You can also use slash commands programmatically:Custom Commands
Register your own slash commands:Command Context
Provide context for commands that need session data:Integration with Interactive Mode
Slash commands are automatically available in interactive mode:Command Reference
/help
Show help information./cost
Display session cost and token statistics./model
Manage the AI model./plan
Create an execution plan for a task./diff
Show git diff of current changes./commit
Commit changes with an AI-generated message.Best Practices
- Use aliases -
/his faster than/help - Check costs regularly - Use
/costto monitor spending - Plan before executing - Use
/planfor complex tasks - Commit frequently - Use
/commitafter each logical change
Related Features
- Interactive TUI - Full interactive terminal interface
- Cost Tracking - Detailed cost monitoring
- Git Integration - Git operations

