Linux command
groq 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start interactive chat
groq
Run without installation
npx groq-code-cli@latest
Set generation temperature
groq -t [0.7]
Provide a custom system message
groq -s "You are a helpful coding assistant"
Enable debug logging
groq -d
Configure proxy
groq --proxy [http://proxy:8080]
说明
groq (Groq Code CLI) is a command-line coding assistant powered by Groq's LPU (Language Processing Unit) inference engine, known for extremely fast response times. It provides an interactive terminal-based interface for AI-assisted code generation and development tasks. The CLI stores configuration in a .groq/ folder in your home directory, including API keys and model preferences. Users can select different language models available on the Groq platform using the /model command. Proxy configuration follows a priority order: CLI flag (--proxy) takes precedence over HTTPS_PROXY, which takes precedence over HTTP_PROXY environment variables.
参数
- -t, --temperature _temp_
- Set generation temperature controlling response randomness. Default: 1.
- -s, --system _message_
- Provide a custom system message for the conversation.
- -d, --debug
- Enable debug logging output to debug-agent.log.
- -p, --proxy _url_
- Configure proxy for API requests. Supports HTTP, HTTPS, and SOCKS5 protocols.
- -h, --help
- Display help information.
- -V, --version
- Show version number.
FAQ
What is the groq command used for?
groq (Groq Code CLI) is a command-line coding assistant powered by Groq's LPU (Language Processing Unit) inference engine, known for extremely fast response times. It provides an interactive terminal-based interface for AI-assisted code generation and development tasks. The CLI stores configuration in a .groq/ folder in your home directory, including API keys and model preferences. Users can select different language models available on the Groq platform using the /model command. Proxy configuration follows a priority order: CLI flag (--proxy) takes precedence over HTTPS_PROXY, which takes precedence over HTTP_PROXY environment variables.
How do I run a basic groq example?
Run `groq` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -t, --temperature _temp_ do in groq?
Set generation temperature controlling response randomness. Default: 1.