Skip to content
Kanaries Cloud
How to set your kanaries token in pygwalker?

How to set your kanaries token in pygwalker?

Here are three ways to set you api key.

By login-cli to login in local(recommend, pygwalker >= 0.3.20)

pygwalker login

By invoking pygwalker conifg command(recommend)

pygwalker config --set kanaries_token=your_api_key

By setting your local environment variable

variable name: KANARIES_API_KEY

  • macos / linux

    echo 'export KANARIES_API_KEY="your api key"' >> ~/.zshrc


    echo 'export KANARIES_API_KEY="your api key"' >> ~/. bash_profile
  • windows

    setx KANARIES_API_KEY <your api key>

By invoking pygwalker function

from pygwalker import GlobalVarManager
GlobalVarManager.set_kanaries_api_key("your api key")


About how to get kanaries token, please refer it: How to get api key of kanaries? (opens in a new tab)