Authenticate the CLI
Sign in once and the CLI remembers you. The login command opens your Tallyfy settings in a browser, you copy your personal access token, paste it into the terminal, and you’re done. The token is checked against your account and then saved securely on your computer, so every command after that just works.
It takes about a minute, and you only do it once per computer. Here’s the command that starts the flow:
tallyfy loginPrefer not to have a browser pop up? Add --no-browser and the CLI prints the URL instead. Your token lives at Settings > Integrations > REST API inside Tallyfy.
The CLI stores the token in your operating system’s keychain1, not in a plain text file. To remove it later, run tallyfy logout.
Two commands tell you exactly who the CLI thinks you are:
tallyfy whoamitallyfy auth statuswhoami shows the signed-in user and active organization. auth status also shows where the credential came from, which matters once scripts enter the picture.
You can hold credentials in more than one place. The CLI resolves them in this order, and the first match wins:
- The
--api-keyflag passed on the command itself. - The
TALLYFY_API_TOKENenvironment variable. - A token returned by your
auth.apiKeyHelperscript, a setting that runs a command of yours to fetch a token. Useful when secrets live in a vault. - The token saved by
tallyfy login.
This layering means your saved login is the comfortable default, and automation can override it without touching your machine’s keychain.
Don’t run the interactive login in a pipeline. Set the environment variable from your CI system’s secret store instead:
export TALLYFY_API_TOKEN="$YOUR_CI_SECRET"tallyfy process listFor unattended automation, use an application token rather than your personal one. Personal access tokens are invalidated when you log out of Tallyfy, which quietly breaks any pipeline still holding them. Application tokens are issued to your app, not to a person’s session, so they keep working. See third-party application API access for how to get one.
If you really need to save a token non-interactively, the login command reads from standard input:
echo "$TOKEN" | tallyfy login --stdinTallyfy’s API rejects requests that miss its required headers, and that’s a common trip-up for people calling it raw. The CLI adds all of them automatically on every request, including the X-Tallyfy-Client header, so there’s nothing to configure. Details on the raw requirements are in the API documentation.
OAuth sign-in (the browser-approval standard where you never paste a token at all) is on the roadmap for a future release. Today the CLI authenticates with the tokens described above.
Authentication > Get & use a personal access token
Code Samples > Authentication methods
-
On systems without a keychain, the CLI falls back to an encrypted file using AES-256-GCM. ↩
Was this helpful?
- 2026 Tallyfy, Inc.
- Privacy Policy
- Terms of Use
- Report Issue
- Trademarks