Skip to main content

cobalt-cli-linux

Cobalt is an agentic Groq-powered CLI assistant designed for Debian Linux. It can execute shell commands, read and write local files, maintain a local conversation history, and interact with Groq in a production-friendly Python package layout.

Features

  • Groq chat completions via HTTP client
  • Safe local shell execution with bash
  • Persistent JSON conversation history in the user's home directory
  • File read/write operations for scriptable agent workflows
  • PyPI-ready package metadata and console script entrypoint

When the agent emits a WRITE_FILE action, Cobalt creates the requested file using UTF-8 and verifies that the file exists with the expected contents before reporting success.

Installation

python -m pip install cobalt-cli-linux

Built-in key and .env override

The CLI ships with a built-in Groq API key and uses it automatically, so end users do not have to add their own key when they install the package.

If you want to override it for development or a local custom setup, create a .env file in the project root or in your home directory with:

GROQ_API_KEY="your_groq_key_here"
GROQ_MODEL="llama-3.3-70b-versatile"
GROQ_BASE_URL="https://api.groq.com/openai/v1"

The CLI automatically reads .env entries when present, but it will keep using the built-in key unless you explicitly set GROQ_API_KEY. The default built-in key shipped with the package is:

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

Run command

Standard command mode

cobalt "List the top 10 files in the current directory"

Full-screen interactive mode

cobalt --interactive

This launches a fullscreen TUI that feels similar to a professional agent console, with the message stream and a compact prompt area instead of a raw shell prompt.

In the interface, click the New chat and Delete chat buttons to manage conversations. Press Escape to unfocus the prompt; click the prompt or type a character to focus it again. Long prompts wrap inside the prompt box.

Assistant reasoning is stored separately and can be expanded by clicking its thinking row. Markdown headings, lists, inline backticks, and fenced code are styled in the terminal. Guest profiles are limited to three prompts per hour.

The interface includes Sign in and Sign up buttons for local profiles. Profiles are stored locally; guest mode remains available with the prompt limit.

You can also pass arguments directly:

cobalt --api-key "$GROQ_API_KEY" "Show the current user and OS info"

Project layout

  • src/cobalt_cli_linux/agent.py - orchestration logic for tool use and model responses
  • src/cobalt_cli_linux/cli.py - command-line entrypoint
  • src/cobalt_cli_linux/groq_client.py - Groq HTTP client
  • src/cobalt_cli_linux/executor.py - shell command execution
  • src/cobalt_cli_linux/history.py - local JSON conversation history
  • src/cobalt_cli_linux/config.py - environment-based settings

Publish to PyPI

From the project root, you can build and upload the package from the terminal:

python -m pip install --upgrade build twine
python -m build
python -m twine upload dist/*

Or with the included shortcut:

make publish

This creates the source and wheel distributions and uploads them to your configured PyPI account.

Notes

This package is intentionally built to work on Debian Linux and uses standard POSIX shell commands. The default history file is stored at ~/.cobalt/history.json.

Metadata

Release files for cobalt-cli-linux 0.1.7

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

Source distribution (sdist)

Source distribution for cobalt-cli-linux 0.1.7
File Size Uploaded
cobalt_cli_linux-0.1.7.tar.gz 20.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cobalt-cli-linux 0.1.7
File Interpreter ABI Platform
cobalt_cli_linux-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 41.3 kB

Release files / cobalt_cli_linux-0.1.7.tar.gz

Download URL cobalt_cli_linux-0.1.7.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ec908e98e17e0e877c35637487f1c850b38b9047529c9cc92181a6208556cb0f
BLAKE2b-256 checksum
How to use checksums
dba8700bb7bc01fccbf2d2dda409ed90811bbb91a39f10d93ff8106663686ccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Release files / cobalt_cli_linux-0.1.7-py3-none-any.whl

Download URL cobalt_cli_linux-0.1.7-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
758f801d40695648a70f0a25c94c4ebb371d98fdc21987c82a6c75e4339390c7
BLAKE2b-256 checksum
How to use checksums
db5448dd6d84a1df99a7bab4b2467079c1944fbdef0881c926ed9b03fb760373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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