Guide
Getting started with CoAgent
CoAgent is a comprehensive framework for building, testing, and monitoring AI agents. This guide will get you up and running with CoAgent in just a few minutes.
What is CoAgent?
CoAgent provides:
- Agent Framework: Build context-aware AI agents with Python or Rust 
- Test Studio: Create comprehensive test suites and compare agent performance 
- Monitoring: Track performance, costs, and detect anomalies in real-time 
- Sandbox Environment: Safe testing environment with configurable parameters 
Quick Start
The fastest way to get CoAgent running is using Docker:
Prerequisites
- Docker and Docker Compose installed 
- Git for cloning repositories 
- 8GB+ RAM recommended 
- Ports 3000 and 7878 available 
Installation
- Clone the Docker setup repository: 
- Start CoAgent services: 
- Access the web interface: Open your browser to - http://localhost:3000
That's it! CoAgent is now running with all components available.
First Steps
1. Explore the Web Interface
After starting CoAgent, you'll see the main dashboard with several key sections:
- Dashboard: Overview of recent activity and system health 
- Test Studio: Create and run agent tests 
- Monitoring: Track performance and costs 
- Sandbox: Interactive testing environment 
2. Understanding Core Concepts
Agents
AI agents are the core units that process prompts and generate responses. Each agent has:
- System Prompt: Instructions that define the agent's behavior 
- Context: Specialized knowledge or capabilities 
- Configuration: Parameters like temperature, max tokens 
Providers
Model providers give agents access to LLMs:
- OpenAI: GPT-3.5, GPT-4, etc. 
- Anthropic: Claude models 
- Mistral: Open source models 
- Custom: Your own model endpoints 
Bound Agents
A bound agent combines an agent configuration with a specific model provider, creating a ready-to-use AI system.
Test Sets
Collections of test cases that evaluate agent performance across different scenarios.
3. Create Your First Agent
Let's create a simple assistant agent:
- Navigate to Agent Configurations in the web UI 
- Click "Create New Agent" 
- Fill in the details: 
- Click "Save" 
4. Set Up a Model Provider
- Go to Providers in the web UI 
- Click "Add Provider" 
- Configure a provider (example with OpenAI): 
- Click "Save" 
5. Create a Bound Agent
- Navigate to Bound Agents 
- Click "Create Bound Agent" 
- Configure the binding: 
- Click "Save" 
6. Test Your Agent
- Go to Sandbox in the web UI 
- Select your bound agent: - assistant-gpt4
- Enter a test prompt: - "Help me plan a productive morning routine"
- Click "Send" 
- Review the response and execution details 
Working with the Python Client
CoAgent includes a Python client that integrates with LangChain:
Installation
Basic Usage
Working with the Rust Client
For production integrations and high-performance scenarios:
Installation
Add to your Cargo.toml:
Basic Usage
Next Steps
Now that you have CoAgent running, explore these areas:
For Testing and QA
- Testing and Quality Assurance Guide: Learn comprehensive testing workflows 
- Multi-Agent Testing Tutorial: Hands-on testing pipeline 
For Agent Development
- Agent Configuration Guide: Deep dive into agent setup 
- Python Client Tutorial: Build a complete agent application 
For Production Use
- Rust Client Tutorial: High-performance integration 
- Deployment Guide: Production deployment patterns 
Troubleshooting
Common Issues
Port already in use:
Docker out of memory:
API key errors:
- Ensure your API keys are properly configured in the Providers section 
- Check that API keys have sufficient permissions and credits 
- Verify the provider URL is correct 
Getting Help
- Documentation: Browse the complete reference documentation 
- GitHub Issues: Report bugs and request features 
- Community: Join our Discord/Slack for support 
Summary
You now have CoAgent running and understand the basic concepts. The system provides:
- Web interface for managing agents, tests, and monitoring 
- Python client for LangChain integration 
- Rust client for high-performance applications 
- REST API for custom integrations 
Choose your path based on your needs:
- Developers: Start with the Python or Rust client tutorials 
- QA Engineers: Explore the Testing guide and Test Studio 
- DevOps: Check the Deployment and Monitoring documentation 
- Researchers: Dive into multi-agent comparison and analysis features