Get up and running with the Autonomous AI Team in 5 minutes.
- Go to https://console.anthropic.com/
- Sign up or log in
- Navigate to API Keys
- Create a new key and copy it
cd autonomous-ai-team
./scripts/setup.shThen edit .env and add your API key:
nano .env
# Replace 'your_claude_api_key_here' with your actual keycd autonomous-ai-team
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
nano .env # Add your ANTHROPIC_API_KEYcd autonomous-ai-team
cp .env.example .env
nano .env # Add your ANTHROPIC_API_KEY
cd docker
docker-compose up --buildsource venv/bin/activate
python scripts/example_usage.pyThis will run a market analysis example that demonstrates the Analyst agent.
source venv/bin/activate
python main.pyThen visit:
- API Docs: http://localhost:8000/docs
- Health Check: http://localhost:8000/health
curl -X POST "http://localhost:8000/api/v1/tasks" \
-H "Content-Type: application/json" \
-d '{
"task": "What are the capabilities of your team?",
"agent": "manager"
}'curl -X POST "http://localhost:8000/api/v1/tasks" \
-H "Content-Type: application/json" \
-d '{
"task": "Analyze the AI-powered productivity tools market and identify top 3 opportunities",
"context": {
"product": "Task management for remote teams",
"budget": "$10,000"
}
}'curl -X POST "http://localhost:8000/api/v1/tasks" \
-H "Content-Type: application/json" \
-d '{
"task": "Design a growth strategy to reach 1,000 customers in 60 days",
"context": {
"product": "AI code review tool",
"current_customers": 50,
"budget": "$15,000"
}
}'curl -X POST "http://localhost:8000/api/v1/tasks" \
-H "Content-Type: application/json" \
-d '{
"task": "Create a landing page copy for my SaaS product",
"context": {
"product": "Project management for designers",
"target_audience": "creative agencies",
"main_benefit": "15% faster project delivery"
}
}'Create a file my_agent_test.py:
import asyncio
from src.agents.manager import ManagerAgent
async def main():
manager = ManagerAgent()
result = await manager.run(
task="Help me understand my team's capabilities and suggest a good first task",
context={
"business": "B2B SaaS startup",
"stage": "Pre-launch"
}
)
if result["success"]:
print("✅ SUCCESS!\n")
print(result["result"])
else:
print("❌ ERROR:", result.get("error"))
asyncio.run(main())Run it:
python my_agent_test.py| Agent | Best For | Example Task |
|---|---|---|
| Manager | Complex, multi-step tasks | "Create a complete go-to-market strategy" |
| Analyst | Market research | "Analyze the SaaS productivity market" |
| Growth Hacker | Customer acquisition | "Design experiments to grow from 0 to 1K users" |
| Sales Machine | Sales copy | "Write a landing page for my product" |
| System Builder | Process automation | "Create an SOP for customer onboarding" |
| Brand Builder | Content creation | "Write 10 LinkedIn posts about AI" |
Edit .env to customize:
# Model Settings
DEFAULT_MODEL=claude-sonnet-4-5 # The AI model to use
MAX_TOKENS=4096 # Max response length
TEMPERATURE=0.7 # Creativity (0.0-1.0)
# Cost Control
MAX_COST_PER_DAY=50.0 # Daily spending limit
# Features
AUTO_APPROVE_CONTENT=true # Auto-approve content creation
AUTO_APPROVE_ANALYSIS=true # Auto-approve market analysisEach task returns:
{
"task_id": "task_abc123", // Unique identifier
"success": true, // Did it work?
"agent_id": "manager", // Which agent handled it
"result": "The actual output...", // Main result (markdown)
"iterations": 3, // Tool use rounds
"elapsed_seconds": 12.5, // Time taken
"usage": { // Cost tracking
"input_tokens": 1500,
"output_tokens": 2000
}
}-
Be Specific: More context = better results
{ "task": "Analyze market opportunities", "context": { "product": "AI writing assistant", "target_market": "content marketers", "budget": "$20k", "timeline": "6 months" } } -
Use Manager for Complex Tasks: Let it coordinate specialists
{ "task": "Research the market, design a growth strategy, and create sales copy", "agent": "manager" } -
Direct to Specialists for Speed: Skip routing for known tasks
{ "task": "Write an email sequence", "agent": "sales_machine" } -
Monitor Costs: Check logs for token usage
# Watch logs in real-time docker-compose logs -f app
"No module named 'src'"
# Make sure you're in the autonomous-ai-team directory
cd autonomous-ai-team
python -c "import src; print('✓ Working!')""API key not configured"
# Check your .env file
cat .env | grep ANTHROPIC_API_KEY
# Should NOT be: your_claude_api_key_here
# Should be: sk-ant-..."Connection refused"
# Make sure the server is running
python main.py
# Or with Docker
cd docker && docker-compose up"Rate limit exceeded"
- You're hitting Anthropic's rate limits
- Wait a few seconds and try again
- Consider reducing
MAX_TOKENSin.env
- Read the full README.md for detailed documentation
- Explore scripts/example_usage.py for more examples
- Check the API docs at http://localhost:8000/docs
- Customize agents in
src/agents/ - Add new tools in
src/core/tools.py
- Check the README.md for comprehensive documentation
- Look at example scripts in
scripts/ - Review logs for error details
- Open an issue on GitHub
Ready to accelerate your business growth? Let's go! 🚀