Quickstart Guide
Get Solace Agent Mesh up and running in approximately 5 minutes. This guide will walk you through installation, project initialization, and running your first agent mesh.This quickstart uses a local development setup with in-memory queues. For production deployments, see the deployment documentation.
Prerequisites
Before you begin, ensure you have:Python 3.10.16+
Installation Steps
Step 1: Create a Project Directory
Create a new directory for your Agent Mesh project:Step 2: Set Up Python Virtual Environment
Create and activate a Python virtual environment:Using a virtual environment isolates your project dependencies and prevents conflicts with other Python projects.
Step 3: Install Solace Agent Mesh
Check if you have a previous version installed:Initialize Your Project
Step 4: Launch the GUI Initialization Tool
Solace Agent Mesh provides a web-based GUI for easy project setup:The initialization UI runs on port 5002 by default. Navigate to
http://localhost:5002 in your browser if it doesn’t open automatically.- Broker Setup
- LLM Configuration
- Project Settings
- Web UI Gateway
Choose your event broker configuration:
- New local Solace broker container: Automatically downloads and runs a Solace container
- Existing Solace broker: Connect to an existing broker
- Development mode: Use in-memory queues (for quick testing only)
Alternative: Command-Line Initialization
For automated setups or scripting, use the CLI directly:What Gets Created
The initialization process creates:Run Your Agent Mesh
Step 5: Start the Agent Mesh
Run all components (agents and gateways) in a single process:Advanced: Running Specific Components
You can run specific configuration files:Verify and Test
Step 6: Access the Web Interface
Once the agent mesh is running, open your browser to:If you configured a different port during initialization, use that port instead.
Step 7: Test Your Agent Mesh
Try these example prompts in the web interface:Simple Query
“Hello! What can you help me with?”Tests basic agent response and LLM connectivity.
Time Query
“What is the current time?”Tests built-in tool execution (get_current_time).
Artifact Creation
“Create a simple to-do list for planning a vacation”Tests artifact management tools.
Data Analysis
“Create a sample sales dataset and visualize it”Tests data analysis and visualization tools.
Understanding Your Setup
Your Agent Mesh consists of:Components Running
- Orchestrator Agent
- Web UI Gateway
The main orchestrator agent that:
- Processes tasks from gateways
- Coordinates with other agents (when you add them)
- Has access to built-in tools:
- Artifact management (create, list, load files)
- Data analysis (SQL, JQ, visualizations)
- Time utilities
- Peer agent delegation (when other agents are available)
Communication Flow
Next Steps
Now that you have a working Agent Mesh, explore these topics:Add Custom Agents
Create specialized agents for specific tasks:Learn more in the Architecture guide.
Install Plugins
Extend functionality with pre-built plugins:Browse available plugins in the repository.
Add More Gateways
Connect additional interfaces (Slack, REST API, etc.):
Learn the Architecture
Understand how Agent Mesh works under the hood and the event-driven architecture.
Common CLI Commands
Here are the most useful commands for working with Agent Mesh:Troubleshooting
Port 8000 already in use
Port 8000 already in use
If port 8000 is already in use, you can:
- Stop the service using that port
- Or modify the
FASTAPI_PORTin your.envfile to use a different port
LLM API key errors
LLM API key errors
Verify your API key is correct in the Ensure the endpoint URL matches your provider:
.env file:- OpenAI:
https://api.openai.com/v1 - Anthropic:
https://api.anthropic.com/v1 - Google:
https://generativelanguage.googleapis.com/v1beta
Import errors or module not found
Import errors or module not found
Ensure you’re in the correct virtual environment:If not, reactivate the virtual environment:
Agent not responding
Agent not responding
Check the logs for errors. Common issues:
- Invalid model name format (should be
provider/model-name) - Network connectivity to LLM provider
- Insufficient API credits or rate limiting
Additional Resources
GitHub Repository
View source code, examples, and contribute
PyPI Package
Package information and release history
Solace Platform
Learn about the Solace Event Broker