> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup infra for new users

Follow these steps to setup an existing infra:

<Steps>
  <Step title="Clone git repository">
    Clone the git repo and `cd` into the infra directory

    <CodeGroup>
      ```bash Mac theme={null}
      git clone https://github.com/[YOUR_GIT_REPO].git

      cd your_infra_directory
      ```

      ```bash Windows theme={null}
      git clone https://github.com/[YOUR_GIT_REPO].git

      cd your_infra_directory
      ```
    </CodeGroup>
  </Step>

  <Step title="Create and activate a virtual environment">
    <CodeGroup>
      ```bash Mac theme={null}
      python3 -m venv aienv
      source aienv/bin/activate
      ```

      ```bash Windows theme={null}
      python3 -m venv aienv
      aienv/scripts/activate
      ```
    </CodeGroup>
  </Step>

  <Step title="Install agno">
    <CodeGroup>
      ```bash Mac theme={null}
      pip install -U agno
      ```

      ```bash Windows theme={null}
      pip install -U agno
      ```
    </CodeGroup>
  </Step>

  <Step title="Copy secrets">
    Copy `infra/example_secrets` to `infra/secrets`

    <CodeGroup>
      ```bash Mac theme={null}
      cp -r infra/example_secrets infra/secrets
      ```

      ```bash Windows theme={null}
      cp -r infra/example_secrets infra/secrets
      ```
    </CodeGroup>
  </Step>

  <Step title="Start infra">
    <Note>
      Install [docker desktop](https://docs.docker.com/desktop/install/mac-install/) if needed.
    </Note>

    <CodeGroup>
      ```bash Full Options theme={null}
      ag infra up --env dev --infra docker
      ```

      ```bash Shorthand theme={null}
      ag infra up dev:docker
      ```

      ```bash terminal theme={null}
      ag infra up
      ```
    </CodeGroup>
  </Step>

  <Step title="Stop infra">
    <CodeGroup>
      ```bash Full Options theme={null}
      ag infra down --env dev --infra docker
      ```

      ```bash Shorthand theme={null}
      ag infra down dev:docker
      ```

      ```bash terminal theme={null}
      ag infra down
      ```
    </CodeGroup>
  </Step>
</Steps>
