| Crates.io | hey-rs |
| lib.rs | hey-rs |
| version | 0.2.3 |
| created_at | 2025-09-02 05:18:09.461602+00 |
| updated_at | 2025-10-25 20:05:50.632156+00 |
| description | A minimal command-line copilot with streaming and syntax highlighting |
| homepage | https://github.com/brendon-felix/hey |
| repository | https://github.com/brendon-felix/hey |
| max_upload_size | |
| id | 1820624 |
| size | 6,799,209 |
A minimal command-line application for quickly interacting with OpenAI's chat models, with support for streaming and syntax highlighting. The focus of hey is on ease of use, speed, and a pleasant terminal experience.

/h + Tab → /help)cargo install hey-rs
Set your OpenAI API key:
export OPENAI_API_KEY=your_api_key_here
hey
hey who was Ada Lovelace?
hey -p ~/path/to/prompt.txt
All commands support tab completion - just type / and press Tab to see available commands, or start typing a command (e.g., /h) and press Tab to complete it.
| Command | Description |
|---|---|
/exit, /quit, /q, /x |
Exit the REPL |
/clear, /c |
Clear screen |
/reset, /r |
Reset conversation |
/model, /m |
Select model |
/theme, /t |
Select theme |
/save, /s |
Save conversation |
/load, /l |
Load conversation |
/history |
View conversation history |
/help, /h |
Show help |
Press Ctrl+R to search through your input history. Start typing to filter previous inputs, and press Enter to use the selected command. Press Ctrl+R again to cycle through matching results.
hey uses a TOML configuration file located at:
~/.config/hey/hey.toml~/Library/Application Support/hey/hey.toml%APPDATA%/hey/hey.toml# AI Model settings
model = "gpt-4o" # or "gpt-4o-mini", "gpt-3.5-turbo"
system_prompt = "You are a helpful coding assistant."
max_tokens = 2048
# Display
syntax_highlighting = true
theme = "ansi" # Run /theme to see all options
wrap_width = 100 # 0 to disable wrapping
ansi_colors = true
animations = true # Typewriter effect
greetings = true # Show "Hey!" and "Bye!" messages
# Editor
edit_mode = "emacs" # or "vi"
bracketed_paste = true
reedline_history = true # Save input history
history_max_size = 1000 # Max number of inputs to save
# Files
conversations_folder = "~/.hey" # Where to save conversations
| Option | Default | Description |
|---|---|---|
system_prompt |
"You are a helpful assistant." |
Initial context for AI |
model |
"gpt-4o" |
OpenAI model to use |
max_tokens |
2048 |
Response length limit |
enter_repl |
false |
Force REPL mode with CLI message |
wrap_width |
100 |
Text wrapping width (0 = disabled) |
syntax_highlighting |
true |
Code syntax highlighting |
theme |
"ansi" |
Highlighting color scheme |
ansi_colors |
true |
Colored terminal output |
animations |
true |
Typewriter text effect |
greetings |
true |
Show greeting messages ("Hey!" and "Bye!") |
edit_mode |
"emacs" |
Input editor mode ("emacs" or "vi") |
bracketed_paste |
true |
Multi-line paste support |
conversations_folder |
"./" |
Directory for saved conversations |
reedline_history |
true |
Persist input history across sessions |
history_max_size |
1000 |
Maximum input history size |
See defaults.toml for detailed documentation of all options.
Minimal setup:
model = "gpt-4o-mini"
system_prompt = "You are a helpful coding assistant."
Plain text output:
syntax_highlighting = false
ansi_colors = false
wrap_width = 0
Vi user setup:
edit_mode = "vi"
theme = "base16"
conversations_folder = "~/Documents/hey-conversations"