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, press Escape to unfocus the prompt. While unfocused, n starts a new chat and d deletes the selected chat; click the prompt or type a character to focus it again. Long prompts wrap inside the prompt box.

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cobalt_cli_linux-0.1.2.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cobalt_cli_linux-0.1.2-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file cobalt_cli_linux-0.1.2.tar.gz.

File metadata

  • Download URL: cobalt_cli_linux-0.1.2.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.1

File hashes

Hashes for cobalt_cli_linux-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f2091ffe1d77327026e0354b6877e20cdd2dbd6037c0fe62a7102701c48a56b6
MD5 a7b453016a2991758b93e3f488dc3ff0
BLAKE2b-256 4bf48676510e97e573dd43b961534cbc5c58d887410ee6d92a810916017e4889

See more details on using hashes here.

File details

Details for the file cobalt_cli_linux-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cobalt_cli_linux-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa0e07d88b82b9c54b01b1f9199b4fa2c0598ef7aac3a0dce4e143e8562b2d91
MD5 262a7b5e563205986f7655afe3370587
BLAKE2b-256 b389e53aa10cb23d024df50c829d29ea4403f64723a4a75dd528325371e59b01

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 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