Overview
Local development setup gives you more control and faster iteration when developing with LiteAgent. This guide covers setting up a complete development environment on your local machine.Prerequisites
Before starting, ensure you have:- Python 3.11 installed
- Git configured
- At least 8GB RAM available
- 20GB free disk space
Step-by-Step Setup
1
Clone Repository
The
--recursive
flag is crucial as LiteAgent includes several agent implementations as submodules.2
Create Python Environment
- Using Conda (Recommended)
- Using venv
- Using pyenv
3
Install Dependencies
4
Configure Environment Variables
Environment Variables Configuration
Required API Keys
Editcollector/.env
with your API keys:
Optional Configuration
Verify Installation
Run the verification script to ensure everything is working:Agent-Specific Setup
Some agents require additional setup steps:BrowserUse Agent
DoBrowser Agent
DoBrowser requires browser profile setup:Skyvern Agent
Skyvern requires additional webhook setup:Agent E
Agent E works with the standard Anthropic setup:Directory Structure
After setup, your directory should look like:Running Your First Test
1
Create Test Prompts
2
Run BrowserUse Agent
3
Check Results
Development Workflow
Running Individual Agents
Development Commands
Debugging
Enable debug logging:IDE Configuration
VS Code Setup
Create.vscode/settings.json
:
PyCharm Setup
- Open project in PyCharm
- Set Python interpreter to your virtual environment
- Configure code style to use Black formatter
- Set up run configurations for different agents
Performance Optimization
Local Development
Parallel Testing
Troubleshooting
Import errors
Import errors
Browser automation fails
Browser automation fails
Permission errors
Permission errors
Out of memory
Out of memory
Advanced Configuration
Custom Agent Development
To develop a custom agent:Environment-Specific Configs
Create environment-specific configuration:Next Steps
Environment Variables
Complete environment configuration guide
Running Tests
Learn to run tests and create prompts
Agent Configuration
Configure individual agents