Skip to main content

llm-chatifier

Dead simple terminal chat client for LLM APIs.

Features

  • Auto-detection: Automatically detects API type by testing common endpoints
  • Multi-API support: Works with OpenAI, Ollama, Anthropic, and generic chat APIs
  • Rich terminal UI: Beautiful formatting with markdown support
  • Smart defaults: Tries common ports and endpoints automatically
  • Minimal configuration: Just provide an IP and optionally port/token

Install

pipx install llm-chatifier

Or with pip:

pip install llm-chatifier

Usage

# Auto-detect API on localhost
llm-chatifier

# Specify IP
llm-chatifier 192.168.1.100

# With port and token
llm-chatifier 192.168.1.100 --port 8080 --token sk-...

# Force specific API type
llm-chatifier --override openai

# Use specific model
llm-chatifier --model gpt-4

# Verbose output to see detection process
llm-chatifier -v

Supported APIs

  • OpenAI compatible: OpenAI, llama.cpp, vLLM, LocalAI, etc.
  • Ollama: Local Ollama installations
  • Anthropic: Claude API
  • Google Gemini: Gemini Pro and Vision models
  • Cohere: Command and Command-R models
  • Generic: Any chat API with common REST patterns

Commands

Once connected, you can use these commands in the chat:

  • /exit or Ctrl+C - Quit the application
  • /clear - Clear conversation history
  • /help - Show help message
  • Ctrl+Enter - Multi-line input mode

How it Works

  1. Detection: Tests common ports (8080, 8000, 3000, 5000, 11434, 80, 443) if no port specified
  2. Protocol: Tries HTTPS first, falls back to HTTP
  3. Endpoints: Tests API-specific endpoints to identify the service type
  4. Connection: Creates appropriate client and tests authentication
  5. Chat: Starts interactive terminal session

API Detection

The tool automatically detects API types by testing these endpoints:

  • OpenAI: /v1/models, /v1/chat/completions
  • Anthropic: /v1/messages, /v1/models
  • Ollama: /api/tags, /api/generate
  • Gemini: /v1beta/models, /v1beta/models/gemini-pro:generateContent
  • Cohere: /v1/chat
  • Generic: /chat, /api/chat, /message, /api/message

Examples

# Local Ollama (usually on port 11434)
llm-chatifier localhost

# Remote OpenAI-compatible API
llm-chatifier my-server.com --port 8000 --token sk-xxx

# Force Ollama even if detection fails
llm-chatifier --override ollama

# Connect to Anthropic API
llm-chatifier --override anthropic --token your-claude-key

# Connect to Google Gemini
llm-chatifier --override gemini --token your-gemini-key

# Connect to Cohere
llm-chatifier --override cohere --token your-cohere-key

Development

git clone https://github.com/fluffypony/llm-chatifier
cd llm-chatifier
pip install -e .
python -m chatifier --help

License

BSD-3-Clause

Release files for llm-chatifier 0.2.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 llm-chatifier 0.2.3
File Size Uploaded
llm_chatifier-0.2.3.tar.gz 21.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-chatifier 0.2.3
File Interpreter ABI Platform
llm_chatifier-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 43.9 kB

Release files / llm_chatifier-0.2.3.tar.gz

Download URL llm_chatifier-0.2.3.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7c018f886e4959d84ce2da3bc1b37cde0b123d6314ff1aa541a3a49eada8d839
BLAKE2b-256 checksum
How to use checksums
9fa047a235d72d01a040bbb4b704de4fe773c67f94418e93635900ac6656c433
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.4

Release files / llm_chatifier-0.2.3-py3-none-any.whl

Download URL llm_chatifier-0.2.3-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e453393f16975df357ee1c32ce24e8047bb7c8bdb2a3c43f9368d6330cb1ddf6
BLAKE2b-256 checksum
How to use checksums
c4c06be303249f3120b3edd5e78616048cd4f1ce0254b745ae9643e2e3b3927b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.4

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

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