Skip to main content

Viby vibes everything

Project description

Viby Logo

Viby

Viby vibes everything

GitHub Repo PyPI version Python Version License: GPL v3 UV MCP Ask DeepWiki

English | 中文

✨ Features

  • Intelligent Conversations - Engage in natural multi-turn dialogues
  • Automatic Shell Command Generation - Get optimized shell commands when needed
  • Pipeline Integration - Process data from other commands (e.g., git diff | viby "write a commit message")
  • MCP Tools - Extended capabilities through Model Context Protocol integration

🔧 Installation

# Install from PyPI
pip install viby

Alternative Installation

# Install from source with uv
uv pip install -e .

Usage Examples

Basic Question

yb "Write a quicksort in python"
# -> Sure! Here is a quicksort algorithm implemented in **Python**:

Interactive Chat Mode

yb --chat
# or
yb -c
|> Tell me about quantum computing
# -> [AI responds about quantum computing]
|> What are the practical applications?
# -> [AI responds with follow-up information]
|> exit

Process Piped Content

git diff | yb "Generate a commit message"
# -> Added information to the README
yb "What is this project about?" < README.md
# -> This project is about...

Generate Shell Command

yb "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): 

Advanced Model Selection

# Use think model for complex analysis
yb --think "Analyze this complex algorithm and suggest optimizations"

# Use fast model for quick responses
yb --fast "Translate 'Hello, World!' to French"

Shell Command Magic Integration

# List directory contents
yb "$(ls) What files are in the current directory?"
# -> The current directory contains: file1.txt, file2.py, directory1/...

# Analyze Git status
yb "$(git status) Which files should I commit first?"

# View code files
yb "$(cat main.py) How can I improve this code?"

Automatically Use MCP Tools When Needed

yb "What time is it now?"
# -> [AI uses time tool to get current time]
# -> "datetime": "2025-05-03T00:49:57+08:00"

Keyboard Shortcuts

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 analysis my readme file  # Now press Ctrl+Q
# -> This transforms into: yb help me analysis my readme file
# -> [AI analyzes and responds to question]

Supported shells:

  • Bash
  • Zsh
  • Fish

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.

For more detailed examples and advanced usage, see the Usage Examples documentation.

Configuration

Viby reads configuration from ~/.config/viby/config.yaml. You can set the model, parameters, and MCP options here.

Interactive Configuration

Use the configuration wizard to set up your preferences:

yb --config

This allows you to configure:

  • API endpoint and key
  • Model
  • Temperature and token settings
  • MCP tools enablement
  • Interface language

MCP Server Configuration

Viby supports Model Context Protocol (MCP) servers for extended capabilities. MCP configurations are stored in ~/.config/viby/mcp_servers.json.

⭐ Star History

📄 Documentation

🤝 Contributing

Contributions are welcome! Feel free to submit a Pull Request or create an Issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

viby-0.1.7.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viby-0.1.7-py3-none-any.whl (84.0 kB view details)

Uploaded Python 3

File details

Details for the file viby-0.1.7.tar.gz.

File metadata

  • Download URL: viby-0.1.7.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for viby-0.1.7.tar.gz
Algorithm Hash digest
SHA256 1fb935be87d8ac4cbdd78e008f00ca9afc7578c83247dd71aa434bbc3f650bf5
MD5 31629a2bb655ca5e054179ce43aa1fb0
BLAKE2b-256 e431b71fb9a92e168b9edb6b0d9b3bd33a1ebe5d641a70a59768abe2d3be42f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for viby-0.1.7.tar.gz:

Publisher: release.yaml on JohanLi233/viby

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file viby-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: viby-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 84.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for viby-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b5877a16674988f129ceae67e59c2c0fcc2344b45fbad022cf2d17e4b84bc6f9
MD5 0ca45972e02c5843cb51d3f59efd5e36
BLAKE2b-256 788b49812e3709281b874d3f7bbd1e13210f4102e227b01d8f447d1857b08bae

See more details on using hashes here.

Provenance

The following attestation bundles were made for viby-0.1.7-py3-none-any.whl:

Publisher: release.yaml on JohanLi233/viby

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page