Overview
Local development with RunAgent provides a fast feedback loop for building and testing your agents before deployment. This guide covers local setup, testing, and debugging.Getting Started
Basic Local Server
Server Output
Testing Your Agent
Using cURL
Using Python
Interactive Testing
Development Features
Hot Reload
Changes to your agent code automatically restart the server:Debug Mode
Custom Configuration
Local API Endpoints
Endpoint | Method | Description |
---|---|---|
/ | GET | Welcome page with API info |
/health | GET | Health check endpoint |
/invoke | POST | Synchronous agent invocation |
/stream | POST | Streaming agent responses |
/docs | GET | Interactive API documentation |
/openapi.json | GET | OpenAPI schema |
Debugging Techniques
Logging
Breakpoint Debugging
Performance Profiling
Development Tools
Makefile
Docker Development
Testing Strategies
Unit Tests
Integration Tests
Common Issues
Port Already in Use
Module Import Errors
Environment Variables Not Loading
See Also
- Cloud Deployment - Deploy to production
- CLI Reference - Complete CLI documentation
- Troubleshooting - Common issues