Chat with AI in the terminal.
- Anthropic
- Mistral
- OpenAI
- xAI
- Unlimited Usage: No message limits for premium models (pay-as-you-go).
- Cost-Effective: Less expensive than premium subscriptions for light use.
- Seamless Access: No login required after setting up your API key(s).
- Unified Interface: Access multiple providers and models from a single interface.
- Enhanced Privacy:
- Paid API tiers typically don't train on your data (check provider privacy policies).
- All chat history is stored locally on your device.
- State of the Art Models: Access full, non-distilled, flagship models.
- No Model Downloads: No need to download models and keep them up-to-date.
- No Hardware Investment: No need to buy expensive hardware.
-
Set your API key(s):
# Anthropic export ANTHROPIC_API_KEY='your-anthropic-api-key' # Google export GOOGLE_API_KEY='your-google-api-key' # Mistral export MISTRAL_API_KEY='your-mistral-api-key' # OpenAI export OPENAI_API_KEY='your-openai-api-key' # xAI export XAI_API_KEY='your-xai-api-key'
-
Run
chai.py
:uv run chai.py -h
Use
/?
or/help
to print available commands.