Get the Kolosal Agent System running in just 5 minutes!
curl http://localhost:8081/v1/health
```bash
curl -X POST http://localhost:8081/v1/agents/agent-001/execute \
-H "Content-Type: application/json" \
-d '{
"function": "chat",
"parameters": {
"message": "Hello, world!",
"model": "qwen2.5-0.5b"
}
}'
```sponse:
```json
{
"status": "healthy",
"timestamp": 1703123456,
"uptime": 120,
"system_running": true
}
curl http://localhost:8081/v1/agents
```### Prerequisites Check
Before starting, ensure you have:
- **CMake** 3.14 or higher
- **C++17** compatible compiler
- **Git** with submodule support
- **4GB RAM** minimum
### 1. Clone and Build
```bash
# Clone the repository with submodules
git clone --recursive https://github.com/KolosalAI/kolosal-agent.git
cd kolosal-agent
# Create build directory
mkdir build && cd build
# Configure and build (Debug mode)
cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake --build . --config Debug# Run the main application
./kolosal-agent # Linux/macOS
.\Debug\kolosal-agent.exe # Windows# Check system status
curl http://localhost:8081/v1/system/status
# List available agents
curl http://localhost:8081/v1/agentsWhen the system starts successfully, you should see:
Kolosal Agent System v1.0 Starting...
✓ Configuration loaded: config.yaml
✓ Agent Manager initialized
✓ Default agents created: 3
✓ HTTP Server started on http://localhost:8081
✓ System ready for requests
Create a custom configuration file:
cp config.yaml my-config.yaml
# Edit my-config.yaml as needed
./kolosal-agent --config my-config.yaml# my-config.yaml
server:
port: 8081 # Change port if needed
host: "0.0.0.0" # Allow external connections
logging:
level: INFO # DEBUG for more verbose output
auth:
enabled: false # Enable authentication if neededcurl http://localhost:8081/v1/healthExpected response:
{
"status": "healthy",
"timestamp": 1703123456,
"uptime": 120,
"system_running": true
}curl http://localhost:8081/v1/agentsExpected response:
{
"agents": [
{
"id": "agent-001",
"name": "Assistant",
"type": "general",
"running": true,
"capabilities": ["chat", "analysis", "reasoning"]
}
],
"total_count": 3
}curl -X POST http://localhost:8081/v1/agents/agent-001/execute \
-H "Content-Type: application/json" \
-d '{
"function": "chat",
"parameters": {
"message": "Hello, world!",
"model": "gemma3-1b"
}
}'You now have a running Kolosal Agent System! Here's what you can do next:
- Open http://localhost:8081 in your browser
- View system status and agent information
- Monitor real-time metrics
- 📖 Read the Configuration Guide for advanced settings
- 🏗️ Understand the Architecture Overview
- 💻 Try the Examples
- 🔧 Follow the Developer Guide if you want to contribute
If you want to run tests or contribute to development:
# Clean and rebuild with tests
rm -rf build && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON
cmake --build . --config Debug
# Run tests
ctest --output-on-failureCMake Version Too Old:
# Update CMake
pip install cmake # or download from cmake.orgMissing Dependencies:
# Ubuntu/Debian
sudo apt install build-essential cmake git libcurl4-openssl-dev
# macOS
brew install cmake git curl
# Windows
# Install Visual Studio Build ToolsGit Submodules Missing:
git submodule update --init --recursivePort Already in Use:
# Use different port
**Port Conflicts
```bash
# Check port usage
netstat -tlnp | grep 8081
lsof -i :8081
# Use different port
./kolosal-agent --port 9090
**Permission Denied:**
```bash
# Linux/macOS: Check if port 8081 requires privileges
sudo ./kolosal-agent # or use port > 1024
Configuration File Not Found:
# Specify config file explicitly
./kolosal-agent --config ../config.yaml- Use PowerShell or Command Prompt
- Executables are in
build\Debug\folder - Use backslashes in paths:
.\Debug\kolosal-agent.exe
- Executables are in
build/folder - May need to install development packages
- Use forward slashes in paths:
./kolosal-agent
- Install Xcode Command Line Tools first
- Use Homebrew for dependencies
- Similar to Linux for execution
- Repository cloned with
--recursiveflag - Build completed without errors
- Application starts and shows initialization messages
- HTTP server responds on port 8081
- System status endpoint returns healthy status
- At least one agent is listed and running
If you encounter issues:
- Check the Troubleshooting Guide
- Review your configuration in Configuration Guide
- Open an issue on GitHub Issues
Congratulations! 🎉 You now have Kolosal Agent System v1.0 running. Happy coding!