Paradex CLI is a command-line interface (CLI) for managing account contract setups, including printing account info, adding guardians, changing signers, and more.
Run without installing (recommended):
uvx paradex-cli <command>Install as a persistent tool:
uv tool install paradex-cli
paradex-cli <command>All commands require PARADEX_ACCOUNT_ADDRESS and PARADEX_ACCOUNT_KEY.
Option 1 — .env file (recommended)
Copy the example and fill in your credentials. The CLI auto-loads .env from the current directory.
cp .env.example .env
# edit .env with your address and private key
paradex-cli <command>Option 2 — explicit file path
Useful when you maintain separate credential files per environment:
paradex-cli --env-file ~/.paradex/prod.env <command>Option 3 — inline / shell export
PARADEX_ACCOUNT_ADDRESS=0x... PARADEX_ACCOUNT_KEY=0x... paradex-cli <command>
# or
export PARADEX_ACCOUNT_ADDRESS=0x...
export PARADEX_ACCOUNT_KEY=0x...paradex-cli print-account-info ACCOUNT_ADDRESS --env ENVIRONMENTparadex-cli add-guardian PUB_KEY --env ENVIRONMENTparadex-cli add-guardian-backup PUB_KEY --env ENVIRONMENTparadex-cli change-signer PUB_KEY --env ENVIRONMENTparadex-cli sign-invoke-tx FILE_PATH --env ENVIRONMENTparadex-cli submit-invoke-tx TX_FILE_PATH SIG_FILES --env ENVIRONMENTWithdraw balance from Paraclear to bridge on L1.
paradex-cli withdraw-to-l1 L1_ADDRESS AMOUNT --env ENVIRONMENTWithdraw balance from Paraclear and transfer to a different account on L2.
paradex-cli transfer-on-l2 L2_ADDRESS AMOUNT --env ENVIRONMENTDeposit balance to Paraclear from L2.
paradex-cli deposit-to-paraclear AMOUNT --env ENVIRONMENTparadex-cli trigger-escape-guardian --env ENVIRONMENTparadex-cli escape-guardian PUB_KEY --env ENVIRONMENTGenerates an off-chain SNIP-12 signature that a sub-operator must produce before a vault
operator can call register_sub_operator on the Transfer Registry contract.
PARADEX_ACCOUNT_KEY must be the sub-operator's private key.
paradex-cli sign-register-sub-operator-message VAULT_ADDRESS SUB_OPERATOR_ADDRESS --env ENVIRONMENTShare the printed Nonce, Expiry, and Signature with the vault operator to complete on-chain registration.
To contribute to this project, follow these steps:
git clone https://github.com/tradeparadex/paradex_cli.git
cd paradex_cliuv syncuv run pytestMake your changes to the codebase.
Add tests for your new features or bug fixes.
uv run pytestCommit your changes and push them to your fork:
git add .
git commit -m "Description of your changes"
git push origin your-branchCreate a pull request against the main branch of this repository.
uv buildUV_PUBLISH_TOKEN=<your-pypi-token> uv publish