Skip to main content

agent-repl-chat

A beautiful terminal chat interface for OpenAI agents with rich markdown support and an elegant UI.

Installation

Install from PyPI:

pip install agent-repl-chat

Or install in development mode using uv:

uv pip install -e .

Usage

from repl_chat import start_chat
from agents import Agent

# Create your agent
agent = Agent(
    name="My Assistant",
    instructions="You are a helpful assistant that provides clear and concise answers.",
    model="gpt-4.1-mini"
)

# Start the chat interface
start_chat(agent)

Features

  • 🎨 Beautiful terminal interface with rich markdown rendering
  • 🔄 Conversation continuity with response threading
  • ⌨️ Interactive commands:
    • q, quit, or exit - Quit the chat
    • n or new - Start a new conversation
  • 🤖 Works with any OpenAI Agent configuration
  • ⚡ Async support for responsive interactions

Requirements

  • Python 3.11+
  • openai-agents
  • prompt-toolkit
  • rich

Development

The package follows Python packaging best practices with a src/ layout for clean imports and development workflows.

Setup for Development

  1. Clone the repository:

    git clone https://github.com/yourusername/agent-repl-chat.git
    cd agent-repl-chat
    
  2. Install in development mode:

    uv pip install -e .
    
  3. Run the example:

    uv run example.py
    

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

v0.1.1 (2025-01-03)

  • Updated README example to use gpt-4.1-mini model
  • Enhanced project metadata and documentation

v0.1.0 (2025-01-03)

  • Initial release
  • Beautiful terminal chat interface
  • Rich markdown support
  • Conversation continuity
  • Interactive commands (quit, new chat)
  • Async support for responsive interactions

Metadata

Release files for agent-repl-chat 0.2.0

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

Source distribution (sdist)

Source distribution for agent-repl-chat 0.2.0
File Size Uploaded
agent_repl_chat-0.2.0.tar.gz 111.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-repl-chat 0.2.0
File Interpreter ABI Platform
agent_repl_chat-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 116.8 kB

Release files / agent_repl_chat-0.2.0.tar.gz

Download URL agent_repl_chat-0.2.0.tar.gz
Size 111.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0e391132e0f0e34203cfbd19314429e8b6a962c309ea492cb973562d1cbcfd86
BLAKE2b-256 checksum
How to use checksums
9257da3b357502c9a730b6c48337c336762f710760f81538ece5a2130bb5faab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.11

Release files / agent_repl_chat-0.2.0-py3-none-any.whl

Download URL agent_repl_chat-0.2.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad737080a9ac014ef38d0b0286e07e20c0163c722cd233ef6269da8cf79da2ab
BLAKE2b-256 checksum
How to use checksums
bb720eca23486a094be1fddd4930b90ea0e08495e6e21b99e974941258c96082
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.11

Release history Release notifications | RSS feed

This release

0.2.0 This release

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