Installation & Authentication
codebuff login
Authenticate with your Codebuff account.signin
Description: Opens the authentication flow. If already authenticated in the app, shows a message to use /logout to switch accounts.
codebuff logout
Sign out from your Codebuff account.signout
Description: Logs out the current user and clears authentication credentials.
Starting Codebuff
Basic Usage
CLI Flags
Print the CLI version and exit.Aliases:
-vShow help message with all available options.Aliases:
-hRun a specific agent by ID, skipping local
.agents overrides.Remove any existing CLI log files before starting.
Continue from a previous conversation. Optionally specify a conversation ID.
Set the working directory (default: current directory).
Start in FREE mode (uses faster, cheaper models).Aliases:
--lite (deprecated)Start in MAX mode (uses the most powerful models).
Start in PLAN mode (creates a plan before execution).
Slash Commands
Slash commands are used within the Codebuff chat interface.Chat Management
/new
Start a new conversation./n, /clear, /c, /reset
Examples:
/exit
Exit the Codebuff CLI./quit, /q
/history
Open chat history to view or continue previous conversations./chats
Mode Commands
/mode:free
Switch to FREE mode./mode:max
Switch to MAX mode./mode:plan
Switch to PLAN mode.Terminal Commands
/bash
Execute bash commands or enter bash mode./!
Examples:
File Attachments
/image
Attach an image to your message./img, /attach
Examples:
Project Setup
/init
Initialize Codebuff in the current project..agents directory with example agent configurations.
Account & Usage
/usage
View your current usage and credits./credits
/subscribe
Open subscription page to purchase credits or upgrade./strong, /sub, /buy-credits
Referrals
/refer-friends
Redeem a referral code or enter referral mode./referral, /redeem
Examples:
Agent Publishing
/publish
Publish custom agents to the Codebuff marketplace.Code Review
/review
Request a code review.Appearance
/theme:toggle
Toggle between light and dark themes.Feedback
/feedback
Submit feedback or report a bug./bug, /report
Examples:
Help
/help
Display help information./h, /?
Skills
/skill:*
Invoke a loaded skill..agents/skills/ directory.
Advanced
/ads:enable
Enable ads to earn free credits./ads:disable
Disable ads./connect:claude
Connect your Claude account (when OAuth is enabled)./claude
Environment Variables
Your Codebuff API key for authentication.
Override the CLI version (primarily for development).
Exit Codes
Success - command completed without errors
Error - command failed or invalid usage
Interrupted - user pressed Ctrl+C

