Checks
Operating system
Linux 6.19.6+parrot7-amd64 - Parrot Security 7.1 (echo)
Expected behaviour
After a successful login, Kiro CLI should attach a usable profile/session to the CLI and allow interactive chat requests to work normally.
Specifically:
- Google login should result in a usable profile being available to the CLI
kiro-cli whoami should show the account/profile information needed for chat
- entering a prompt in interactive chat should succeed
- Builder ID / free login should also produce a valid chat session after successful authentication
Actual behaviour
Note: I am using kiro-cli, not q.
For the template checks, I ran the Kiro equivalents:
kiro-cli doctor --all
- repeated logout/login
- reproduced the issue again in a fresh CLI session
I did not run q restart literally, because this issue is occurring in kiro-cli.
I am seeing two separate auth failures on Linux with kiro-cli 1.28.2.
- Google login path:
kiro-cli login succeeds
- interactive CLI starts
/usage fails with:
profileArn is required but no profiles are available. Please log in and select a profile.
- normal prompts like
hello fail with the same profileArn / no profiles error
- Builder ID / free login path:
kiro-cli logout
- remove
~/.local/share/kiro-cli/data.sqlite3
kiro-cli login --license free --use-device-flow succeeds
kiro-cli whoami --format json-pretty returns:
{"accountType":"BuilderId","email":null,"region":"us-east-1","startUrl":null}
kiro-cli chat --list-models works
- interactive chat still fails when I type a prompt such as
test
- error shown:
Authentication failed. Your session may have expired. Run 'kiro-cli login' to re-authenticate.
So authentication appears to complete, but interactive chat remains unusable.
Steps to reproduce
This reproduces consistently.
Case 1: Google login / missing profileArn
- Run
kiro-cli logout
- Run
kiro-cli login
- Complete Google sign-in successfully
- Run
kiro-cli
- Run
/usage or type hello
- Observe:
profileArn is required but no profiles are available
Case 2: Builder ID / free login / chat auth failure
- Run
kiro-cli logout
- Run
rm -f ~/.local/share/kiro-cli/data.sqlite3
- Run
kiro-cli login --license free --use-device-flow
- Complete browser/device authorization successfully
- Run
kiro-cli whoami --format json-pretty
- Run
kiro-cli chat --list-models
- Run
kiro-cli
- Type
test
- Observe:
Authentication failed. Your session may have expired. Run 'kiro-cli login' to re-authenticate.
Additional notes:
kiro-cli doctor --all was run
- issue reproduces after fresh logout/login
- issue reproduces after deleting local CLI state
- IDE works, but CLI interactive chat does not
Environment
<This will be visible to anyone. Do not include personal or sensitive information>
[q-details]
version = "1.28.2"
hash = "27868a6e6508e32a80d15e6eba2f6adbab6c2aa7"
date = "2026-03-27T00:12:46.489292Z (4d ago)"
variant = "minimal"
[system-info]
chip = "AMD Ryzen 5 7520U with Radeon Graphics"
total-cores = 4
memory = "14.87 GB"
[system-info.os.linux]
kernel_version = "6.19.6+parrot7-amd64"
id = "debian"
name = "Parrot Security"
pretty_name = "Parrot Security 7.1 (echo)"
version_id = "7.1"
version = "7.1 (echo)"
[environment]
cwd = "/home/USER/repos/shadowcheck-web"
cli-path = "/home/USER/repos/shadowcheck-web"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.2.37"
terminal = "Konsole"
install-method = "unknown"
[env-vars]
DISPLAY = ":0"
PATH = "/home/USER/.npm-global/bin:/home/USER/.local/bin:/snap/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_CURRENT_DESKTOP = "KDE"
XDG_SESSION_DESKTOP = "plasma"
XDG_SESSION_TYPE = "wayland"
Checks
q doctorin the affected terminal sessionq restartand replicated the issue againOperating system
Linux 6.19.6+parrot7-amd64 - Parrot Security 7.1 (echo)
Expected behaviour
After a successful login, Kiro CLI should attach a usable profile/session to the CLI and allow interactive chat requests to work normally.
Specifically:
kiro-cli whoamishould show the account/profile information needed for chatActual behaviour
Note: I am using
kiro-cli, notq.For the template checks, I ran the Kiro equivalents:
kiro-cli doctor --allI did not run
q restartliterally, because this issue is occurring inkiro-cli.I am seeing two separate auth failures on Linux with kiro-cli 1.28.2.
kiro-cli loginsucceeds/usagefails with:profileArn is required but no profiles are available. Please log in and select a profile.hellofail with the sameprofileArn/ no profiles errorkiro-cli logout~/.local/share/kiro-cli/data.sqlite3kiro-cli login --license free --use-device-flowsucceedskiro-cli whoami --format json-prettyreturns:{"accountType":"BuilderId","email":null,"region":"us-east-1","startUrl":null}kiro-cli chat --list-modelsworkstestAuthentication failed. Your session may have expired. Run 'kiro-cli login' to re-authenticate.So authentication appears to complete, but interactive chat remains unusable.
Steps to reproduce
This reproduces consistently.
Case 1: Google login / missing profileArn
kiro-cli logoutkiro-cli loginkiro-cli/usageor typehelloprofileArn is required but no profiles are availableCase 2: Builder ID / free login / chat auth failure
kiro-cli logoutrm -f ~/.local/share/kiro-cli/data.sqlite3kiro-cli login --license free --use-device-flowkiro-cli whoami --format json-prettykiro-cli chat --list-modelskiro-clitestAuthentication failed. Your session may have expired. Run 'kiro-cli login' to re-authenticate.Additional notes:
kiro-cli doctor --allwas runEnvironment