Skip to main content

Authentication

Auth is an emailed verification code. There are no API keys to create or store to get started, and private keys are held in Turnkey — they never leave your device.

Create an account

Creates an account and verifies it with an emailed code. The email argument is optional; omit it and the CLI prompts.

Log in

Same flow for an existing account. Tokens are stored locally once verified.

Check who you are

tm whoami

Shows your account and wallet info — useful for confirming which account a script is about to trade on.

Log out

tm logout

Clears stored tokens.

Environment variables

VariablePurpose
TM_API_KEYAPI key, for non-interactive use (CI, scripted agents)
TM_AUTH_TOKENAuth token, used in place of the stored login

Either lets the CLI run without an interactive login — set one in CI rather than baking a login into a pipeline.

Configuration

tm config show # current configuration; secrets are masked
tm config set api_key <v> # set a value

tm config show masks the stored api_key rather than printing it.


Next → Commands