Groq Code CLI is an open-source command-line coding assistant developed by the build-with-groq team. It integrates directly with Groq's high-speed inference engine to provide interactive code generation, refactoring, and terminal-based task execution. Operating directly in the terminal, the CLI leverages Groq-hosted models (such as Llama architectures and specialized models like Kimi K2 Instruct) to deliver low-latency responses. Developers interact with the agent via an interactive prompt where they can ask codebase questions, execute commands, and load context from local repositories. The primary differentiator of Groq Code CLI is the execution speed provided by Groq's LPU hardware. This significantly minimizes waiting time during multi-turn agentic loops and iterative code generation. It also includes commands such as `/init` to automatically generate and load workspace context into the session. The project is open-source under a permissive license and requires a valid Groq API key, with usage costs tied directly to standard Groq API consumption rates.
Tags: cli, code assistant, coding agent, OpenSource, terminal
/init command that scans the project directory and generates auto-loaded context for subsequent prompts. - Multiple Model Support — Configurable backend compatible with Groq-hosted open weights models, including Llama and Kimi variants. - Interactive Terminal Workflow — Operates natively in the shell, enabling context switching and direct interaction without leaving the command line. - Open-Source Codebase — Publicly auditable repository allowing custom prompt modifications and local extensions./init command, developers can generate structural metadata and context files for unfamiliar codebases, allowing the agent to answer architectural questions accurately.Groq Code CLI is designed for developers who prefer keyboard-centric terminal workflows and require ultra-low-latency code completions via Groq's API. It is less suitable for users looking for full IDE graphical integration or agent harnesses with autonomous self-healing multi-tool execution pipelines.
bash git clone https://github.com/build-with-groq/groq-code-cli.git cd groq-code-cli npm install npm linkbash export GROQ_API_KEY="your_groq_api_key_here" groq-codebash # Inside your project directory groq-code > /init > Explain the routing logic in src/router.ts and suggest a unit testPart of CLI Coding Agents
Categories: AI Coding Agents, Code Assistants, Developer Tools