🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
Amazon Q CLI for terminal agent chat
Amazon Q Developer CLI is a terminal app for chatting with Amazon Q while you build. The repo contains the CLI, UI, agent code, and supporting AWS client crates, plus docs for agent behavior, hooks, tools, and knowledge management.
Builders who want a terminal agent for coding help and natural-language workflows.
You can ask for help and drive app-building from your terminal instead of switching tools.
What it does
Terminal chat CLI
Lets you talk to Amazon Q from the command line through the `q` CLI.
Agent and UI crates
Separates agent behavior in `crates/agent/` from terminal UI code in `crates/chat-cli-ui/`.
Docs for agent behavior
Includes guides for default behavior, built-in tools, hooks, knowledge management, and agent file locations.
Build and release scripts
Provides `scripts/` and `build-config/` for local development, packaging, and release tasks.
How to get it
- 1Run
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rustup default stable rustup toolchain install nightly cargo install typos-cli
README
Amazon Q CLI
[!IMPORTANT] This open source project is no longer being actively maintained and will only receive critical security fixes. Amazon Q Developer CLI is now available as Kiro CLI, a closed-source product. For the latest features and updates, please use Kiro CLI. For issues with Kiro CLI, please report it here instead.
Installation
- macOS:
- DMG: Download now
- HomeBrew:
brew install --cask amazon-q
- Linux:
Contributing
Thank you so much for considering to contribute to Amazon Q.
Before getting started, see our contributing docs.
Prerequisites
- MacOS
- Xcode 13 or later
- Brew
1. Clone repo
git clone https://github.com/aws/amazon-q-developer-cli.git
2. Install the Rust toolchain using Rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default stable
rustup toolchain install nightly
cargo install typos-cli
3. Develop locally
- To compile and run:
cargo run --bin chat_cli. - To run tests:
cargo test. - To run lints:
cargo clippy. - To format rust files:
cargo +nightly fmt. - To run subcommands:
cargo run --bin chat_cli -- {subcommand}.- Login would then be:
cargo run --bin chat_cli -- login
- Login would then be:
Project Layout
chat_cli- theqCLI, allows users to interface with Amazon Q Developer from the command linescripts/- Contains ops and build related scriptscrates/- Contains all rust cratesdocs/- Contains technical documentation
Security
For security related concerns, see here.
Licensing
This repo is dual licensed under MIT and Apache 2.0 licenses.
Those licenses can be found here and here.
“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.
Files in the repo
- .cargo
- .github
- .husky
- build-config
- crates
- docs
- schemas
- scripts
- terminal-bench-test
- .gitattributes
- .gitignore
- .lintstagedrc.mjs
- .mise.toml
- .rustfmt.toml
- .typos.toml
- book.toml
- Cargo.lock
- Cargo.toml
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- Cross.toml
- deny.toml
- knowledge_beta_improvements_agents
- LICENSE.APACHE
- LICENSE.MIT
- README.md
- rust-toolchain.toml
- SECURITY.md
- typos.toml
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More tools
The best-benchmarked open-source AI memory system. And it's free.
Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io
Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.