installation.mdx 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ---
  2. title: "Installation"
  3. description: "Install Agency Swarm in just 2 simple steps."
  4. icon: "box"
  5. ---
  6. ## Installation
  7. <Accordion title="Step 1: Create a Python Virtual Environment" defaultOpen={false}>
  8. 1. **Install Python**
  9. Download and install the latest version of Python from the [official Python website](https://www.python.org/downloads/).
  10. 2. **Create a Virtual Environment**
  11. Navigate to your project directory and create a virtual environment using `venv`:
  12. ```bash
  13. python -m venv venv
  14. ```
  15. 3. **Activate the Virtual Environment**
  16. On Mac or Linux:
  17. ```bash
  18. source venv/bin/activate
  19. ```
  20. On Windows:
  21. ```bash
  22. venv\Scripts\activate
  23. ```
  24. </Accordion>
  25. <Accordion title="Step 2: Install the agency swarm package" defaultOpen={true}>
  26. Simply run the following command:
  27. <Note>Make sure you are in the virtual environment before installing the package.</Note>
  28. ```bash
  29. pip install agency-swarm
  30. ```
  31. </Accordion>
  32. ## Next Steps
  33. When it comes to building your first AI Agency, you have three options:
  34. <CardGroup cols={3}>
  35. <Card title="From Scratch" icon="code" iconType="duotone" href="./getting-started/from-scratch">
  36. Build your own agents and tools from the ground up. Perfect to understand the framework's structure and create a
  37. fully customized solution.
  38. </Card>
  39. <Card title="Use Agency Templates" icon="layer-group" iconType="duotone" href="./getting-started/starter-template">
  40. Start with the production-ready [Agency Starter Template](./getting-started/starter-template) to quickly get a working agency with real tools and examples.
  41. </Card>
  42. <Card title="Cursor (Recommended)" icon="cube" iconType="duotone" href="./getting-started/cursor-ide">
  43. Use Cursor IDE to streamline the entire agent development process. Recommended for both beginners and advanced
  44. developers.
  45. </Card>
  46. </CardGroup>