✨ Agentic chat experience in your terminal. Build applications using natural language.
git, npm, docker, and aws.brew install amazon-qgit clone https://github.com/aws/amazon-q-developer-cli-autocomplete.gitHassle-free setup:
npm run setupOr if you'd like to DIY:
<details> <summary>Manual Setup</summary> <div>For Debian/Ubuntu:
sudo apt update
sudo apt install build-essential pkg-config jq dpkg curl wget cmake clang libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev valac libibus-1.0-dev libglib2.0-dev sqlite3 libxdo-dev protobuf-compilercurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default stableFor pre-commit hooks, the following commands are required:
rustup toolchain install nightly
cargo install typos-cliFor MacOS development make sure the right targets are installed:
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwinmiseAdd mise integrations to your shell:
For zsh:
echo 'eval "$(mise activate zsh)"' >> "${ZDOTDIR-$HOME}/.zshrc"For bash:
echo 'eval "$(mise activate bash)"' >> ~/.bashrcFor fish:
echo 'mise activate fish | source' >> ~/.config/fish/config.fishInstall the Python and Node toolchains using:
mise trust
mise installRun pnpm in root directory to add pre-commit hooks:
pnpm install --ignore-scripts</div>
</details>
To compile and view changes made to q chat:
cargo run --bin chat_cliIf you are working on other q commands, just append
-- <command name>. For example, to runq login, you can runcargo run --bin chat_cli -- login
To run tests for the Q CLI crate:
cargo test -p chat_cliTo format Rust files:
cargo +nightly fmtTo run clippy:
cargo clippy --locked --workspace --color always -- -D warningsUse Q CLI to help you onboard Q CLI!
Start a q chat session:
q chatOnce inside q chat, you can supply project context by adding the codebase-summary.md file:
/context add codebase-summary.mdThis enables Q to answer onboarding questions like:
Great for speeding up your ramp-up and navigating the repo more effectively.
Several projects live here:
autocomplete - The autocomplete react appdashboard - The dashboard react appfigterm - figterm, our headless terminal/pseudoterminal thatq_cli - the q CLI, allows users to interface with Amazon Q Developer fromfig_desktop - the Rust desktop app, usestao/wryfig_input_method - The input method used to get cursorvscode - Contains the VSCode plugin neededjetbrains - Contains the VSCode pluginOther folder to be aware of
build-scripts/ - Contains all python scripts to build,crates/ - Contains all internal rust cratespackages/ - Contains all internal npm packagesproto/ -tests/ - Contain integration tests for the projectsBelow is a high level architecture of how the different components of the app and
their IPC:
See CONTRIBUTING for more information.
This repo is dual licensed under MIT and Apache 2.0 licenses.
“Amazon Web Services” and all related marks, including logos, graphic designs, and service names, are trademarks or trade dress of AWS in the U.S. and other countries. AWS’s trademarks and trade dress may not be used in connection with any product or service that is not AWS’s, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits AWS.
aws/amazon-q-developer-cli
September 23, 2024
July 7, 2025
Rust