Skip to content

Configuration

LazyFlare requires a Cloudflare API Token to communicate with your account.


1. Generating an API Token

  1. Go to your Cloudflare Dashboard Profile.
  2. Click Create Token -> Create Custom Token.
  3. Grant Edit permissions for Zone DNS, Cache Purge, Workers Scripts, and Workers KV Storage.

2. Setting the Token

LazyFlare supports two methods:

Run the following commands in your terminal:

bash
mkdir -p ~/.config/lazyflare
echo "CLOUDFLARE_API_TOKEN=your_super_secret_token_here" > ~/.config/lazyflare/config

Method B: Environment Variable

bash
export CLOUDFLARE_API_TOKEN="your_super_secret_token_here"

Released under the MIT License.