Peargent
Lightweight Python framework for creating intelligent AI agents with ease.
Install / Use
/learn @Peargent/PeargentREADME
Peargent
A modern Python framework for building intelligent AI agents with simplicity at its core.
Features
- Advanced Tracing - Track every action, decision, and API call with detailed telemetry and database persistence
- Smart History Management - Built-in conversation history with intelligent context windowing and buffer management
- Multi-LLM Support - Seamlessly switch between OpenAI, Anthropic, Groq, Gemini, and more
- Type-Safe Tools - Pydantic-powered tool system with automatic validation
- Agent Pools - Run multiple agents concurrently with shared context
- Streaming Support - Real-time streaming responses with event handling
- Cost Tracking - Monitor token usage and costs across all LLM providers
Installation
pip install peargent
Quick Start
from peargent import create_agent
from peargent.models import groq, anthropic, openai
# Use any model provider
agent = create_agent(
name="assistant",
persona="You are a helpful AI assistant.",
model=anthropic("claude-3-5-sonnet-20241022") # or groq("llama-3.3-70b-versatile"), openai("gpt-4o")
)
result = agent.run("What is the capital of France?")
print(result)
For more examples and detailed documentation, visit Docs.
Contributing
Contributions are welcome! Please read our Contributing Guide to get started. Also join Discord
License
MIT License - see LICENSE file for details
Related Skills
node-connect
334.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
82.1kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
82.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
334.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
