Cover image

✨代理AI在您的终端中使用自然语言构建应用程序的体验

3 years

Works with Finder

440

Github Watches

76

Github Forks

440

Github Stars

Amazon Q

Amazon Q CLI brings IDE-style autocomplete and agentic capabilities to your terminal.

GitHub commit activity GitHub open issues

Rust Test Typos Test Typescript Test

Amazon Q CLI Features

😍 Features

  • 🔮 Auto Completion: IDE-style completions to hundreds of popular CLIs like git, npm, docker, and aws.
  • 💬 Natural Language Chat: Interact with your terminal using natural language to ask questions, debug issues, or explore the codebase.
  • 🧠 Contextual Awareness: Integrates context from your local development environment, so answers are tailored to your specific code and setup.
  • 🤖 Agentic Execution: Let Amazon Q take action: generate code, edit files, automate Git workflows, resolve merge conflicts, and more — with your permission.

⚡️ Installation

🚀 Start Contributing

Prerequisites

  • MacOS
    • Xcode 13 or later
    • Brew

1. Clone repo

git clone https://github.com/aws/amazon-q-for-command-line.git

2. Setup

Hassle-free setup:

npm run setup

Or if you'd like to DIY:

Manual Setup

1. Install platform dependencies

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-compiler

2. Install Rust toolchain using Rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default stable

For pre-commit hooks, the following commands are required:

rustup toolchain install nightly
cargo install typos-cli

For MacOS development make sure the right targets are installed:

rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin

3. Setup Python and Node using mise

Add mise integrations to your shell:

For zsh:

echo 'eval "$(mise activate zsh)"' >> "${ZDOTDIR-$HOME}/.zshrc"

For bash:

echo 'eval "$(mise activate bash)"' >> ~/.bashrc

For fish:

echo 'mise activate fish | source' >> ~/.config/fish/config.fish

Install the Python and Node toolchains using:

mise trust
mise install

4. Setup precommit hooks

Run pnpm in root directory to add pre-commit hooks:

pnpm install --ignore-scripts

3. Start Local Development

To compile and view changes made to q chat:

cargo run --bin q_cli -- chat

If you are working on other q commands, just replace chat with the command name

To run tests for the Q CLI crate:

cargo test -p q_cli

To format Rust files:

cargo +nightly fmt

To run clippy:

cargo clippy --locked --workspace --color always -- -D warnings

💡 Quick Tip for Onboarding

Use Q CLI to help you onboard Q CLI!

Start a q chat session:

q chat

Once inside q chat, you can supply project context by adding the codebase-summary.md file:

/context add codebase-summary.md

This enables Q to answer onboarding questions like:

  • “What does this crate do?”

  • “Where is X implemented?”

  • “How do these components interact?”

Great for speeding up your ramp-up and navigating the repo more effectively.

🏗️ Project Layout

Several projects live here:

  • autocomplete - The autocomplete react app
  • dashboard - The dashboard react app
  • figterm - figterm, our headless terminal/pseudoterminal that intercepts the user’s terminal edit buffer.
  • q_cli - the q CLI, allows users to interface with Amazon Q Developer from the command line
  • fig_desktop - the Rust desktop app, uses tao/wry for windowing/webviews
  • fig_input_method - The input method used to get cursor position on macOS
  • vscode - Contains the VSCode plugin needed for the Amazon Q Developer for command line to work in VSCode
  • jetbrains - Contains the VSCode plugin needed for the Amazon Q Developer for command line to work in Jetbrains IDEs

Other folder to be aware of

  • build-scripts/ - Contains all python scripts to build, sign, and test the project on macOS and Linux
  • crates/ - Contains all internal rust crates
  • packages/ - Contains all internal npm packages
  • proto/ - protocol buffer message specification for inter-process communication
  • tests/ - Contain integration tests for the projects

Below is a high level architecture of how the different components of the app and their IPC:

architecture

🛡️ Security

See CONTRIBUTING for more information.

📜 Licensing

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.

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

    Reviews

    2.9 (7)
    Avatar
    user_QFzEtZhp
    2025-04-23

    The amazon-q-developer-cli by AWS is a game-changer for developers! Its seamless integration and robust capabilities make it an essential tool for efficient development workflows. Highly recommend this CLI for anyone looking to streamline their processes and boost productivity.

    Avatar
    user_uxD8JOjX
    2025-04-23

    The amazon-q-developer-cli by AWS is an incredible tool for developers. It simplifies and accelerates development workflows, making it an essential asset for anyone using AWS services. The user-friendly interface and seamless integration with other AWS tools ensure a smooth experience, enhancing productivity. Highly recommend!

    Avatar
    user_rS2DLcWX
    2025-04-23

    I've been using the amazon-q-developer-cli by AWS and it's absolutely fantastic. This tool streamlines the development and deployment process, especially for those heavily leveraging AWS services. Its user-friendly interface and powerful features have significantly boosted my productivity. Highly recommend for developers working with Amazon Web Services.

    Avatar
    user_PZGSxXi7
    2025-04-23

    As an avid user of MCP applications, I am thoroughly impressed with the amazon-q-developer-cli by AWS. It simplifies the development process, offering seamless integration and powerful tools for developers. The user-friendly CLI accelerates productivity, making it a must-have for anyone working on AWS projects. Highly recommended!

    Avatar
    user_pzvgNOXf
    2025-04-23

    As a dedicated user of the mcp application, I found amazon-q-developer-cli by AWS to be incredibly effective. It offers seamless integration and is highly intuitive for developers. This CLI tool has notably streamlined my workflow, saving me both time and effort. Highly recommend for any developer looking to enhance their efficiency.

    Avatar
    user_KyQQlBm4
    2025-04-23

    I'm thoroughly impressed with the amazon-q-developer-cli by AWS. It streamlines my development workflow and integrates seamlessly with my existing tools. The intuitive interface and robust feature set have significantly boosted my productivity. Highly recommended for developers looking for a powerful CLI tool!

    Avatar
    user_tSEDoQTX
    2025-04-23

    As a dedicated user of MCP applications, I recently tried the amazon-q-developer-cli by AWS. This developer tool is incredibly powerful and easy to use, streamlining my workflow significantly. Its comprehensive documentation and user-friendly interface make it an excellent choice for both beginners and experienced developers. Highly recommend for anyone looking to enhance their development efficiency!