Complete installation instructions for Basic Agent Chat Loop on macOS, Linux, and Windows.
The easiest way to install:
pip install basic-agent-chat-loopThat's it! The CLI command chat_loop will be available immediately.
Windows (with command history support):
pip install basic-agent-chat-loop[windows]AWS Bedrock integration:
pip install basic-agent-chat-loop[bedrock]Development install:
pip install basic-agent-chat-loop[dev]Install from the Python Package Index:
# Latest stable release
pip install basic-agent-chat-loop
# Specific version
pip install basic-agent-chat-loop==0.1.0
# With all optional dependencies
pip install basic-agent-chat-loop[windows,bedrock,dev]For development or to use the latest features:
# Clone the repository
git clone https://github.com/Open-Agent-Tools/Basic-Agent-Chat-Loop.git
cd Basic-Agent-Chat-Loop
# Install in editable mode
pip install -e .
# Or with dev dependencies
pip install -e ".[dev]"User install (no sudo required):
pip install --user basic-agent-chat-loopSystem install:
# May require sudo on Unix systems
sudo pip install basic-agent-chat-loopVirtual environment (recommended for development):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install basic-agent-chat-loopAfter installation, verify everything works:
# Check installation
pip show basic-agent-chat-loop
# Verify CLI command is available
which chat_loop # Unix/macOS
where chat_loop # Windows
# Test the command (will show help)
chat_loop --helpOn first run, the package automatically creates:
~/.chatrc- Configuration file with recommended defaults~/.prompts/- Sample prompt templates (created on first template use)
These files are created with sensible defaults - no manual setup required!
To upgrade to the latest version:
pip install --upgrade basic-agent-chat-loopTo remove the package:
pip uninstall basic-agent-chat-loopThis removes:
- The
chat_loopcommand - All Python package files
- Installed dependencies (if no other packages use them)
This does NOT remove:
~/.chatrc- Your configuration file~/.prompts/- Your prompt templates~/.chat_aliases- Your saved agent aliases~/.chat_history- Your command history
To fully clean up:
# Uninstall package
pip uninstall basic-agent-chat-loop
# Remove configuration (optional - will be recreated on next install)
rm -f ~/.chatrc
rm -rf ~/.prompts/
rm -f ~/.chat_aliases
rm -f ~/.chat_historyUsing Homebrew Python:
# Install with Homebrew's pip
python3 -m pip install basic-agent-chat-loopCommand history works out of the box - readline is built-in.
Debian/Ubuntu:
# Ensure pip is installed
sudo apt update
sudo apt install python3-pip
# Install package
pip3 install basic-agent-chat-loopRHEL/CentOS/Fedora:
# Ensure pip is installed
sudo dnf install python3-pip # Fedora
sudo yum install python3-pip # CentOS/RHEL
# Install package
pip3 install basic-agent-chat-loopCommand history works out of the box - readline is built-in.
Install with Windows extras:
pip install basic-agent-chat-loop[windows]This includes pyreadline3 for command history support.
Using Windows Terminal (recommended) for best experience with colors and formatting.
PowerShell execution policy: If you get execution policy errors, you may need to adjust:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserThese are installed automatically:
pyyaml>=6.0.1- Configuration parsingrich>=13.7.0- Terminal formattingpython-dotenv>=1.0.0- Environment variable management
Windows extras ([windows]):
pyreadline3>=3.4.1- Command history on Windows
AWS Bedrock extras ([bedrock]):
anthropic-bedrock>=0.8.0- AWS Bedrock integration
Development extras ([dev]):
pytest>=7.0- Testing frameworkpytest-cov>=4.0- Coverage reportingblack>=23.0- Code formattingruff>=0.1.0- Lintingmypy>=1.0.0- Type checking
See TROUBLESHOOTING.md for detailed troubleshooting guide.
"command not found: chat_loop"
The pip bin directory is not in your PATH. Solutions:
# Find where pip installed it
pip show -f basic-agent-chat-loop | grep bin
# Add to PATH (add to ~/.bashrc or ~/.zshrc)
export PATH="$HOME/.local/bin:$PATH"
# Reload shell
source ~/.bashrc # or source ~/.zshrc"No module named 'basic_agent_chat_loop'"
Package not installed in current environment:
# Verify installation
pip list | grep basic-agent-chat-loop
# Reinstall if needed
pip install --force-reinstall basic-agent-chat-loopImport errors or missing dependencies
Try reinstalling with force:
pip install --force-reinstall basic-agent-chat-loopPermission errors
Use user install to avoid sudo:
pip install --user basic-agent-chat-loopOld version installed
Upgrade to latest:
pip install --upgrade basic-agent-chat-loopAfter installation:
-
Run your first agent:
chat_loop path/to/your/agent.py
-
Save an alias for quick access:
chat_loop --save-alias myagent path/to/agent.py chat_loop myagent
-
Customize your config:
# Edit ~/.chatrc to customize colors, features, behavior nano ~/.chatrc
-
Explore sample templates:
# Templates are created in ~/.prompts/ on first use ls ~/.prompts/
-
Read the docs:
- README.md - Feature overview
- CONFIG.md - Configuration options
- ALIASES.md - Alias system guide
- TROUBLESHOOTING.md - Common issues
- 📖 Documentation: docs/
- 🐛 Bug Reports: GitHub Issues
- 💬 Questions: GitHub Discussions