Security

Read when: handling the session, tokens, passwords or logs.

Before using tlnt

tlnt is unofficial and live commands can affect account data. Confirm that your use is authorized before continuing.

Visible login

Login is explicit:

tlnt --config /path/to/config.json login --json

It reuses a valid session or opens a visible Chrome or Edge window through Playwright. Enter credentials on Mekari's page, or let tlnt type them there with --email. Status, profile, notification and attendance commands never open the login flow automatically.

With --cdp, tlnt drives a browser you already run (Chrome with a DevTools port, or agent-browser), with that profile's cookies, for the length of the login only. It opens one tab, closes only that tab and never closes your browser. Keep a DevTools port bound to loopback (127.0.0.1): anything that can reach it controls that browser. No password or authorization code is stored or logged.

With --email, tlnt types your Mekari email and password into Mekari's own sign-in page and submits it once, without retrying, because Mekari may lock an account after repeated failures. The password comes from a hidden prompt, or from TALENTA_PASSWORD when there is no terminal. It is held in memory only for that login; it is never stored in the session, written to a file, logged, echoed, or accepted as a command-line flag. TALENTA_PASSWORD sits in the process environment, so every process of that user can read it, and it unlocks your whole Mekari account, not only Talenta. Set it in a service's own environment or secret manager, never in chat, in a shared shell profile or in the repository.

The client ID is an OAuth identifier, not an access token. Obtain an authorized value from project maintainers. Never invent, publish, or commit the client ID.

Session storage

The session normally lives at:

~/Library/Application Support/tlnt/session.json

tlnt creates the session directory with mode 0700 and keeps its default directory at 0700, even when you created that directory yourself; it never changes the mode of any other existing directory. The atomically replaced session file uses mode 0600. It holds profile metadata and the mobile access token with its expiry. A session saved by an earlier version may still hold browser cookies and non-secret keyring metadata until the next login replaces it. It never stores passwords, authorization codes, CSRF tokens, or page dumps.

tlnt no longer uses the system keyring. If you used --store-password with tlnt 1.2 or earlier and have not signed in since, delete the tlnt entry from your OS credential store (macOS: security delete-generic-password -s tlnt).

Treat the session as a credential. Never commit, copy, paste, or log it.

Token precedence

TALENTA_BEARER overrides the saved mobile token for the current process and is never written to the session:

TALENTA_BEARER="process-local-token" tlnt status --json

The environment token must not be written to config.json or shared with remote connectors.

Logout

Run logout only after explicitly requesting removal of the saved session:

tlnt logout --json

If remote logout fails, the local session is preserved for retry. If the saved token already expired, logout still removes the local session.

Version check and updates

Every command except update makes one request to the public Talenta Google Play listing to read the latest app version, and one to the public PyPI API (https://pypi.org/pypi/tlnt-cli/json) to read the latest tlnt version. The requests carry no session, token, cookie, config value, or account data. Only the public version strings and a timestamp are cached, in play_version.json and pypi_version.json in the user cache directory (normally ~/Library/Caches/tlnt/). Failures are silent, and the notices are written to stderr only. They never run logout, login, or update for you.

tlnt update installs the latest tlnt-cli release from PyPI with uv tool install --force. The release workflow builds, tests and publishes that package through PyPI Trusted Publishing, with no stored API token, so it never installs unreleased code from main. Never let an agent run it without an explicit request.

Request fidelity

Talenta requests carry the application headers the Talenta Android app's native layer sends: its okhttp User-Agent, Accept-Language, X-App-Version, X-Device-ID, X-Device-Model, X-OS-Version and two app constants, in the app's value formats (samsung SM-G960F, Android 13). The app's Flutter screens send a different set; tlnt mirrors one real profile rather than a mix. The device identity is created once per install and reused on every run, like a real phone. The device fingerprint rides only on the clock-in and clock-out call, as in the app. accept_language (default id-ID; the app also sends en-EN) and app_version are configurable; see Setup. Transport details (TLS fingerprint, HTTP/2, encoding headers) remain Python's, not okhttp's.

The app also runs Google Play Integrity, which a CLI cannot provide. Talenta does not require it on the requests tlnt sends today; if that changes, the affected commands will fail with remote_error and no setting can fix it.

Output safety

  • Commands accepting --json write one result object to stdout.
  • Clock-in and clock-out confirmation prompts use stdout in human mode and stderr with --json; diagnostics use stderr.
  • --verbose never includes passwords, tokens, cookies, authorization codes, request bodies, or selfie contents.
  • Live clock-in, clock-out, and approval require terminal confirmation. The prompts read standard input, so they guard against mistakes, not scripts; set TALENTA_READONLY=1 for an agent that must never write.
  • --dry-run never submits attendance.
  • --curl sends nothing but prints the bearer token and request body; keep that output out of chat, logs and tickets.