A production-ready template for deploying Agency Swarm agencies with Docker containerization and automated deployment to the Agencii cloud platform.
π Agencii - The official cloud platform for Agency Swarm deployments
π GitHub App - Automated deployment integration
Click "Use this template" to create your own repository, or:
git clone https://github.com/your-username/agency-github-template.git
cd agency-github-templateπ For Production: Sign up at agencii.ai and use this template for automated cloud deployment
pip install -r requirements.txtCreate a .env file in the root directory:
# Required
OPENAI_API_KEY=your_openai_api_key_here
# Optional - Add any additional API keys your agents need
# EXAMPLE_API_KEY=your_api_key_herepython agency.pyThis runs the example agency in terminal mode for testing.
π‘ Pro Tip: For creating your own agency, open this template in Cursor IDE and use the AI assistant with the
.cursor/rules/workflow.mdcfile for automated agency creation!
agency-github-template/
βββ agency.py # Main entry point
βββ requirements.txt # Python dependencies
βββ Dockerfile # Container configuration
βββ .env # Environment variables (create this)
βββ example_agent/ # Your agency folder
βββ __init__.py
βββ example_agent.py
βββ instructions.md
βββ files/ # Local files accessible to the agent (via files_folder)
βββ tools/
βββ ExampleTool.py
βββ example_agent2/
βββ agency_manifesto.md # Shared instructions
βββ requirements.txt
βββ .env
βββ...
This template includes AI-powered agency creation using Cursor IDE:
-
Open this project in Cursor IDE
-
Use the AI Assistant to create your agency by referencing:
π .cursor/rules/workflow.mdc -
Simply ask the AI:
"Create a new agency using the .cursor workflow"
The AI will guide you through the complete 7-step process:
- β PRD Creation
- β Folder Structure Setup
- β Tool Development
- β Agent Creation
- β Agency Configuration
- β Testing & Validation
- β Iteration & Refinement
The AI assistant will automatically:
- Create proper folder structures
- Generate agent classes and instructions
- Build custom tools with full functionality
- Set up communication flows
- Create the main agency file
- Test everything to ensure it works
If you prefer manual setup, replace the ExampleAgency/ folder with your own agency structure following the Agency Swarm conventions.
Your agency must follow this structure:
- Agency Folder: Contains all agents and manifesto
- Agent Folders: Each agent has its own folder with:
AgentName.py- Agent class definitioninstructions.md- Agent-specific instructionstools/- Folder containing agent tools
- agency_manifesto.md - Shared instructions for all agents
For production deployment, use the Agencii platform:
- Sign up at agencii.ai
- Use this template to create your repository
- Develop your agency using Cursor IDE with
.cursorworkflow
- Install the Agencii GitHub App
- Grant permissions to your repository
- Configure environment variables in Agencii dashboard
- Push to main branch - Agencii automatically detects and deploys
- Monitor deployment in your Agencii dashboard
- Access your live agency via provided endpoints
- Auto-deploy on every push to
mainbranch - Zero-downtime deployments with rollback capability
- Environment management through Agencii dashboard
- Open Cursor IDE with this template
- Ask the AI: "Create a new agency using the .cursor workflow"
- Follow the guided process - the AI handles everything automatically
- Test your agency:
python agency.py - Deploy to production: Install Agencii GitHub App and push to main
If you prefer hands-on development:
- Create Tools: Build agent tools in
tools/folders - Configure Agents: Write
instructions.mdand agent classes - Test Locally: Run
python agency.py - Deploy: Push to your preferred platform
The .cursor/rules/workflow.mdc file contains the complete development specifications for manual implementation.
- π Agencii Cloud Deploy: One-click deployment to Agencii platform
- π€ AI-Assisted Creation: Built-in Cursor IDE workflow for automated agency development
- π Auto-Deploy: Automatic deployment on push to main branch
- π Ready-to-Deploy: Dockerfile and requirements included
- π§ Modular Structure: Easy to customize and extend
- π οΈ Example Implementation: Complete working example
- π¦ Container Ready: Docker configuration for any platform
- π Environment Management: Secure API key handling via Agencii dashboard
- π§ͺ Local Testing: Terminal demo for development
- π Guided Workflow: 7-step process with AI assistance
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Start Small: Begin with 1-2 agents and expand
- Test Tools: Each tool should work independently
- Clear Instructions: Write detailed agent instructions
- Environment Setup: Always use
.envfor API keys - Documentation: Update instructions as you develop
Ready to build your AI agency? π€β¨
- Sign up at agencii.ai
- Use this template to create your repository
- Install Agencii GitHub App
- Push to main β Automatic deployment!
Open this template in Cursor IDE and ask the AI to create your agency using the .cursor workflow. The AI will handle everything from setup to testing automatically!
For manual development, replace the ExampleAgency with your own implementation and start deploying intelligent agent systems!