I’ve lost the ability to authenticate the Sprites CLI and can’t find any working path back.
Both the interactive and manual token flows fail, in different ways.
$ fly -v flyctl version 0.4.74
$ sprite -v
sprite version v0.0.1-rc46
fly auth login works and I can use the CLI without any issue but sprite login displays this message :
✓ Logged in as …
Error: failed to fetch Fly.io organizations: failed to prepare Fly token: failed to fetch third-party discharge tokens: missing user-url callback
The browser also displays an “Organization not found” error.
I manually created a token for my organization and tried the keyring disabled token based auth version for jailed agents with access to a read only mounted ~/.sprites to be able to use Sprite but it didn’t worked:
$ sprite org keyring disable
✓ Keyring usage disabled. Tokens will be stored in ~/.sprites/config.json
Note: Existing tokens remain in keyring until you re-authenticate
$ sprite auth setup --token “my-org/my-org-id/token-id/token”
✓ Set up authentication for my-org$ sprite org list
API endpoints:
- https://api.sprites.dev (selected) (1 orgs)
Organizations for https://api.sprites.dev:
- my-org (via manual token)
Currently selected org: my-org
$ sprite --debug list
level=DEBUG msg=“Final organization selection” org=my-org url=https://api.sprites.dev
level=DEBUG msg=“GetToken called” org=my-org url=https://api.sprites.dev hasManager=true keyringKey=sprites:org:https://api.sprites.dev:my-org userID=“” userEmail=“”
level=DEBUG msg=“Found token in manual tokens keyring” org=my-org tokenLen=710 key=sprites:org:https://api.sprites.dev:my-org addedAt=2026-07-25T19:39:44.590+02:00
level=DEBUG msg=“System keyring Get failed, attempting fallback” error=“secret not found in keyring”
level=DEBUG msg=“Initialized file-based keyring fallback” dir=/home/user/.sprites/keyring
level=DEBUG msg=“System keyring Get failed, attempting fallback” error=“secret not found in keyring”
level=DEBUG msg=“Failed to get token from legacy global keyring” triedKeys=“[sprites:org:https://api.sprites.dev:my-org sprites:org:my-org]”
level=DEBUG msg=“Selected token based on timestamp” org=my-org source=global-manual addedAt=2026-07-25T19:39:44.590+02:00 totalCandidates=1
level=DEBUG msg=GetActiveUser activeUserID=“” totalUsers=0
level=DEBUG msg=“No active user ID set”
level=WARN msg=“failed to upgrade token” org=my-org error=“no active user found”
level=DEBUG msg=“Using org URL” original=https://api.sprites.dev base=https://api.sprites.dev
level=DEBUG msg=“Listing sprites” prefix=“”
level=DEBUG msg=“Sprite list request failed” error=“authentication failed”
Error: failed to list sprites: failed to list sprites: authentication failed
Am I doing something wrong?