The open-source platform for building intelligent multi-agent systems in Python. Agents that talk over XMPP, organize their work in behaviours, know who is online — and, with SPADE-LLM and SPADE BDI, reason with large language models and AgentSpeak.
Every SPADE agent is a first-class XMPP client with its own JID. When it starts, it connects, announces its presence and becomes instantly reachable — by agents and by humans.
agent = MyAgent("agent@server", "passwd")
await agent.start() Agents think in behaviours: cyclic, periodic, one-shot, timeout and finite-state machines — all running concurrently on Python's asyncio event loop.
self.add_behaviour(ReceiverBehaviour(),
Template(metadata={"performative": "inform"})) Agents exchange FIPA-style messages with performatives, templates and presence awareness — real-time, standardized and secure, with no extra infrastructure to build.
msg = await self.receive(timeout=10)
await self.send(reply) Plug cognition into any agent: SPADE-LLM connects Large Language Models with tools, guardrails and memory, while SPADE BDI adds AgentSpeak reasoning with beliefs, desires and intentions.
agent = LLMAgent("llm@server", "passwd",
provider=LLMProvider.create_openai(...)) Discover what makes SPADE the perfect choice for multi-agent systems
Write a few lines of Python, press Run, and watch your agent receive and reply to messages
import spade
from spade.agent import Agent
from spade.behaviour import CyclicBehaviour
from spade.message import Message
class MyAgent(Agent):
class MyBehaviour(CyclicBehaviour):
async def run(self):
msg = await self.receive(timeout=10)
if msg:
print(f"Message received: {msg.body}")
reply = Message(to=str(msg.sender))
reply.body = "I received your message!"
await self.send(reply)
async def setup(self):
behaviour = self.MyBehaviour()
self.add_behaviour(behaviour)
async def main():
agent = MyAgent("agent@localhost", "password")
await agent.start()
if __name__ == "__main__":
spade.run(main()) No XMPP server to configure — SPADE ships with everything you need
Enhance your agent platform with specialized capabilities
Production-ready LLM integration with guardrails, memory, human-in-the-loop, and advanced tool support for secure AI agents.
Implement Belief-Desire-Intention agents with AgentSpeak language support.
Discover the complete SPADE plugin ecosystem with detailed documentation and examples.
SPADE powers intelligent applications across various domains
Coordinate IoT devices and sensors in smart factories and industrial automation systems.
Manage traffic systems, energy grids, and public services through intelligent agent coordination.
Build distributed artificial intelligence systems with cooperating and competing agents.
Create autonomous trading agents for algorithmic trading and market analysis.
Develop adaptive learning environments and intelligent tutoring systems.
Model complex social interactions and communication patterns in virtual environments.
Elevate your multi-agent systems with Large Language Model integration. Create agents that think, reason, and communicate naturally.
Fully distributed and decentralized architecture based on XMPP protocol for robust, scalable agent communication.
Advanced orchestration capabilities with conditional routing, dynamic workflows, and intelligent message handling.
Smart message routing with context-aware decision making, load balancing, and automatic failover mechanisms.
Extensive tool integration including MCP servers, LangChain tools, and custom function calling capabilities.
Built-in security features, content filtering, guardrails system, and comprehensive safety controls for production use.
Seamlessly integrates with all SPADE extensions like BDI, PubSub, Artifacts, and Norms for enhanced functionality.
Get answers to common questions about SPADE agents and multi-agent systems
Stay updated with the latest SPADE developments