For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /cli/authentication.md.
Log in to the CLI
Sign up or log in with a code we email you. You don't need an API key to get started. Your wallet's private key stays in Turnkey's secure enclave, and the key the CLI signs with never leaves your device.
Create an account
tm signup [email protected]The CLI creates the account and verifies it with an emailed code. The email argument is optional; omit it and the CLI prompts.
Log in
tm login [email protected]Once you enter the emailed code, the CLI stores your tokens locally.
Check who you are
tm whoamiShows your account and wallet info. Run it to confirm which account a script is about to trade on.
Log out
tm logoutRun without an interactive login
| Variable | Purpose |
|---|---|
TM_API_KEY | API key, for non-interactive use (CI, scripted agents) |
TM_AUTH_TOKEN | Auth token, used in place of the stored login |
Set one of these 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 valuetm config show masks the stored api_key rather than printing it.
- Need help? [email protected]
- Chat with us on Discord
- See what changed in the changelog