@fredlackey/devutils 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1015 @@
1
+ # Installing Kiro
2
+
3
+ ## Overview
4
+
5
+ Kiro is an AI-powered agentic IDE developed by Amazon Web Services (AWS) that helps developers go from prototype to production using spec-driven development. Built on the Code OSS foundation (the same base as VS Code), Kiro provides intelligent coding assistance through structured specifications, agent hooks, and natural language interactions. It breaks down requirements into detailed implementation plans, generates working code, documentation, and tests, all while understanding your project context.
6
+
7
+ Kiro is available for macOS, Windows, and Linux, and also offers a command-line interface (CLI) for terminal-based workflows. While Kiro does not require an AWS account, it does require authentication through GitHub, Google, AWS Builder ID, or AWS IAM Identity Center. An active internet connection is required for all AI-powered features.
8
+
9
+ ## Dependencies
10
+
11
+ ### macOS (Homebrew)
12
+ - **Required:**
13
+ - Homebrew - Install via `NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
14
+ - **Optional:** None
15
+ - **Auto-installed:**
16
+ - Xcode Command Line Tools (automatically installed by Homebrew if not present)
17
+
18
+ ### Ubuntu (APT/Snap)
19
+ - **Required:**
20
+ - `curl` - Install via `sudo apt-get install -y curl` (usually pre-installed)
21
+ - `wget` - Install via `sudo apt-get install -y wget` (usually pre-installed)
22
+ - `unzip` - Install via `sudo apt-get install -y unzip` (for CLI installation)
23
+ - `sudo` privileges - Required for package installation
24
+ - **Optional:**
25
+ - `libfuse2` (for Ubuntu 20.04-22.04) - Install via `sudo apt-get install -y libfuse2` (only needed for AppImage/universal installation)
26
+ - `libfuse2t64` (for Ubuntu 24.04+) - Install via `sudo apt-get install -y libfuse2t64` (only needed for AppImage/universal installation)
27
+ - **Auto-installed:** None
28
+
29
+ ### Raspberry Pi OS (APT/Snap)
30
+ - **Required:**
31
+ - `curl` - Install via `sudo apt-get install -y curl` (usually pre-installed)
32
+ - `unzip` - Install via `sudo apt-get install -y unzip` (for CLI installation)
33
+ - `sudo` privileges - Required for package installation
34
+ - ARM64 architecture (aarch64) - Requires 64-bit Raspberry Pi OS; verify with `uname -m`
35
+ - **Optional:**
36
+ - `libfuse2` - Install via `sudo apt-get install -y libfuse2` (only needed for AppImage installation)
37
+ - **Auto-installed:** None
38
+
39
+ ### Amazon Linux (DNF/YUM)
40
+ - **Required:**
41
+ - `curl` - Install via `sudo dnf install -y curl` or `sudo yum install -y curl` (usually pre-installed)
42
+ - `unzip` - Install via `sudo dnf install -y unzip` (for CLI installation)
43
+ - `tar` - Install via `sudo dnf install -y tar` (for tar.gz extraction)
44
+ - `dnf` (Amazon Linux 2023, RHEL 8+, Fedora) or `yum` (Amazon Linux 2, older RHEL) - System package manager (pre-installed)
45
+ - `sudo` privileges - Required for package installation
46
+ - **Optional:**
47
+ - `fuse` - Install via `sudo dnf install -y fuse fuse-libs` (only needed for AppImage installation)
48
+ - Desktop environment - Install via `sudo dnf groupinstall -y "Server with GUI"` (Kiro IDE is a GUI application)
49
+ - **Auto-installed:** None
50
+
51
+ ### Windows (Chocolatey/winget)
52
+ - **Required:**
53
+ - `winget` - Pre-installed on Windows 10 version 1809+ and Windows 11; install from Microsoft Store via "App Installer" if missing
54
+ - **Optional:** None
55
+ - **Auto-installed:** None
56
+
57
+ ### Git Bash (Manual/Portable)
58
+ - **Required:**
59
+ - `winget.exe` - Pre-installed on Windows 10 version 1809+ and Windows 11; accessible from Git Bash as `winget.exe`
60
+ - Git for Windows - Download from https://git-scm.com/downloads/win (provides Git Bash environment)
61
+ - **Optional:** None
62
+ - **Auto-installed:** None
63
+
64
+ ## Prerequisites
65
+
66
+ Before installing Kiro on any platform, ensure:
67
+
68
+ 1. **Internet connectivity** - Required for downloading, authentication, and all AI-powered features
69
+ 2. **Sufficient disk space** - At least 500 MB for the IDE, additional space for CLI
70
+ 3. **Minimum RAM** - 4 GB RAM minimum, 8 GB recommended
71
+ 4. **Authentication account** - GitHub, Google, AWS Builder ID, or AWS IAM Identity Center account required for sign-in
72
+
73
+ **Note**: You do NOT need an AWS account to use Kiro. You can sign in with GitHub or Google.
74
+
75
+ ## Platform-Specific Installation
76
+
77
+ ### macOS (Homebrew)
78
+
79
+ #### Prerequisites
80
+
81
+ - macOS 11 (Big Sur) or later
82
+ - Homebrew package manager installed
83
+ - Terminal access
84
+ - Apple Silicon (M1/M2/M3/M4) or Intel processor
85
+
86
+ Homebrew supports both Apple Silicon and Intel Macs. If Homebrew is not installed, install it first:
87
+
88
+ ```bash
89
+ NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
90
+ ```
91
+
92
+ #### Installation Steps
93
+
94
+ **Install Kiro IDE:**
95
+
96
+ Run the following command to install Kiro via Homebrew:
97
+
98
+ ```bash
99
+ brew install --cask --quiet kiro
100
+ ```
101
+
102
+ The `--cask` flag indicates this is a macOS application (not a command-line formula), and `--quiet` suppresses non-essential output for automation compatibility.
103
+
104
+ After installation, Kiro is available in `/Applications/Kiro.app` and can be launched from Spotlight or the Applications folder.
105
+
106
+ **Install Kiro CLI (Optional):**
107
+
108
+ The Kiro CLI provides terminal-based AI assistance. Install it separately:
109
+
110
+ ```bash
111
+ brew install --cask --quiet kiro-cli
112
+ ```
113
+
114
+ Alternatively, use the official installation script:
115
+
116
+ ```bash
117
+ curl -fsSL https://cli.kiro.dev/install | bash
118
+ ```
119
+
120
+ #### Verification
121
+
122
+ Confirm the IDE installation succeeded by launching the application:
123
+
124
+ ```bash
125
+ open -a Kiro
126
+ ```
127
+
128
+ Alternatively, verify the application exists:
129
+
130
+ ```bash
131
+ ls /Applications/Kiro.app
132
+ ```
133
+
134
+ Expected output:
135
+
136
+ ```
137
+ /Applications/Kiro.app
138
+ ```
139
+
140
+ Verify the CLI installation (if installed):
141
+
142
+ ```bash
143
+ kiro-cli version
144
+ ```
145
+
146
+ Expected output (version numbers may vary):
147
+
148
+ ```
149
+ Kiro CLI 1.24.0
150
+ ```
151
+
152
+ #### Troubleshooting
153
+
154
+ **Problem**: `brew: command not found`
155
+
156
+ **Solution**: Homebrew is not installed or not in PATH. Install Homebrew or add it to your PATH:
157
+
158
+ ```bash
159
+ eval "$(/opt/homebrew/bin/brew shellenv)"
160
+ ```
161
+
162
+ For Intel Macs, use:
163
+
164
+ ```bash
165
+ eval "$(/usr/local/bin/brew shellenv)"
166
+ ```
167
+
168
+ **Problem**: "Kiro.app" is damaged and can't be opened or security warning appears
169
+
170
+ **Solution**: Clear the quarantine attribute and approve in System Settings:
171
+
172
+ ```bash
173
+ sudo xattr -d com.apple.quarantine /Applications/Kiro.app
174
+ ```
175
+
176
+ Then go to System Settings > Privacy & Security and approve Kiro.
177
+
178
+ **Problem**: Installation fails with "Cask 'kiro' is unavailable"
179
+
180
+ **Solution**: Update Homebrew to get the latest cask definitions:
181
+
182
+ ```bash
183
+ brew update
184
+ brew install --cask --quiet kiro
185
+ ```
186
+
187
+ **Problem**: `kiro-cli: command not found` after installation
188
+
189
+ **Solution**: The CLI may not be in your PATH. Add it manually:
190
+
191
+ ```bash
192
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
193
+ source ~/.zshrc
194
+ ```
195
+
196
+ For Bash users, modify `~/.bash_profile` instead.
197
+
198
+ ---
199
+
200
+ ### Ubuntu/Debian (APT)
201
+
202
+ #### Prerequisites
203
+
204
+ - Ubuntu 24.04 or later, or Debian 12 or later (64-bit x86_64)
205
+ - sudo privileges
206
+ - Active internet connection
207
+
208
+ **Note**: The official Kiro .deb package requires Ubuntu 24.04+ or equivalent with glibc 2.34+. For older systems, use the universal tar.gz installation method.
209
+
210
+ #### Installation Steps
211
+
212
+ **Step 1: Install prerequisites**
213
+
214
+ ```bash
215
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
216
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y wget curl unzip
217
+ ```
218
+
219
+ **Step 2: Download and install the .deb package**
220
+
221
+ ```bash
222
+ wget -q https://desktop-release.q.us-east-1.amazonaws.com/latest/kiro-cli.deb -O /tmp/kiro-cli.deb
223
+ sudo DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/kiro-cli.deb
224
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -f -y
225
+ rm -f /tmp/kiro-cli.deb
226
+ ```
227
+
228
+ This installs the Kiro CLI. For the full Kiro IDE, download and install from the official website:
229
+
230
+ **Step 3: Install Kiro IDE (x86_64)**
231
+
232
+ ```bash
233
+ curl -fsSL "https://desktop-release.q.us-east-1.amazonaws.com/latest/linux-x64/Kiro.tar.gz" -o /tmp/kiro.tar.gz
234
+ sudo mkdir -p /opt/kiro
235
+ sudo tar -xzf /tmp/kiro.tar.gz -C /opt/kiro --strip-components=1
236
+ sudo ln -sf /opt/kiro/kiro /usr/local/bin/kiro
237
+ rm -f /tmp/kiro.tar.gz
238
+ ```
239
+
240
+ **Step 4: Create a desktop entry (optional)**
241
+
242
+ ```bash
243
+ cat << 'EOF' | sudo tee /usr/share/applications/kiro.desktop > /dev/null
244
+ [Desktop Entry]
245
+ Name=Kiro
246
+ Comment=AI-powered IDE from AWS
247
+ Exec=/opt/kiro/kiro %F
248
+ Icon=/opt/kiro/resources/app/resources/linux/code.png
249
+ Type=Application
250
+ Categories=Development;IDE;
251
+ StartupNotify=true
252
+ StartupWMClass=Kiro
253
+ EOF
254
+ ```
255
+
256
+ #### Verification
257
+
258
+ Verify the CLI installation:
259
+
260
+ ```bash
261
+ kiro-cli version
262
+ ```
263
+
264
+ Verify the IDE installation:
265
+
266
+ ```bash
267
+ /opt/kiro/kiro --version
268
+ ```
269
+
270
+ Or if you created the symlink:
271
+
272
+ ```bash
273
+ kiro --version
274
+ ```
275
+
276
+ Launch Kiro:
277
+
278
+ ```bash
279
+ kiro
280
+ ```
281
+
282
+ #### Troubleshooting
283
+
284
+ **Problem**: `dpkg: error: dependency problems prevent configuration`
285
+
286
+ **Solution**: Run apt-get to fix dependencies:
287
+
288
+ ```bash
289
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -f -y
290
+ ```
291
+
292
+ **Problem**: Sandbox errors when launching Kiro
293
+
294
+ **Solution**: In trusted environments, bypass sandbox restrictions:
295
+
296
+ ```bash
297
+ /opt/kiro/kiro --no-sandbox
298
+ ```
299
+
300
+ **Note**: Using `--no-sandbox` reduces security. Only use this in trusted environments.
301
+
302
+ **Problem**: "libc.so.6: version GLIBC_2.34 not found"
303
+
304
+ **Solution**: Your system has an older glibc version. Use the musl build for the CLI:
305
+
306
+ ```bash
307
+ curl --proto '=https' --tlsv1.2 -sSf 'https://desktop-release.q.us-east-1.amazonaws.com/latest/kirocli-x86_64-linux-musl.zip' -o /tmp/kirocli.zip
308
+ unzip -o /tmp/kirocli.zip -d /tmp/kirocli
309
+ /tmp/kirocli/install.sh
310
+ rm -rf /tmp/kirocli /tmp/kirocli.zip
311
+ ```
312
+
313
+ **Problem**: Kiro does not appear in application menu
314
+
315
+ **Solution**: Refresh the desktop database:
316
+
317
+ ```bash
318
+ sudo update-desktop-database
319
+ ```
320
+
321
+ ---
322
+
323
+ ### Raspberry Pi OS (APT)
324
+
325
+ #### Prerequisites
326
+
327
+ - Raspberry Pi OS (64-bit) - ARM64/aarch64 architecture **required**
328
+ - Raspberry Pi 4 or later with 4 GB or more RAM recommended
329
+ - sudo privileges
330
+ - Active internet connection
331
+
332
+ **Critical Architecture Requirement**: Kiro requires a 64-bit operating system. Verify your architecture:
333
+
334
+ ```bash
335
+ uname -m
336
+ ```
337
+
338
+ This must output `aarch64`. If it outputs `armv7l`, you are running 32-bit Raspberry Pi OS and must install the 64-bit version from the Raspberry Pi Imager.
339
+
340
+ Check your glibc version:
341
+
342
+ ```bash
343
+ ldd --version | head -1
344
+ ```
345
+
346
+ If the version is 2.34 or newer, use the standard ARM64 build. If older, use the musl build.
347
+
348
+ #### Installation Steps
349
+
350
+ **Step 1: Install prerequisites**
351
+
352
+ ```bash
353
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
354
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y curl unzip nodejs git
355
+ ```
356
+
357
+ **Step 2: Install Kiro CLI (ARM64 musl build - recommended for Raspberry Pi)**
358
+
359
+ The musl build provides better compatibility with Raspberry Pi's environment:
360
+
361
+ ```bash
362
+ curl --proto '=https' --tlsv1.2 -sSf 'https://desktop-release.q.us-east-1.amazonaws.com/latest/kirocli-aarch64-linux-musl.zip' -o /tmp/kirocli.zip
363
+ unzip -o /tmp/kirocli.zip -d /tmp/kirocli
364
+ /tmp/kirocli/install.sh
365
+ rm -rf /tmp/kirocli /tmp/kirocli.zip
366
+ ```
367
+
368
+ **Step 3: Add CLI to PATH**
369
+
370
+ ```bash
371
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
372
+ source ~/.bashrc
373
+ ```
374
+
375
+ **Note**: The full Kiro IDE (graphical application) may have limited support on Raspberry Pi due to resource constraints and ARM architecture. The CLI provides full AI-powered terminal functionality.
376
+
377
+ #### Verification
378
+
379
+ Verify the CLI installation:
380
+
381
+ ```bash
382
+ kiro-cli version
383
+ ```
384
+
385
+ Expected output (version numbers may vary):
386
+
387
+ ```
388
+ Kiro CLI 1.24.0
389
+ ```
390
+
391
+ Test the CLI:
392
+
393
+ ```bash
394
+ kiro-cli doctor
395
+ ```
396
+
397
+ This command diagnoses and fixes common installation issues.
398
+
399
+ #### Troubleshooting
400
+
401
+ **Problem**: "Illegal instruction (SIGILL)" error when running Kiro CLI
402
+
403
+ **Solution**: The standard build is incompatible with your Pi. Use the musl build as shown in the installation steps above.
404
+
405
+ **Problem**: `kiro-cli: command not found` after installation
406
+
407
+ **Solution**: Ensure the PATH is updated:
408
+
409
+ ```bash
410
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
411
+ source ~/.bashrc
412
+ ```
413
+
414
+ Verify the binary exists:
415
+
416
+ ```bash
417
+ ls ~/.local/bin/kiro-cli
418
+ ```
419
+
420
+ **Problem**: Authentication fails in headless environment
421
+
422
+ **Solution**: The CLI requires browser-based authentication on first use. Copy the authentication URL displayed in the terminal, open it in a browser on another device, complete authentication, and return to the terminal.
423
+
424
+ **Problem**: Slow performance or high memory usage
425
+
426
+ **Solution**: Raspberry Pi has limited resources. Close other applications and consider increasing swap:
427
+
428
+ ```bash
429
+ sudo dphys-swapfile swapoff
430
+ sudo sed -i 's/CONF_SWAPSIZE=.*/CONF_SWAPSIZE=2048/' /etc/dphys-swapfile
431
+ sudo dphys-swapfile setup
432
+ sudo dphys-swapfile swapon
433
+ ```
434
+
435
+ ---
436
+
437
+ ### Amazon Linux/RHEL (DNF/YUM)
438
+
439
+ #### Prerequisites
440
+
441
+ - Amazon Linux 2023 (AL2023), Amazon Linux 2 (AL2), RHEL 8+, Fedora, or CentOS Stream 8+
442
+ - sudo privileges
443
+ - Active internet connection
444
+ - Desktop environment (if using GUI; Kiro IDE is a graphical application)
445
+
446
+ **Note**: Amazon Linux 2023 uses DNF as the package manager. Amazon Linux 2 uses YUM. This guide uses DNF commands; replace `dnf` with `yum` for AL2.
447
+
448
+ #### Installation Steps
449
+
450
+ **Step 1: Install prerequisites**
451
+
452
+ For Amazon Linux 2023 and RHEL 8+ (DNF):
453
+
454
+ ```bash
455
+ sudo dnf install -y curl unzip tar
456
+ ```
457
+
458
+ For Amazon Linux 2 (YUM):
459
+
460
+ ```bash
461
+ sudo yum install -y curl unzip tar
462
+ ```
463
+
464
+ **Step 2: Install Kiro CLI (x86_64)**
465
+
466
+ ```bash
467
+ curl --proto '=https' --tlsv1.2 -sSf 'https://desktop-release.q.us-east-1.amazonaws.com/latest/kirocli-x86_64-linux.zip' -o /tmp/kirocli.zip
468
+ unzip -o /tmp/kirocli.zip -d /tmp/kirocli
469
+ /tmp/kirocli/install.sh
470
+ rm -rf /tmp/kirocli /tmp/kirocli.zip
471
+ ```
472
+
473
+ For ARM64 systems (AWS Graviton):
474
+
475
+ ```bash
476
+ curl --proto '=https' --tlsv1.2 -sSf 'https://desktop-release.q.us-east-1.amazonaws.com/latest/kirocli-aarch64-linux.zip' -o /tmp/kirocli.zip
477
+ unzip -o /tmp/kirocli.zip -d /tmp/kirocli
478
+ /tmp/kirocli/install.sh
479
+ rm -rf /tmp/kirocli /tmp/kirocli.zip
480
+ ```
481
+
482
+ **Step 3: Add CLI to PATH**
483
+
484
+ ```bash
485
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
486
+ source ~/.bashrc
487
+ ```
488
+
489
+ **Step 4: Install Kiro IDE (optional, for desktop environments)**
490
+
491
+ Download and extract the universal Linux build:
492
+
493
+ ```bash
494
+ curl -fsSL "https://desktop-release.q.us-east-1.amazonaws.com/latest/linux-x64/Kiro.tar.gz" -o /tmp/kiro.tar.gz
495
+ sudo mkdir -p /opt/kiro
496
+ sudo tar -xzf /tmp/kiro.tar.gz -C /opt/kiro --strip-components=1
497
+ sudo ln -sf /opt/kiro/kiro /usr/local/bin/kiro
498
+ rm -f /tmp/kiro.tar.gz
499
+ ```
500
+
501
+ **Note**: There is currently no official RPM/DNF/YUM repository for Kiro IDE. This is an open feature request.
502
+
503
+ #### Verification
504
+
505
+ Verify the CLI installation:
506
+
507
+ ```bash
508
+ kiro-cli version
509
+ ```
510
+
511
+ Verify the IDE installation (if installed):
512
+
513
+ ```bash
514
+ kiro --version
515
+ ```
516
+
517
+ Run diagnostics:
518
+
519
+ ```bash
520
+ kiro-cli doctor
521
+ ```
522
+
523
+ #### Troubleshooting
524
+
525
+ **Problem**: No graphical display available for IDE
526
+
527
+ **Solution**: Kiro IDE is a GUI application and requires a desktop environment. For headless servers, use the Kiro CLI for terminal-based AI assistance, or use X11 forwarding:
528
+
529
+ ```bash
530
+ ssh -X user@server
531
+ kiro
532
+ ```
533
+
534
+ Or install a desktop environment:
535
+
536
+ ```bash
537
+ sudo dnf groupinstall -y "Server with GUI"
538
+ ```
539
+
540
+ **Problem**: "libc.so.6: version GLIBC_2.34 not found"
541
+
542
+ **Solution**: Use the musl build for systems with older glibc:
543
+
544
+ ```bash
545
+ curl --proto '=https' --tlsv1.2 -sSf 'https://desktop-release.q.us-east-1.amazonaws.com/latest/kirocli-x86_64-linux-musl.zip' -o /tmp/kirocli.zip
546
+ unzip -o /tmp/kirocli.zip -d /tmp/kirocli
547
+ /tmp/kirocli/install.sh
548
+ rm -rf /tmp/kirocli /tmp/kirocli.zip
549
+ ```
550
+
551
+ **Problem**: SELinux blocking execution
552
+
553
+ **Solution**: Check the audit log for SELinux denials:
554
+
555
+ ```bash
556
+ sudo ausearch -m avc -ts recent
557
+ ```
558
+
559
+ For testing, temporarily set SELinux to permissive mode:
560
+
561
+ ```bash
562
+ sudo setenforce 0
563
+ ```
564
+
565
+ **Note**: This is temporary. For production, create a proper SELinux policy.
566
+
567
+ ---
568
+
569
+ ### Windows (winget)
570
+
571
+ #### Prerequisites
572
+
573
+ - Windows 10 version 1809 or later, or Windows 11
574
+ - winget package manager (pre-installed on Windows 10 1809+ and Windows 11)
575
+ - Administrator privileges recommended
576
+ - Active internet connection
577
+
578
+ #### Installation Steps
579
+
580
+ Run the following command in an Administrator PowerShell or Command Prompt:
581
+
582
+ ```powershell
583
+ winget install --id Amazon.Kiro --silent --accept-package-agreements --accept-source-agreements
584
+ ```
585
+
586
+ This command:
587
+ - `--id Amazon.Kiro` - Specifies the Kiro package from Amazon
588
+ - `--silent` - Runs without user prompts
589
+ - `--accept-package-agreements` - Automatically accepts package license agreements
590
+ - `--accept-source-agreements` - Automatically accepts source repository agreements
591
+
592
+ After installation, close and reopen your terminal for PATH updates to take effect.
593
+
594
+ #### Verification
595
+
596
+ Open a new PowerShell or Command Prompt window, then verify the installation:
597
+
598
+ ```powershell
599
+ winget list --id Amazon.Kiro
600
+ ```
601
+
602
+ Or launch Kiro:
603
+
604
+ ```powershell
605
+ kiro
606
+ ```
607
+
608
+ Alternatively, search for "Kiro" in the Start Menu.
609
+
610
+ #### Troubleshooting
611
+
612
+ **Problem**: `winget: The term 'winget' is not recognized`
613
+
614
+ **Solution**: winget may not be installed or PATH may not be updated. Install App Installer from the Microsoft Store:
615
+
616
+ ```powershell
617
+ start ms-windows-store://pdp/?productid=9NBLGGH4NNS1
618
+ ```
619
+
620
+ After installation, open a new terminal window.
621
+
622
+ **Problem**: Installation fails with "Administrator privileges required"
623
+
624
+ **Solution**: Right-click PowerShell or Command Prompt and select "Run as administrator", then retry the installation command.
625
+
626
+ **Problem**: Windows Defender SmartScreen blocks the installer
627
+
628
+ **Solution**: Kiro is a legitimate application from Amazon. Click "More info" and then "Run anyway". For enterprise environments, contact your IT administrator to whitelist the Kiro installer.
629
+
630
+ **Problem**: "Windows protected your PC" message
631
+
632
+ **Solution**: Click "More info" and then "Run anyway". Alternatively, temporarily disable Windows Defender SmartScreen during installation.
633
+
634
+ **Problem**: Auto-updates disabled when running as administrator
635
+
636
+ **Solution**: Kiro auto-updates may be disabled when always running as administrator. To fix:
637
+
638
+ 1. Right-click the Kiro icon
639
+ 2. Select Properties
640
+ 3. Go to the Compatibility tab
641
+ 4. Uncheck "Run this program as an administrator"
642
+ 5. Apply changes
643
+
644
+ ---
645
+
646
+ ### WSL (Ubuntu)
647
+
648
+ #### Prerequisites
649
+
650
+ - Windows 10 version 2004 or later, or Windows 11
651
+ - Windows Subsystem for Linux installed with Ubuntu distribution
652
+ - WSL 2 recommended for best performance
653
+ - Active internet connection
654
+
655
+ **Recommended Approach**: Install Kiro IDE on Windows and use its remote development capabilities to connect to your WSL environment, similar to VS Code's Remote-WSL pattern.
656
+
657
+ Verify WSL is installed and running Ubuntu:
658
+
659
+ ```powershell
660
+ wsl --list --verbose
661
+ ```
662
+
663
+ #### Installation Steps
664
+
665
+ **Option 1: Install Kiro on Windows (Recommended)**
666
+
667
+ From PowerShell (as Administrator):
668
+
669
+ ```powershell
670
+ winget install --id Amazon.Kiro --silent --accept-package-agreements --accept-source-agreements
671
+ ```
672
+
673
+ Then launch Kiro from Windows and connect to your WSL environment through Kiro's remote features.
674
+
675
+ **Option 2: Install Kiro CLI in WSL**
676
+
677
+ From within WSL Ubuntu, install the CLI for terminal-based AI assistance:
678
+
679
+ ```bash
680
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
681
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y curl unzip
682
+ curl -fsSL https://cli.kiro.dev/install | bash
683
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
684
+ source ~/.bashrc
685
+ ```
686
+
687
+ #### Verification
688
+
689
+ For Windows installation, launch Kiro from the Start Menu.
690
+
691
+ For WSL CLI installation:
692
+
693
+ ```bash
694
+ kiro-cli version
695
+ ```
696
+
697
+ Test the CLI:
698
+
699
+ ```bash
700
+ kiro-cli doctor
701
+ ```
702
+
703
+ #### Troubleshooting
704
+
705
+ **Problem**: Cannot connect to WSL from Kiro
706
+
707
+ **Solution**: Ensure WSL 2 is installed and your distribution is running:
708
+
709
+ ```powershell
710
+ wsl --set-default-version 2
711
+ wsl --install -d Ubuntu
712
+ ```
713
+
714
+ Restart WSL:
715
+
716
+ ```powershell
717
+ wsl --shutdown
718
+ wsl
719
+ ```
720
+
721
+ **Problem**: `kiro-cli: command not found` in WSL
722
+
723
+ **Solution**: Ensure the PATH includes the CLI installation directory:
724
+
725
+ ```bash
726
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
727
+ source ~/.bashrc
728
+ ```
729
+
730
+ **Problem**: Authentication fails in WSL
731
+
732
+ **Solution**: The CLI requires browser-based authentication. It will display a URL - copy it and open in a Windows browser to complete authentication.
733
+
734
+ ---
735
+
736
+ ### Git Bash (Windows)
737
+
738
+ #### Prerequisites
739
+
740
+ - Windows 10 or later
741
+ - Git for Windows installed (provides Git Bash)
742
+ - PowerShell available (for initial installation)
743
+
744
+ Git Bash provides a Unix-compatible environment on Windows. Since Kiro is a Windows application, it is installed on Windows and accessible from Git Bash.
745
+
746
+ Download Git for Windows from https://git-scm.com/downloads/win if not already installed.
747
+
748
+ #### Installation Steps
749
+
750
+ Git Bash can execute Windows commands, so use winget from within Git Bash:
751
+
752
+ ```bash
753
+ winget.exe install --id Amazon.Kiro --silent --accept-package-agreements --accept-source-agreements
754
+ ```
755
+
756
+ **Alternative: Use PowerShell from Git Bash**
757
+
758
+ ```bash
759
+ powershell.exe -Command "winget install --id Amazon.Kiro --silent --accept-package-agreements --accept-source-agreements"
760
+ ```
761
+
762
+ After installation, close and reopen Git Bash for PATH updates to take effect.
763
+
764
+ #### Verification
765
+
766
+ Open a new Git Bash window and run:
767
+
768
+ ```bash
769
+ kiro --version
770
+ ```
771
+
772
+ Or launch Kiro:
773
+
774
+ ```bash
775
+ kiro
776
+ ```
777
+
778
+ If the kiro command is not available, launch via Windows:
779
+
780
+ ```bash
781
+ cmd.exe /c start "" "Kiro"
782
+ ```
783
+
784
+ #### Troubleshooting
785
+
786
+ **Problem**: `winget.exe: command not found`
787
+
788
+ **Solution**: Winget may not be in the Git Bash PATH. Use the full path:
789
+
790
+ ```bash
791
+ "/c/Users/$USER/AppData/Local/Microsoft/WindowsApps/winget.exe" install --id Amazon.Kiro --silent --accept-package-agreements --accept-source-agreements
792
+ ```
793
+
794
+ **Problem**: `kiro: command not found` after installation
795
+
796
+ **Solution**: The PATH in Git Bash may not include the Kiro binary. Add it manually:
797
+
798
+ ```bash
799
+ echo 'export PATH="$PATH:/c/Users/$USER/AppData/Local/Programs/kiro"' >> ~/.bashrc
800
+ source ~/.bashrc
801
+ ```
802
+
803
+ **Problem**: Cannot launch Kiro from Git Bash
804
+
805
+ **Solution**: Use the Windows `start` command through cmd:
806
+
807
+ ```bash
808
+ cmd.exe /c start "" "Kiro"
809
+ ```
810
+
811
+ ---
812
+
813
+ ## Post-Installation Configuration
814
+
815
+ ### First-Time Setup
816
+
817
+ After installing and launching Kiro on any platform:
818
+
819
+ 1. **Sign in** - Kiro requires authentication. Choose from GitHub, Google, AWS Builder ID, or AWS IAM Identity Center
820
+ 2. **Import VS Code Settings (Optional)** - Kiro prompts you to import extensions, themes, keybindings, and settings from VS Code if detected
821
+ 3. **Select Theme** - Choose your preferred light or dark theme
822
+ 4. **Enable Shell Integration** - Allow Kiro to set up shell integration, enabling the agent to execute commands on your behalf
823
+ 5. **Install Shell Command** - Use the Command Palette (`Cmd+Shift+P` on macOS, `Ctrl+Shift+P` on Windows/Linux) and run "Shell Command: Install 'kiro' command in PATH"
824
+
825
+ ### Understanding Kiro Features
826
+
827
+ Kiro provides several unique features:
828
+
829
+ - **Specs** - Plan and build features using structured specifications that break down requirements into detailed implementation plans
830
+ - **Hooks** - Automate repetitive tasks with intelligent triggers that respond to file changes and development events
831
+ - **Agentic Chat** - Build features through natural conversation with Kiro that understands your project context
832
+ - **Steering** - Guide Kiro's behavior with custom rules and project-specific context through markdown files
833
+ - **MCP Servers** - Connect external tools and data sources through the Model Context Protocol
834
+
835
+ ### CLI Configuration
836
+
837
+ The Kiro CLI provides additional commands:
838
+
839
+ ```bash
840
+ # View all available commands
841
+ kiro-cli --help
842
+
843
+ # Diagnose installation issues
844
+ kiro-cli doctor
845
+
846
+ # Check authentication status
847
+ kiro-cli whoami
848
+
849
+ # Update to latest version
850
+ kiro-cli update
851
+
852
+ # Start interactive chat
853
+ kiro-cli chat
854
+
855
+ # Translate natural language to shell commands
856
+ kiro-cli translate
857
+ ```
858
+
859
+ ### Configuring MCP Servers
860
+
861
+ Kiro supports Model Context Protocol (MCP) servers for extended functionality. Manage MCP servers via the CLI:
862
+
863
+ ```bash
864
+ # List configured MCP servers
865
+ kiro-cli mcp list
866
+
867
+ # Add an MCP server
868
+ kiro-cli mcp add
869
+
870
+ # Check MCP server status
871
+ kiro-cli mcp status
872
+ ```
873
+
874
+ ---
875
+
876
+ ## Common Issues
877
+
878
+ ### Issue: AI Features Not Working
879
+
880
+ **Symptoms**: AI suggestions do not appear, or AI interactions fail.
881
+
882
+ **Solution**:
883
+ 1. Ensure you are signed in to Kiro (`kiro-cli whoami`)
884
+ 2. Check your internet connection
885
+ 3. Verify your subscription status (some features may have usage limits)
886
+ 4. Run diagnostics: `kiro-cli doctor`
887
+
888
+ ### Issue: Browser Redirect Fails During Authentication
889
+
890
+ **Symptoms**: Authentication does not complete after signing in via browser.
891
+
892
+ **Solution for Windows**:
893
+ 1. Open Command Prompt as administrator
894
+ 2. Run Kiro with logging: `kiro --enable-logging`
895
+ 3. Check logs for access denied errors
896
+ 4. Verify user has administrator permissions
897
+
898
+ **Solution for macOS**:
899
+ 1. Open Kiro and access Help > Toggle Developer Tools
900
+ 2. Check Console tab for error messages
901
+ 3. Verify `ioreg` command exists in PATH (typically at `/usr/sbin/ioreg`)
902
+
903
+ ### Issue: Shell Integration Not Working
904
+
905
+ **Symptoms**: Agent cannot execute commands in the terminal.
906
+
907
+ **Solution**:
908
+ 1. Update Kiro via Command Palette (`Cmd+Shift+P` / `Ctrl+Shift+P`) > "Check for Updates"
909
+ 2. Enable integration: Command Palette > "Enable Shell Integration"
910
+ 3. Quit and reopen Kiro
911
+
912
+ For manual configuration, add the appropriate lines to your shell config:
913
+
914
+ **Zsh (`~/.zshrc`)**:
915
+
916
+ ```bash
917
+ [[ "$TERM_PROGRAM" == "kiro" ]] && . "/path/to/kiro/shell-integration.zsh"
918
+ ```
919
+
920
+ **Bash (`~/.bashrc`)**:
921
+
922
+ ```bash
923
+ [[ "$TERM_PROGRAM" == "kiro" ]] && . "/path/to/kiro/shell-integration.bash"
924
+ ```
925
+
926
+ ### Issue: Identity Center Session Timeouts
927
+
928
+ **Symptoms**: Session expires and requires re-authentication frequently.
929
+
930
+ **Solution**: The default session duration is 8 hours. Administrators can configure longer timeouts via AWS documentation. Alternatively, use GitHub or Google sign-in for longer sessions.
931
+
932
+ ### Issue: High Memory Usage
933
+
934
+ **Symptoms**: Kiro consumes excessive system resources.
935
+
936
+ **Solution**:
937
+ 1. Close unused editor tabs
938
+ 2. Disable unused extensions
939
+ 3. Reduce the number of open projects
940
+ 4. Restart Kiro to clear cached data
941
+
942
+ ---
943
+
944
+ ## Uninstallation
945
+
946
+ ### macOS
947
+
948
+ ```bash
949
+ brew uninstall --cask kiro
950
+ brew uninstall --cask kiro-cli
951
+ rm -rf ~/Library/Application\ Support/Kiro
952
+ rm -rf ~/Library/Caches/Kiro
953
+ rm -rf ~/.local/bin/kiro-cli
954
+ ```
955
+
956
+ ### Ubuntu/Debian
957
+
958
+ For CLI installation:
959
+
960
+ ```bash
961
+ rm -rf ~/.local/bin/kiro-cli
962
+ rm -rf ~/.kiro
963
+ ```
964
+
965
+ For IDE installation:
966
+
967
+ ```bash
968
+ sudo rm -rf /opt/kiro
969
+ sudo rm -f /usr/local/bin/kiro
970
+ sudo rm -f /usr/share/applications/kiro.desktop
971
+ rm -rf ~/.config/Kiro
972
+ rm -rf ~/.cache/Kiro
973
+ ```
974
+
975
+ ### Amazon Linux/RHEL
976
+
977
+ ```bash
978
+ rm -rf ~/.local/bin/kiro-cli
979
+ rm -rf ~/.kiro
980
+ sudo rm -rf /opt/kiro
981
+ sudo rm -f /usr/local/bin/kiro
982
+ rm -rf ~/.config/Kiro
983
+ ```
984
+
985
+ ### Windows
986
+
987
+ Using winget:
988
+
989
+ ```powershell
990
+ winget uninstall --id Amazon.Kiro --silent
991
+ ```
992
+
993
+ Remove user data (PowerShell):
994
+
995
+ ```powershell
996
+ Remove-Item -Path "$env:APPDATA\Kiro" -Recurse -Force -ErrorAction SilentlyContinue
997
+ Remove-Item -Path "$env:LOCALAPPDATA\Kiro" -Recurse -Force -ErrorAction SilentlyContinue
998
+ ```
999
+
1000
+ ---
1001
+
1002
+ ## References
1003
+
1004
+ - [Kiro Official Website](https://kiro.dev/)
1005
+ - [Kiro Downloads Page](https://kiro.dev/downloads/)
1006
+ - [Kiro IDE Installation Documentation](https://kiro.dev/docs/getting-started/installation/)
1007
+ - [Kiro CLI Installation Documentation](https://kiro.dev/docs/cli/installation/)
1008
+ - [Kiro CLI Commands Reference](https://kiro.dev/docs/cli/reference/cli-commands/)
1009
+ - [Kiro Troubleshooting Guide](https://kiro.dev/docs/troubleshooting/)
1010
+ - [Kiro Homebrew Cask (IDE)](https://formulae.brew.sh/cask/kiro)
1011
+ - [Kiro Homebrew Cask (CLI)](https://formulae.brew.sh/cask/kiro-cli)
1012
+ - [Kiro winget Package](https://winget.ragerworks.com/package/Amazon.Kiro)
1013
+ - [Kiro GitHub Repository](https://github.com/kirodotdev/Kiro)
1014
+ - [Running Kiro CLI on Raspberry Pi](https://dev.to/kirodotdev/running-kiro-cli-from-a-raspberry-pi-400-4d2h)
1015
+ - [Kiro ARM64 Linux Installation Guide](https://learn.arm.com/install-guides/kiro-cli/)