> For the complete documentation index, see [llms.txt](https://solinity.gitbook.io/solace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://solinity.gitbook.io/solace/reference/overview/how-to-use-solace.md).

# How to use Solace

Using the API is easier than you think, no code necessary; Follow the steps

1. Setup your virtual environment&#x20;

{% code overflow="wrap" lineNumbers="true" %}

```
python3 -m venv ~/.venvs/aienv
source ~/.venvs/aienv/bin/activate
```

{% endcode %}

2. Install libraries

```
pip install -U phidata openai duckduckgo-search
```

3. Export your OpenAI key&#x20;

```
export OPENAI_API_KEY=sk-***
```

4. Run the Agent&#x20;

```
python web_search.py
```
