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, orexit- Quit the chatnornew- 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
-
Clone the repository:
git clone https://github.com/yourusername/agent-repl-chat.git cd agent-repl-chat
-
Install in development mode:
uv pip install -e .
-
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-minimodel - 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agent_repl_chat-0.2.0.tar.gz | 111.0 kB | Without provenance | Details for agent_repl_chat-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_repl_chat-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for agent_repl_chat-0.2.0-py3-none-any.whl |
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
|
Security for agent-repl-chat 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.