Skip to main content

Viby agent at your terminal

Project description

Viby Logo

viby

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

English | 中文 Viby agent at your terminal

Features

  • Ask questions and get AI-generated answers
  • Interactive chat mode for multi-turn conversations
  • Generate shell commands and explanations
  • Process piped input (e.g., content from git diff)
  • Support for OpenAI-compatible API interfaces
  • MCP (Model Context Protocol) tools integration for extended capabilities

Installation

pip install viby

OR install from source

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 -c
|> Tell me about quantum computing
# -> [AI responds about quantum computing]
|> What are the practical applications?
# -> [AI responds with follow-up information]

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

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"

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.

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.0.7.tar.gz (37.6 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.0.7-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for viby-0.0.7.tar.gz
Algorithm Hash digest
SHA256 153d66c844c3df6c21f7b0ffe6d3dbc39b073e67e690ed186ed9c323aa80ed40
MD5 45a1a49b10462eb117445a7b29777c93
BLAKE2b-256 69f9d21f4fe25be901620407f621a5552fe7379338cecb6b9103dff697ec191a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for viby-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca2a4262574d0f6f4e8d5d1b5ba0d547aa91a4a60c22938bc330f809b4c86b7
MD5 5b12c06a13941e9a4e5397cd2108adcf
BLAKE2b-256 71828f327f45232086f0741f619e3dcf6a27ae8531b8d348efadc083f4f65c91

See more details on using hashes here.

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