Skip to main content

A beautiful terminal chat interface for OpenAI agents

Project description

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.0 (2025-01-XX)

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

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

agent_repl_chat-0.1.1.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

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

agent_repl_chat-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file agent_repl_chat-0.1.1.tar.gz.

File metadata

  • Download URL: agent_repl_chat-0.1.1.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for agent_repl_chat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e76a85dddbc0ff1f89ab3271755dfbaff881e8b6ff9495f142b89b426316d232
MD5 1ea0377e78ce0f497cd2ddc1eda67b78
BLAKE2b-256 07958ddae96cd4d9de85ff4ab5b4eecafc21a7e350eb804de5bf39cd72ff4779

See more details on using hashes here.

File details

Details for the file agent_repl_chat-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_repl_chat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 802b0a7409668e08df536967d6dab5ce1718988f6ee5ad5be3cd2e86eda35838
MD5 4239194bde5d8d00328115fee96cbdf0
BLAKE2b-256 902e79e5a40e05bc8c35565eca0960a7491392d3cf893120b0f9328c40e14af2

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