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

# Firecrawl Agent

Firecrawl is a tool that allows you to search the web using Firecrawl.

Create a file `firecrawl_agent.py` with the following code:

```python firecrawl_agent.py theme={null}
from phi.agent import Agent
from phi.tools.firecrawl import FirecrawlTools

agent = Agent(tools=[FirecrawlTools(scrape=False, crawl=True)], show_tool_calls=True, markdown=True)
agent.print_response("Summarize this https://finance.yahoo.com/")
```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Install libraries">
    ```bash theme={null}
    pip install firecrawl-py
    ```
  </Step>

  <Step title="Set environment variables">
    ```bash theme={null}
    export FIRECRAWL_API_KEY=****
    ```
  </Step>

  <Step title="Run the agent">
    ```bash theme={null}
    python firecrawl_agent.py
    ```
  </Step>
</Steps>
