Skip to main content

A command-line tool to interact with DuckDuckGo Chat API from your terminal

Project description

hey-py

Python port of hey, a command-line interface for DuckDuckGo's AI Chat with enhanced features.

✨ Features

🤖 AI Models

  • Multiple model support:
    • Claude 3 Haiku (default)
    • GPT-4o Mini
    • Mistral 8x7B
    • Llama 3.1 70B
  • Customizable system prompts

💬 Chat Experience

  • Rich markdown support in responses
  • Conversation memory with auto-expiry
    • Stores last 10 messages
    • 24-hour automatic expiration
    • Manual clearing with hey --clear
    • Persistent storage in ~/.cache/hey
  • Real-time streaming responses

🛠️ Configuration

  • Easy configuration via hey config
  • HTTP and SOCKS proxy support
  • Persistent settings in ~/.config/hey
  • Verbose mode for debugging

🚀 Installation

pip install hey-py

📖 Usage

Basic Usage

# Ask a question
hey What is Python?

# Clear conversation history
hey --clear

# Configure settings
hey config

Configuration Options

  • Select AI model
  • Set system prompt
  • Configure proxy settings
  • Accept Terms of Service

Environment Variables

  • HEY_CONFIG_PATH: Custom config directory (default: ~/.config/hey)
  • HEY_CACHE_PATH: Custom cache directory (default: ~/.cache/hey)
  • HEY_CONFIG_FILENAME: Custom config filename (default: conf.toml)
  • HEY_CACHE_FILENAME: Custom cache filename (default: messages.json)

📝 License

GPLv3

Project details


Download files

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

Source Distribution

hey_py-0.1.3.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

hey_py-0.1.3-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file hey_py-0.1.3.tar.gz.

File metadata

  • Download URL: hey_py-0.1.3.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for hey_py-0.1.3.tar.gz
Algorithm Hash digest
SHA256 37e011be00cde2efe6a659c8a2dadc7d8a8827497ad6d9a0b6125388fdd37e51
MD5 32cd942bd6fcd576f78f9e2eeb4e3a12
BLAKE2b-256 e0ddc7d57d36aeaddedcf846467e5df00018297ac1ea0cfccfdb3b152a0d4acd

See more details on using hashes here.

File details

Details for the file hey_py-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: hey_py-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for hey_py-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b9b0bc1457e93b13c3daec81fe72ed0a187e52a545412d9e925554ebc521636d
MD5 721b0c144c2f5ec7e7819ebb550228de
BLAKE2b-256 ad1ed57f1285a00e4d38009ab29f61c018bb23e0483826552668239b9c680cdb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page