Install and set up Polymarket Agents
mainPolymarket Agents requires Python 3.9. Follow these steps to set up your local development environment:
Clone the repository:
git clone https://github.com/{username}/polymarket-agents.git cd polymarket-agentsCreate and activate a virtual environment:
- On macOS/Linux:
virtualenv --python=python3.9 .venv source .venv/bin/activate - On Windows:
virtualenv --python=python3.9 .venv .venv\Scripts\activate
- On macOS/Linux:
Install dependencies:
pip install -r requirements.txtConfigure environment variables: Create a
.envfile in the project root by copying the example:cp .env.example .envThen, populate the following keys in
.env:- `POLYGON_WALLET_PRIVATE_KEY=""
- `OPENAI_API_KEY=""
Prepare your wallet: Ensure your wallet is loaded with USDC.
Set PYTHONPATH (if not using Docker): If running scripts directly from your local shell, set the following environment variable:
export PYTHONPATH="."
git clone https://github.com/{username}/polymarket-agents.git
cd polymarket-agents
virtualenv --python=python3.9 .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
export PYTHONPATH="."