To use Kiro CLI’s AI features, you need to log in to an account first.
Log in
kiro-cli login
Just follow the on-screen instructions to finish the verification. Your login state is saved for you, so you don’t have to log in every time.
Confirm your current identity
kiro-cli whoami
It shows the info for the account you’re currently logged in as. Handy when you’re not sure which account you’re using, or you suspect you’re not logged in at all.
Check your profile
kiro-cli profile
This shows the profile tied to your current IdC user.
Log out
kiro-cli logout
Manage it all under user
The commands above are actually all available under user too, with the exact same functionality:
kiro-cli user login
kiro-cli user logout
kiro-cli user whoami
kiro-cli user profile
If the AI replies with an authentication-related error, first run kiro-cli whoami to check your login state. If needed, run kiro-cli logout then kiro-cli login to log back in.
Account credentials are sensitive stuff. The config and cache files generated after you log in — don’t paste their contents anywhere public, and don’t commit them into version control.
With your account sorted, up next is the main act: chat.