Overview
Agents in LibreChat are powerful AI assistants that can use tools, execute code, search the web, and perform complex multi-step tasks. They combine language models with extensible capabilities through the agent builder interface.What Are Agents?
Agents extend basic chat functionality by:- Using Tools: Execute code, search the web, generate images, and access custom APIs
- Multi-Step Reasoning: Break down complex tasks into sequential steps
- File Search: Retrieve information from uploaded documents
- Custom Actions: Connect to external APIs via OpenAPI specifications
- Agent Handoffs: Chain multiple specialized agents together
Creating an Agent
Open the Agent Builder
Click the Agent button in the side panel or select an existing agent to modify.
Configure Basic Settings
Set the agent’s name, description, and custom instructions that guide its behavior.
Select Model and Provider
Choose the AI model that powers your agent. Different models offer different capabilities:
- GPT-4: Best for complex reasoning
- Claude: Excellent for analysis and writing
- Gemini: Strong multimodal capabilities
Enable Capabilities
Toggle the tools and capabilities your agent needs:
- Code Interpreter: Execute Python code
- Web Search: Search and retrieve web content
- File Search: Query uploaded documents
- Image Generation: Create images with DALL-E, Flux, or Stable Diffusion
- Actions: Connect to external APIs
Configure Advanced Settings (Optional)
Fine-tune behavior with advanced options:
- Recursion Limit: Maximum steps for multi-step tasks (default: 25)
- Model Parameters: Temperature, top_p, max tokens
- Agent Handoffs: Chain multiple agents together
- Sequential Outputs: Show or hide intermediate reasoning steps
Agent Capabilities
Code Interpreter
Execute Python code in a secure sandboxed environment.Configuration
Configuration
Web Search
Search the internet and retrieve relevant information.Configuration
Configuration
File Search
Query uploaded documents using vector search and retrieval.File search uses RAG (Retrieval Augmented Generation) to find relevant information in your documents. Configure citation settings in
librechat.yaml:Actions (Custom APIs)
Connect agents to external services via OpenAPI specifications.Adding an Action
Adding an Action
Advanced Features
Recursion Limit
Control how many steps an agent can take:Agent Handoffs
Chain multiple specialized agents together for complex workflows:Model Parameters
Fine-tune model behavior:Sharing Agents
- Private Sharing
- Public Sharing
Share agents with specific users or groups:
- Click Share in the agent footer
- Select users, groups, or roles
- Click Share
Agent Categories
Organize agents by category for easier discovery:- Productivity: Task management, scheduling, email
- Research: Information gathering, analysis
- Creative: Writing, design, content creation
- Technical: Coding, debugging, DevOps
- Custom: Your own categories