Skip to content

Grok/XAI provider requires re-authentication every day (grok login) #519

@tomcasaburi

Description

@tomcasaburi

Description

I’m using OpenUsage with the Grok/xAI provider.

Authentication works correctly after running grok login. However, approximately once per day, requests start failing and I have to run grok login again to restore access.

Not sure if this is an xAI limitation or a bug in OpenUsage. The issue does not occur with other providers.

OpenUsage version: 0.6.24

Steps to Reproduce

  1. Open Openusage
  2. Add Grok/xAI provider
  3. Authenticate via grok login
  4. Wait for a day
  5. Authentication will expire, requires grok login again

Expected Behavior

Authentication with the Grok/xAI provider should persist across sessions without requiring daily re-authentication. Once grok login is run, OpenUsage should continue working indefinitely (or at least until the token actually expires).

Actual Behavior

Approximately once per day, requests to the Grok/xAI provider start failing. Running grok login again restores access temporarily. The issue does not occur with other providers.

OpenUsage Version

0.6.24

Operating System

macOS (Apple Silicon)

Screenshots

No response

Additional Context

The issue does not occur with other providers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions