DEV Community

Cover image for The essential guide to installing Kiro CLI on Windows
Ricardo Sueiras for AWS

Posted on • Edited on

The essential guide to installing Kiro CLI on Windows

Update

Amazon Q CLI is now Kiro CLI so I thought I would update this post for those of you who want to get Kiro CLI up and running on Windows.

There is currently no native Windows installation yet, but you can install and run Kiro CLI on your Windows machines using the Windows Subsystem for Linux, or wsl for short.

In this post I will walk you through what you need to do.

Installing wsl

You might already have wsl installed on your machine, in which case you can skip this step. If you do not, then Microsoft have put together a blog post that walks you through this process. To summarise this, you need to run the following from a command prompt.

wsl --install
Enter fullscreen mode Exit fullscreen mode

Once you have wsl up and running we can begin.

Installing Amazon Q Developer CLI

Before proceeding, make sure you have already setup wsl on your Windows machine (see the doc linked above).

From a Windows command shell enter the following command:

wsl -d Ubuntu
Enter fullscreen mode Exit fullscreen mode

This is going to download and install a virtual Ubuntu instance in your wsl environment. If you have already done this in the past, it will just log you into your Ubuntu wsl environment.

Help! Some folk sometimes run into issues with this step. Make sure that you have followed the wsl guide linked above, but in addition to that make sure you have restarted your laptop.

If that still does not work, you can try running the following commands. First run "wsl --list --online" to make sure you see Ubunut listed. Then run "wsl --unregister Ubuntu" and then re running "wsl --install Ubuntu" to see if that helps.

Another common error I have seen is folks running on virtual machines and you might see errors like "WSL2 is not supported on your current machine configuration" or "Please enable the Virtual Machine Platform component in your system BIOS" messages. If you are running on a VM (for example, EC2 instance), I have found switching to wsl version 1 seems to work. You can do this by running the command "wsl --set-default-version 1"

After installing Ubuntu, you will be asked to create a default user account (that will typically copy the name of the Windows user you are logged in as), and then enter a password. After you have completed that you are all ready to go.

You will notice that the default directory when you are in your wsl account maps to your Windows home directory.

We need to change this and enter the home directory of the wsl environment, which we can do by simply typing:

cd
Enter fullscreen mode Exit fullscreen mode

You will notice that the directory path has changed.

The first thing we need to do is install some missing packages that the installation will need. We will use the native package manager of Ubuntu to do this.

sudo apt install unzip
Enter fullscreen mode Exit fullscreen mode

You will be asked to enter the password for the Ubuntu user you created (not the Windows password, unless of course you used the same one!). This will install the unzip utility and should not take long.

The next step is to download the zip file that contains the installer. From the wsl command line, we use the following command:

curl --proto '=https' --tlsv1.2 -sSf 'https://desktop-release.q.us-east-1.amazonaws.com/latest/kirocli-x86_64-linux.zip' -o 'kirocli.zip'
Enter fullscreen mode Exit fullscreen mode

This should download the installer into your current directory, which should be the home directory.

Make sure you check! that you are running in the wsl home directory and not the windows home directory. If you use the "pwd" command, it will tell you. It should say "/home/{youruser}" - if it does not, then make sure you enter the "cd" command again.

Now we will unzip this by using the following command:

unzip kirocli.zip
Enter fullscreen mode Exit fullscreen mode

Which creates a subdirectory called "kirocli" with all the files we need. We are nearly ready to run the installer, but first we need to enable it by running the following commands:

cd kirocli
chmod +x install.sh
Enter fullscreen mode Exit fullscreen mode

The chmod command changes permissions of files in Linux, and we are enable the install.sh to be executable so we can run the installer. Which we do using the following command:

./install.sh
Enter fullscreen mode Exit fullscreen mode

You will be asked if you want it to modify your shell config. Answer "Yes" as what this is doing is adding a new path to point to the Kiro CLI executables. Once that has completed, you will now need to activate your new shell. You can either exit and re-launch your wsl environment, or just type:

bash
Enter fullscreen mode Exit fullscreen mode

Kori CLI is now installed, the next stage us to create our Builder ID and then use it to login.

Logging into Kiro CLI with a Builder ID

From the command enter the following command:

kiro-cli login
Enter fullscreen mode Exit fullscreen mode

You will see two options for Login method which you can select using the up and down arrow keys. You want to select the first option, "Use for Free with Builder ID"

When you select this option, it will ask you to open a URL in a web browser. Copy the URL, and then open it up in a web browser. You will now need to either create a new Builder ID, or login using an existing Builder ID you might already have.

Once you have completed that, you will be logged in. You can now access Kiro CLI from wsl by running the following:

kiro-cli
Enter fullscreen mode Exit fullscreen mode

I have created a short video that shows you these steps.

Congratulations, you are now ready to go!

Hello World

Now that we have Kiro CLI installed, we can start using it by starting a new wsl session, and then invoking it using the "kiro-cli".

We start our wsl session:

wsl -d Ubuntu
Enter fullscreen mode Exit fullscreen mode

If you notice that in my session, the default directory is the Windows home directory. If I invoke Kiro CLI here, then this is going to be its working directory.

I can now start Kiro CLI using the following command:

kiro-cli
Enter fullscreen mode Exit fullscreen mode

And I now have access to all the features and capabilities of Kiro CLI. In this example video, I show how I can use it to create a simple Windows batch file that I run from a native Windows command shell.

After I have completed my activities, I can exit from Kiro CLI by typing "/q", and then leave my wsl session any time entering "exit"

Conclusion

In this post I shared how you can install Kiro CLI on your Windows machine using the Windows Subsystem for Linux, and showed you how you can get started.

Get started with Kiro CLI

You can try Kiro CLI for free today, by signing up for a Builder ID. Don't forget to check out the kiro.dev website that has everything you need to get started with both Kiro CLI or the Kiro IDE.

Until next time folks!

Made with 🧡 by DevRel!

Top comments (25)

Collapse
 
kowalsk profile image
kowalsk

This is great, thank you for taking the time to do this, it got me started in no time :)

Collapse
 
divyansh_kumar_1 profile image
Divyansh Kumar

Thanks for your help! Great learning from you.

Collapse
 
094459 profile image
Ricardo Sueiras AWS

Thank you!

Collapse
 
avinash_sarraf_a2856cfab8 profile image
Avinash sarraf

Hello AWS Team, I noticed a small inconsistency. The downloaded file is named kirocli.zip, but the provided unzip command is unzip kiro-cli.zip. Could you please update one of them for consistency?

Collapse
 
094459 profile image
Ricardo Sueiras AWS

Ahh thanks - I will fix this typo.

Collapse
 
homan_f46e4e307506bd8 profile image
Homan

Hi anyone can help me. I was using Amazon Q CLi fine , then once i did the upgrade, it just doesnt work anymore:

Kiro is having trouble responding right now:
0: Failed to send the request: An unknown error occurred: AccessDeniedException
1: An unknown error occurred: AccessDeniedException
2: unhandled error (AccessDeniedException)
3: service error
4: unhandled error (AccessDeniedException)
5: Error { code: "AccessDeniedException", message: "Feature is not supported", aws_request_id: "03ce23b8-4563-436e-9380-709871bd2aa9" }

Location:
crates/chat-cli/src/cli/chat/mod.rs:1176

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Collapse
 
094459 profile image
Ricardo Sueiras AWS

How are you logging into Kiro, using social login, Builder ID or Identity Centre account?

Collapse
 
094459 profile image
Ricardo Sueiras AWS

So one question. Do you use a Builder ID that you then upgraded using /subscribe to upgrade from FreeTier to Pro tier?

Collapse
 
indu_teja_360562df0fb66ae profile image
Indu Teja

Same issue, unable to use cli chat after update? anyone is using windows OS and able to connect to kiro-chat

Collapse
 
094459 profile image
Ricardo Sueiras AWS

How are you logging into Q CLI / Kiro CLI? Have you tried logging out and trying to log in?

Thread Thread
 
094459 profile image
Ricardo Sueiras AWS

Ok so a fix for this issue is being worked on and I’ll update here with news once I have it

Collapse
 
094459 profile image
Ricardo Sueiras AWS

So one question. Do you use a Builder ID that you then upgraded using /subscribe to upgrade from FreeTier to Pro tier?

Collapse
 
uhsarp_a_01eec4b65e958d90 profile image
Uhsarp A

It worked fine when I installed it yesterday.
Today when I try to open chat, it asked for login. While logging in, I get this error

q/bin$ q login
✔ Select login method · Use for Free with Builder ID
error: dispatch failure

Collapse
 
094459 profile image
Ricardo Sueiras AWS

Ok a couple of things to try. First of all, can you try "q logout" and then try and login from scratch to see if that fixes the issue. If that does not work, can you see if you are running the latest version of Q CLI, which you can find by running "q update". If you are running the latest version, then the only other thing I can think of is that it might be a service degradation issue. If you can try later and see if you get the same error and let me know.

Collapse
 
094459 profile image
Ricardo Sueiras AWS

Mmmm, I will check this out. Not seen that message before.

Collapse
 
hp85 profile image
HP-85

Great article - thank you!

The instructions in the Q CLI User Guide - Installing with a zip file - seems to work for installing on WSL in both Windows 11 x64 and arm64.

Here's an example of using Q CLI from WSL to interact with Windows:

> how do I query windows system event log for event ID 6009

> You can query the Windows System Event Log for event ID 6009 from WSL using PowerShell. Here are several approaches:
## Using Get-WinEvent (recommended)
bash
powershell.exe -Command "Get-WinEvent -FilterHashtable @{LogName='System'; ID=6009}"

 ● I will run the following shell command:
powershell.exe -Command "Get-WinEvent -FilterHashtable @{LogName='System'; ID=6009}"
 ⋮
 ↳ Purpose: Query Windows System Event Log for event ID 6009 using PowerShell Get-WinEvent
Allow this action? Use 't' to trust (always allow) this tool for the session. [y/n/t]:
> y
   ProviderName: EventLog

TimeCreated                      Id LevelDisplayName Message
-----------                      -- ---------------- -------
8/7/2025 9:41:26 AM            6009 Information      Microsoft (R) Windows (R) 10.00. 22631  Multiprocessor Free.
8/6/2025 12:13:42 PM           6009 Information      Microsoft (R) Windows (R) 10.00. 22631  Multiprocessor Free.
8/5/2025 8:07:40 AM            6009 Information      Microsoft (R) Windows (R) 10.00. 22631  Multiprocessor Free.
Enter fullscreen mode Exit fullscreen mode
Collapse
 
gluons profile image
Saran Tanpituckpong

No native Windows PowerShell support? 😢

Collapse
 
094459 profile image
Ricardo Sueiras AWS

No, although if you check out the demo video, you can see that I create powershell scripts within wsl when using Amazon Q CLI, so it is possible just not in the same terminal session. Watch this space though, as there is a native Windows installer on the roadmap, and so hopefully this will come along soon. In the meantime, as this is an open source project I am aware of a few folk who have compiled windows native binaries. Check out this repo and see if this works for you -> github.com/DiscreteTom/amazon-q-de...

Collapse
 
uhsarp_a_01eec4b65e958d90 profile image
Uhsarp A

Nice try. Wnidows defender detects a virus.

Thread Thread
 
094459 profile image
Ricardo Sueiras AWS

ahh really, ok I will make sure that I dont recommend that link to others. One colleague tried to run it and said it didnt do anything (just got back to me an hour ago). Man, need to get myself a windows machine.

Thread Thread
 
lordbarr profile image
Jacob B • Edited

I took a look at the source and it's all just done with a workflow. It checks out the repository from AWS and builds it for Windows.

All looks well, If you don't trust it I'd just build it yourself 🤷‍♂️

Just built it and tested it, works perfect thus far.

Thread Thread
 
094459 profile image
Ricardo Sueiras AWS

I will give this a go and test it on a Windows EC2 instance (dont have a Windows laptop handy)

Collapse
 
aman_a918228cafaf0ea500de profile image
Aman

Hi,
I installed Q-cli on windows using WSL but getting this error when using :

q chat

/usr/bin/qchat: CPU ISA level is lower than required

Please help if anyone knows !

Collapse
 
094459 profile image
Ricardo Sueiras AWS

What spec windows machine are you running (OS version, hardware CPU, memory?)

Collapse
 
hp85 profile image
HP-85

I got the same error on an older AMD CPU (Phenom II) running Ubuntu 24.

ir.amd.com/news-events/press-relea...