Shy2593666979/AgentChat
About
AgentChat is an LLM-based agent communication platform with a built-in default agent and support for user-defined agents. Through multi-turn conversations and task collaboration, agents can understand and help complete complex tasks. It integrates technologies such as LangChain, Function Call, the MCP protocol, RAG, Memory, HITL, Skill, Milvus, and ElasticSearch to enable efficient knowledge retrieval and tool use, and uses FastAPI to build high-performance backend services.
Web & App DevelopmentMeasured star growth
- in 24h
- +2
- in 7 days
- +3
- in 15 days
- +6
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_EN.md
Original
An agent platform connecting models, knowledge, and tools
Quick Start • Deployment Guide • Documentation • Live Demo • Join WeChat Group
Overview
agentchat is an agent application platform with a Vue frontend and a FastAPI backend. Connect a model service, give agents access to tools, Skills, MCP servers, and knowledge bases, then use those capabilities in conversations. Mars provides a task interface for search, research, and report generation with execution details.
The local setup uses SQLite, an in-process cache, local file storage, and Chroma. Separate MySQL, Redis, MinIO, and Milvus services are optional.
Capabilities

| Capability | What it does |
|---|---|
| Flexible conversations | Switch agents within a conversation; asynchronously generate a topic title of 2–10 Chinese characters from the first message |
| Agents | Select a model, edit instructions, and bind tools, MCP servers, Skills, and knowledge bases |
| Mars tasks | Start a task from Explore and inspect tool execution and the resulting Markdown report |
| Tools and MCP | Use built-in tools, import OpenAPI specs, or connect SSE / Streamable HTTP MCP servers; create MCP servers through conversation with human confirmation |
| Skills | Load six templates at startup for research reports, data analysis, product documents, code review, email writing, and knowledge organization |
| Knowledge bases | Upload and index documents for retrieval and reranking, with optional full-text search |
| Resource isolation | New users receive separate copies of default agents, tools, Skills, and MCP servers; edits do not affect other users |
| Usage and logs | Track provider-reported token usage and inspect request, run, and tool logs |
| Streaming | Adapt conversation and task events through the shared AG-UI layer |
Basic chat needs a working chat model. Knowledge retrieval needs suitable embedding and reranking services, and some external tools require separate credentials. A single chat API key does not automatically enable every capability.
This update covers the interface and brand, conversations, user resource isolation, AG-UI, token usage, unified logging, and GitHub CI. See the changelog for details.
Contents
- Screenshots and demos
- Quick start
- First use
- Advanced configuration
- Development and checks
- Documentation
- License and support
Screenshots and demos
Explore task demo
Enter a goal on the Explore page to follow task execution and read the full report:
Compare the influence of China's four great ancient capitals and create a travel guide for these four cities.
https://github.com/user-attachments/assets/640650f3-4134-452a-9d17-6f850dabe95f
Start a task from Explore and follow deep search, source organization, and report generation. The video is edited to show only the application.
Current interface
Dashboard
View model calls, token usage, seven-day trends, and recent activity.

Model services
One model from each of six providers illustrates display names, provider icons, and API configuration. The show_model display name and the model identifier sent in requests are managed separately.

Agents and capability management

View the sign-in page

