How to set default save path for asciinema

When i execute asciinema rec output directory is /tmp on my WSL

asciinema: recording asciicast to /tmp/tmpwz180_d7-ascii.cast

Have any configure about output directory?

asciinema use Python’s tempfile.mkstemp function, which could be directed to use a different dir with TMP env var. See here: tempfile — Generate temporary files and directories — Python 3.10.2 documentation