PandaAGI is a fully agentic execution ecosystem built for developers who want AI that does things, not just generates content. The system consists of three core components: the API, the SDK, and the execution environments.
Specialized Agent Orchestration
Tasks routed to dedicated general AI agents optimized for specific roles
Structured Parallelism
Tasks broken into subtasks that execute independently then merge
Resilience and Recovery
Automatic retries and reassignment for robust execution
We don’t believe developers should spend their time wiring sockets, managing agent state, or reinventing orchestration logic. The PandaAGI SDK exists to shift that burden away from you.
The SDK handles the complex infrastructure so you can focus on building powerful applications:
Sets up secure, persistent socket connections
Manages agent state across tasks
Tracks tools and context
Enables agents to reason, act, and adapt without manual glue code
# Using Poetry (recommended)poetry add panda_agi# Or with pippip install panda_agi
2
Set up your environment
Copy
# Set your API keyexport PANDA_AGI_KEY="your-api-key"
3
Create your first agent
Copy
from panda_agi import Agentfrom panda_agi.envs import LocalEnvfrom panda_agi.handlers import LogsHandler# Create a local environmentenv = LocalEnv(base_path="./my_workspace")# Initialize agent with the environmentagent = Agent(environment=env)# Run the agent with event handlershandlers = [LogsHandler(use_colors=True, show_timestamps=True)]response = await agent.run("Build me a simple web app", event_handlers=handlers)print(f"Web app creation completed: {response.output}")