Quick start
1. Prerequisites
- Git, Python 3.12, and Node.js 22, matching the CI environment.
- uv for Python environments and locked dependencies.
- A model API key, endpoint, and model identifier. The example below uses DeepSeek Flash with the model identifier
deepseek-flash.
The commands below clone the main branch. Confirm that uv --version and node --version work in your terminal.
2. Get the source and install backend dependencies
git clone --branch main https://github.com/Shy2593666979/AgentChat.git
cd AgentChat/src/backend
uv sync --locked --python 3.12
3. Create a local configuration
Windows PowerShell:
Copy-Item agentchat/config.simple.yaml agentchat/config.local.simple.yaml
Linux / macOS:
cp agentchat/config.simple.yaml agentchat/config.local.simple.yaml
Edit the following section in src/backend/agentchat/config.local.simple.yaml, retaining the rest of the copied template:
multi_models:
chat_model:
api_key: "your-deepseek-api-key"
base_url: "https://api.deepseek.com"
model_name: "deepseek-flash"
Retain the other settings in the copied file. Local files matching config.local*.yaml are ignored by Git. This DeepSeek example configures chat; knowledge retrieval requires separately configured embedding and reranking services, rather than reusing the DeepSeek key. See the model configuration guide.
4. Run the backend
Keep this terminal in src/backend and leave the server running.
Windows PowerShell:
$env:AGENTCHAT_CONFIG = "agentchat/config.local.simple.yaml"
uv run --locked uvicorn agentchat.main:app --host 127.0.0.1 --port 7860
Linux / macOS:
export AGENTCHAT_CONFIG=agentchat/config.local.simple.yaml
uv run --locked uvicorn agentchat.main:app --host 127.0.0.1 --port 7860
Health check should return {"status":"OK"}. Swagger UI documents the API. The health check confirms server startup; send a message to verify your model credentials.
5. Run the frontend
Open another terminal at the repository root:
cd src/frontend
npm ci
npm run dev -- --host 127.0.0.1 --port 8090 --strictPort
Visit http://127.0.0.1:8090. The development server proxies /api to the backend on port 7860.
For a different backend address, set VITE_API_BASE_URL=http://your-backend:port in src/frontend/.env.local and restart the frontend. Keep backend command-line ports, YAML server settings, and uploaded-file URLs consistent. See the configuration guide.
First use
- Register and sign in: Your account receives its own default agents, tools, Skills, and MCP servers. Create knowledge bases when needed.
- Check the model setup: The YAML
chat_modelconfigures the system default model. Models added on the model page can be selected by agents. Display names and provider model identifiers are separate fields; use the identifier required by the provider for actual requests. - Start a conversation: Select an agent and send a message. You can switch agents within the conversation. A topic title is generated in the background and can be renamed manually.
- Add capabilities: Bind tools, Skills, MCP servers, or knowledge bases in the agent editor. A listed MCP server is not automatically bound to the current agent. Confirm external credentials and connectivity before calling it.
- Use documents and tasks: Upload documents and wait for processing before using a knowledge base. Start search and research tasks from Explore. Knowledge retrieval depends on embedding and reranking models; tasks depend on the configuration of the tools they use.
- Inspect usage: View model calls and token usage on the dashboard. Statistics depend on the usage information returned by the provider and may be incomplete when it is missing.
Advanced configuration
Simple mode uses the same YAML structure as the full configuration, filling omitted settings with defaults.
| Requirement | Setting |
|---|---|
| SQLite or MySQL | database.url; sync and async drivers are derived automatically |
| Redis | redis.endpoint; leave it empty for a local in-process cache |
| Local files, MinIO, or OSS | storage.mode and the selected storage configuration |
| Separate models | multi_models.chat_model, tool_call_model, reasoning_model, embedding, rerank, and other model entries |
| Vector store and full-text search | rag.vector_db, rag.enable_elasticsearch, and the relevant connection settings |
| Default MCP / Skill templates | agentchat/config/mcp_server.json, agentchat/config/default_skills.json, and config/skills/ |
| Logging | log_level and the AGENTCHAT_LOG_DIR environment variable |
Configuration precedence is: explicit loader path → AGENTCHAT_CONFIG → agentchat/config.local.yaml → agentchat/config.yaml. Select config.local.simple.yaml explicitly and restart the backend after changes.
The existing Docker files describe a development stack with MySQL, Redis, MinIO, and the frontend development server. They are separate from this lightweight local setup. Container addresses, configuration, and persistence need to be checked for that stack; a full container startup was not validated as part of this documentation update.
Development and checks
In src/backend:
uv sync --locked --group dev
uv run --locked pytest tests -q
In src/frontend:
npm ci
npm run lint
npm run build
node --test tests/mars-task.test.cjs
Install frontend dependencies to enable the backend's cross-language AG-UI checks. Scripts requiring external services remain under src/backend/tests/manual and are excluded from default collection.
GitHub CI runs backend tests and frontend type checks and builds on pushes to main, pull requests, or manual dispatch. It uses temporary configuration and databases, without real model keys. Building the frontend generates static files; it does not deploy the application.
Documentation
The detailed guides below are currently in Chinese:
- Backend architecture and troubleshooting
- Simple configuration and local data
- Flexible conversations
- Private user resources
- Default Skills
- Default MCP servers · Parallel Search
- AG-UI protocol
- Conversation token usage
- Logging
- Tests
- Changelog
License and support
This project is licensed under the MIT License.
Thank You for Supporting AgentChat!
If this project has been helpful to you, please give us a Star
Help more people discover this project and build the future of AI together!
Made with love by the AgentChat Author MingGuang Tian
Explore related projects
Loading…



