Delulu documentation

CLI configuration

Environment variables, local files, token refresh, and credential safety.

Environment variables

VariablePurposeDefault
DELULU_API_URLAPI base URL.https://api.delulu.social
DELULU_OAUTH_ISSUEROAuth issuer used by login.API URL
DELULU_OAUTH_CLIENT_IDPublic OAuth client ID.delulu-cli
DELULU_WORKSPACE_IDWorkspace fallback for commands.Token wid claim
DELULU_OUTPUTpretty, toon, or json.TTY detection
DELULU_SKILLS_DIRCustom agent-skill installation root.Detected user agent folders
NO_COLORDisable terminal color when set.unset

Equivalent command flags override environment values where both exist.

Local files

PathContents
~/.config/delulu/credentials.jsonAccess token, optional refresh token, expiry, issuer, client ID, and discovered endpoints.
~/.config/delulu/operations.jsonUp to 100 operation fingerprints, keys, resource IDs, and timestamps.

Both files are created with owner-only mode 0600. The operation journal never stores credentials, captions, or media contents.

Token refresh

The CLI refreshes access tokens when they have less than 60 seconds remaining. Refresh rotation replaces the stored token. A failed refresh is classified as authentication failure and directs the caller to delulu login.

Default delegated scopes

The CLI requests:

posts:read posts:write accounts:read accounts:write stats:read media:write billing:write

The approval screen can narrow this set. A workspace role still caps what the resulting credential can do.

Remove credentials

delulu logout --yes

This attempts refresh-token revocation and removes the local credential file. Removing the agent integration does not log out.