A simple interactive CLI chatbot using the Anthropic Python SDK with streaming responses and multi-turn conversation memory.
pip install -r requirements.txt
export ANTHROPIC_API_KEY=your_api_key_herepython chatbot.pyType your messages and press Enter. Claude will stream its response back in real time. Type quit or exit to stop.
Claude Chatbot Demo. Type 'quit' to exit.
You: What is the capital of France?
Claude: The capital of France is Paris.
You: And what's it known for?
Claude: Paris is known for the Eiffel Tower, world-class cuisine, art museums like the Louvre...
You: quit