Skip to main content

groqcli (groq-tool)

A Modern Command-Line Tool for Interacting with Grog LLMs

Upload Python Package

Table of Contents

Features

1. Direct Prompt

  • Run a command with a direct prompt
  • Example: groqcli chat "Explain black holes in 3 points"

2. File-Based Prompt

  • Run a command with a file-based prompt
  • Example: groqcli chat my_file.txt

3. Predefined System Prompts

  • Use predefined system prompts to customize the response
  • Example: groqcli chat "Transform this script into TypeScript" --system formatScript
  • Available: uwu, formatScript, friendly, tech, json, default, fr-default

4. Save Conversation

  • Save the current conversation
  • Example: groqcli --save

5. Resume Previous Session

  • Resume a previous conversation
  • Example: groqcli resume --last 1

6. List Available Models

  • List available models
  • Example: groqcli models

7. Edit Predefined System Prompts

  • Edit predefined system prompts
  • Example: groqcli prompts edit

8. Role-Based Prompt

  • Use roles to customize the response
  • Example: groqcli "[SYSTEM] Explain black holes in 3 points"

9. Automatic History

  • View previous conversation history
  • Example: groqcli --history

10. Rich UI

  • Use a rich UI with colors, emojis, etc.
  • Example: groqcli "Explain black holes in 3 points" --rich

Note: These examples are brief and illustrate the features, but you can customize them to fit your needs.

Installation

pipx install groq-tool
pipx install git+https://github.com/daisseur/groqcli.git

Using pip

pip install groq-tool

From Source

git clone https://github.com/daisseur/groqcli.git
cd groqcli
pip install .

Usage

Direct Prompt

groqcli chat "Explain black holes in 3 points"

File-Based Prompt

groqcli chat my_file.txt

With Predefined System Prompt

groqcli chat "Transform this script into TypeScript" --system formatScript

Resume Previous Session

groqcli chat --last 1

Saving session and resume them later

groqcli chat --save-session myfile.groq
groqcli chat --load-session myfile.groq

Compatible with --last (it does not save the next answer in another timestamp file)

Commands

  • groqcli: Run the command-line tool
  • groqcli --system <prompt>: Use a predefined system prompt
  • groqcli --save: Save the current conversation
  • groqcli resume: Load a previous conversation
  • groqcli models: List available models
  • groqcli prompts edit: Edit predefined system prompts

Predefined System Prompts

  • uwu: Cute and cheerful tone (UwU)
  • formatScript: Script format only
  • friendly: Friendly and helpful tone
  • tech: Precise and technical explanations
  • json: JSON format only
  • default: Default helpful assistant
  • fr-default: French-speaking helpful assistant

Module groqcli-files (installed by default)

Overview

GroqCLI Files is a module of the GroqCLI ecosystem that allows you to manage and interact with files in a convenient and efficient way. This module provides a set of commands and options that enable you to send multiple files to groq llms.

Examples

  • Get documentations for a directory of API endpoints:

Set up a useful system prompt

groqcli set-system endpointFormat "You have to answer using this format: # {endoint path}\nEach params (both required and optional) * `{params}`: `{type}`"

Run the command

groqcli-files ./APIEndpoints -f ~/Server/Work/Max/HubRP/endpoints.md --system endpointFormat

Usage

To use GroqCLI Files, simply run the groqcli-files command followed by the desired options.

Extensibility

GroqCLI is fully extensible and can be customized to fit your needs. You can add new features, commands, and prompts by modifying the source code.

Troubleshooting

If you encounter any issues or have questions, please open an issue on the GitHub repository


Special thanks to @gmfunk9 for providing the inspiration for this project.

Metadata

Release files for groq-tool 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for groq-tool 0.1.3
File Size Uploaded Provenance
groq_tool-0.1.3.tar.gz 8.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for groq-tool 0.1.3
File Interpreter ABI Platform
groq_tool-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.3 kB

Release files / groq_tool-0.1.3.tar.gz

Download URL groq_tool-0.1.3.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
34736b5976c1962c9791bda68870fce41846d9ef39dd63dbb0e9fa7b27691240
BLAKE2b-256 checksum
How to use checksums
cb2d0e3428310b1f039640e9f77169932b2c968d76c4c5adbf8cc7ec9e022e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 16, 2025.

Transparency log

Release files / groq_tool-0.1.3-py3-none-any.whl

Download URL groq_tool-0.1.3-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08f56fad4e01fec23cd913df182152cb2650ca13523523add9d8b642d0204d51
BLAKE2b-256 checksum
How to use checksums
0b62820919f7ee04b0809ea795b34ed86de6c9ca12fa9ad7f8b64ea67ae6bbf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 16, 2025.

Transparency log

Security for groq-tool 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for groq_tool-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 16, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page