Step 2: Configure Your LLM Provider

You've completed Step 1: Install Agent Mesh.

Solace Agent Mesh supports multiple large language model (LLM) providers. Bring your own model from Anthropic, OpenAI, Azure, Google, Amazon Bedrock, or any OpenAI-compatible API endpoint. You can change providers without reconfiguring agents.

This tutorial uses a Custom provider configuration with LiteLLM, which provides a unified API endpoint for accessing multiple LLM providers. For other provider options, see Configuring Models.

Launch Agent Mesh for the First Time

Launch Agent Mesh UI from your Applications folder (macOS) or Start menu (Windows). What you see first depends on the download you installed.

  • Download from the Solace Products website — The Configure Your AI Models dialog appears. Continue with Configure a Custom LLM Provider.

  • Free download from GitHub — Follow these steps:

    1. In Agent Mesh UI, click Sign In and sign in with your Solace ID in your browser.

    2. On the Welcome screen, select Add My Own Model to use your own LLM provider, as this tutorial does. If the screen also offers Get Started, that option uses free trial credits that come with your Solace ID instead. Free trial credits are limited. Agent Mesh warns you when they run low, and you can switch to your own model at any time.

    3. If the Terms and Conditions screen appears, agree to the license agreement.

    The model setup form then appears. Continue with Configure a Custom LLM Provider.

The configuration is saved and reused for subsequent launches. If the setup form doesn't appear (for example, you're relaunching after completing initial setup, or recovering from an interrupted setup), select System Settings > Models in the navigation bar to configure your LLM provider directly.

Built-In Model Configurations

Agent Mesh includes two model aliases that must be connected to an LLM provider:

  • general — The model that the Orchestrator agent and every agent that does not select another model use for reasoning, and that most built-in AI features use.

  • planning — The model that Quick Build uses to design agents. Quick Build is the agent-creation tool you'll use starting in the next step.

Following initial setup, both aliases point to the same provider. Later, you can configure them separately under System Settings > Models. For example, you can use a faster model for general tasks and a more capable model for Quick Build.

Configure a Custom LLM Provider

Now, configure your LLM provider in the model setup form:

  1. Under Model Provider, select Custom.

    Model Provider drop-down list with Custom selected.

  2. For Authentication Type, select API Key.

  3. In API Key, enter your LiteLLM API key (for example, sk-...).

  4. In API Base URL, enter the API endpoint URL for your LiteLLM instance or custom provider.

  5. In Model Prefix, to the left of Default Model, keep openai/ for a LiteLLM instance or any other OpenAI-compatible endpoint. Enter anthropic/ only if your endpoint serves the Anthropic Messages API at /v1/messages. The field becomes available after you enter the API Key and API Base URL. For more information, see Setting the Model Prefix for a Custom Model.

  6. In Default Model, select your model of choice from the drop-down list. This sets both the general and planning aliases described in Built-In Model Configurations.

  7. Click Set Up Default Models (download from the Solace Products website) or Complete Setup (free download from GitHub) to complete the configuration.

    Custom provider configuration showing Authentication Type, API Key, API Base URL, Model Prefix, Model Name, and Max Input Tokens fields.

    The application validates your API key by making a test connection. If successful, Agent Mesh UI opens to the main chat interface.

Your LLM provider settings are stored locally in the application's configuration directory: %AppData%\sam on Windows, ~/Library/Application Support/sam on macOS, or ~/.config/sam on Linux.

Verify Your Configuration

To confirm your LLM provider is working, send a test message to the Orchestrator agent:

  1. In the navigation bar, select New Chat.

  2. Below the message input field, locate the Agent selector drop-down list and ensure Orchestrator is selected.

    The Orchestrator is a built-in agent that coordinates work across multiple agents. When you're unsure which agent to use, the Orchestrator analyzes your request and delegates to the appropriate specialist.

    Chat interface with Orchestrator selected in the agent drop-down list and message input at the bottom.

  3. Type what time is it and press ENTER.

    The Orchestrator calls a time tool and returns the current time.

A successful response confirms your LLM connection is working. If you don't see a response, check that your API key is valid and you have an internet connection.

Now that you have Agent Mesh installed and your LLM provider configured, the next lesson shows you how to create agents and see how they work together.

Tutorial Steps

You've completed step 2 of the tutorial. Click the link next to Next Lesson in the table to continue.

Step Description

Step 1

Install Agent Mesh - Complete

Step 2

Configure Your LLM Provider - Complete

Step 3

Next Lesson: Step 3: Build Multi-Agent Orchestration

Step 4

Add a Connector

Step 5

Create a Workflow

Step 6

Test Agent Competence with Evaluations

Step 7

Add an Entrypoint

Complete

Next Steps

You can return to Try Agent Mesh at any time.