A comprehensive SDK for building customizable multi-agent chatbots with RAG support, web interfaces, and reusable API tools.
- Create a chatbot with CLI and Web UI, ready to be used immediately.
- Create agents with a CLI chat (for testing purposes) ready to be used.
- Register agents into chatbots, so your chatbot can call any of the agents you add.
The chatbot has a "supervisor" agent that knows about the registered agents and decides when to use one or another. It uses them as tools.
- ๐๏ธ Scaffolding CLI: Generate chatbot and agent projects with a single command.
- ๐ค Intelligent Supervisor: Automatic routing and orchestration of specialist agents.
- ๐ RAG Support: Enable RAG when creating a chatbot to pull docs from URLs (HTML/Markdown) or local files.
- ๐ง Context Management: Keeps user queries and final answers in context, auto-compressing messages if the history gets too large.
- ๐ Web Interface: Built-in FastAPI + WebSocket server with real-time streaming (compatible with other WebSocket UIs).
- โฑ๏ธ Time Awareness: Injects current time into prompts so agents are aware of the "now" (useful for logs/APIs).
- ๐ง Built-in Tools: Ready-to-use tools for REST APIs (with JSONPath extraction) and file downloads.
- ๐ Progress Tracking: Shows real-time progress when an agent is selected and which tools are being used.
For detailed installation instructions, see the Installation Guide.
# Clone and install
git clone https://github.com/juanje/macsdk
cd macsdk
uv sync
# Or install via pip/uv (once published)
# uv add macsdkLearn more in the Creating Chatbots Guide.
macsdk new chatbot my-chatbot --display-name "My First Chatbot"
cd my-chatbot
cp .env.example .env
# Edit .env and add your GOOGLE_API_KEY
uv sync
uv run my-chatbotIt's ready to use immediately.
Learn more in the Creating Agents Guide.
cd ..
macsdk new agent infra-agent --description "Monitors infrastructure services"
cd infra-agent
uv sync
uv run infra-agent chatIt has its own chat for testing.
cd ../my-chatbot/
macsdk add-agent . --path ../infra-agentNow you'll be able to use the chat, which can delegate to the agent if needed.
uv run my-chatbot chat
# Or using the Web UI
uv run my-chatbot webYou can add as many agents as you want!
GOOGLE_API_KEY=your_key_here# LLM settings
llm_model: gemini-2.5-flash
llm_temperature: 0.3
# RAG sources (if --with-rag)
rag:
enabled: true
sources:
- name: "My Docs"
url: "https://docs.example.com/"
tags: ["docs", "api"]The examples/ directory contains working examples:
- api-agent: REST API interactions with JSONPlaceholder.
- devops-chatbot: Multi-agent chatbot with RAG and API tools.
git clone https://github.com/juanje/macsdk
cd macsdk
uv sync
# Run tests
uv run pytest
# Type checking & linting
uv run mypy src/
uv run ruff check .MIT
This project was developed with the assistance of artificial intelligence tools:
Tools used:
- Cursor: Code editor with AI capabilities
- Claude-4.5-Opus: Anthropic's language model
Division of responsibilities:
Human (Juanje Ojeda):
- ๐ฏ Specification of objectives and requirements
- ๐ Definition of project's architecture
- ๐ Critical review of code and documentation
- ๐ฌ Iterative feedback and solution refinement
- โ Final validation of concepts and approaches
AI (Cursor + Claude-4.5-Opus):
- ๐ง Initial code prototyping
- ๐ Generation of examples and test cases
- ๐ Assistance in debugging and error resolution
- ๐ Documentation and comments writing
- ๐ก Technical implementation suggestions
Collaboration philosophy: AI tools served as a highly capable technical assistant, while all design decisions and project directions were defined and validated by the human.
- author: Juanje Ojeda
- email: [email protected]