Viby vibes everything
Viby is a powerful AI agent that lives in your terminal, designed to solve virtually any task you throw at it. Whether you need code assistance, shell commands, information retrieval, or creative content - Viby vibes with your needs and delivers solutions instantly.
git diff | viby "write a commit message"
)# Install from PyPI
pip install viby
# OR
uv tool install viby
# Install from source with uv
uv pip install -e .
yb vibe "Write a quicksort in python"
# -> Sure! Here is a quicksort algorithm implemented in **Python**:
yb "Write a quicksort in python"
# -> Same result as above
git diff | yb vibe "Generate a commit message"
# -> Added information to the README
yb vibe "What is this project about?" < README.md
# -> This project is about...
yb vibe "How many lines of python code did I write?"
# -> find . -type f -name "*.py" | xargs wc -l
# -> [r]run, [e]edit, [y]copy, [c]chat, [q]quit (default: run):
# Use think model for complex analysis
yb --think vibe "Analyze this complex algorithm and suggest optimizations"
# Use fast model for quick responses
yb --fast vibe "Translate 'Hello, World!' to French"
# List directory contents
yb vibe "$(ls) What files are in the current directory?"
# -> The current directory contains: file1.txt, file2.py, directory1/...
# Analyze Git status
yb vibe "$(git status) Which files should I commit first?"
# View code files
yb vibe "$(cat main.py) How can I improve this code?"
# Viby will automatically discover and use relevant tools
yb vibe "What's the weather in San Francisco?"
# -> [Viby identifies and uses weather tools]
# -> The current weather in San Francisco is 68°F and partly cloudy...
# Embedding Model Management
# First download the embedding model (required once before using embedding features)
# Embed model configurable with yb --config
yb tools embed download
# Start the embedding server (required for tool discovery)
yb tools embed start
# Check embedding server status
yb tools embed status
# Update tool embeddings from configured MCP servers
yb tools embed update
# List available tools (udpate before listing)
yb tools list
# Stop the embedding server when not needed
yb tools embed stop
yb vibe "What time is it now?"
# -> [AI uses time tool to get current time]
# -> "datetime": "2025-05-03T00:49:57+08:00"
Viby provides a convenient keyboard shortcut (Ctrl+Q) that allows you to quickly use Viby with the current command line content:
# Install the keyboard shortcuts (auto-detects your shell)
yb shortcuts
# After installation, type any command and press Ctrl+Q
help me analyze my readme file # Now press Ctrl+Q
# -> This transforms into: yb vibe help me analyze my readme file
# -> [AI analyzes and responds to question]
Supported shells:
After installing shortcuts, you'll need to reload your shell configuration (source ~/.bashrc
, source ~/.zshrc
, or equivalent) or restart your terminal for the shortcuts to take effect.
Viby uses a simple command structure:
yb [OPTIONS] [COMMAND] [ARGS]...
Main commands:
yb [prompt]
- Ask a question (alias for yb vibe "your question"
; recommended)yb vibe "your question"
- Ask a question (default command for questions)yb --think vibe "complex question"
- Use the think model for deeper analysisyb --fast vibe "simple question"
- Use the fast model for quick responsesyb history
- Manage interaction historyyb tools
- Manage tool-related commandsyb shortcuts
- Install keyboard shortcutsUse yb --help
to see all available commands and options.
Viby reads configuration from ~/.config/viby/config.yaml
. You can set the model, parameters, and MCP options here.
Use the configuration wizard to set up your preferences:
yb --config
This allows you to configure:
Viby supports Model Context Protocol (MCP) servers for extended capabilities. MCP configurations are stored in ~/.config/viby/mcp_servers.json
.
Contributions are welcome! Feel free to submit a Pull Request or create an Issue.
No configuration available
Related projects feature coming soon
Will recommend related projects based on sub-categories