Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Bgpt is a customizable AI-powered shell assistant. It converts natural-language requests into shell commands, applies safety checks, and executes commands with confirmation and timeout controls.
Jump to setup instructionsFetched from the repository for this visit.
Bgpt is an AI-powered terminal assistant that converts natural language into shell scripts, explains what each command does, and runs commands with built-in safety checks. It supports Gemini, OpenAI, Anthropic, and local Ollama models so developers, DevOps engineers, and power users can automate terminal workflows faster and more safely.
Bgpt is a customizable AI-powered shell assistant. It converts natural-language requests into shell commands, applies safety checks, and executes commands with confirmation and timeout controls.
gemini, openai, anthropic, local (Ollama)pip install bgpt-primecodez
After installation, run the CLI with:
bgpt --help
git clone https://github.com/primecodez01/Bgpt.git
cd Bgpt
python -m venv .venv
source .venv/bin/activate
pip install -e .
If you need all providers and extras:
pip install -r requirements.txt
bgpt --setup
bgpt "find all python files larger than 50MB"
bgpt --chat
bgpt --explain "ls -la | grep py"
Bgpt reads API keys from either:
Supported environment variables:
GEMINI_API_KEYOPENAI_API_KEYANTHROPIC_API_KEYOptional model overrides:
BGPT_GEMINI_MODELBGPT_OPENAI_MODELBGPT_ANTHROPIC_MODELBGPT_LOCAL_MODELPreferred workflow: use bgpt --setup to pick provider + model and persist it in config.
Bgpt now supports user-level terminal customization persisted in ~/.bgpt/config.json.
defaultsunsetmatrixmidnightminimalarrow (default)classicminimalbgpt config set --profile matrix --prompt-style classic
bgpt config set --compact --timestamps --tips
bgpt config set --preview-lines 20
bgpt config set --timeout 120
bgpt config set --provider openai --safety-level high
bgpt config set --model-provider openai --model gpt-4o-mini
bgpt config set --theme hacker
bgpt config set --agentic --hide-details --agentic-risk low
bgpt config show
/profile matrix
/style classic
/theme hacker
/compact on
/timestamps off
/tips off
/preview 18
/provider gemini
/model gemini-2.5-flash
/model openai gpt-4o-mini
/agentic on
/details off
/agentic-risk low
/safety medium
/timeout 90
/config
Before execution, Bgpt performs:
Commands can be blocked outright if they match critical destructive patterns.
Config file path:
~/.bgpt/config.json
Example:
{
"provider": "gemini",
"theme": "default",
"safety_level": "medium",
"auto_execute": false,
"agentic_mode": false,
"show_command_details": true,
"agentic_auto_execute_max_risk": "low",
"save_history": true,
"command_timeout": 60,
"enabled_plugins": ["git", "mcp"],
"models": {
"gemini": "gemini-2.5-flash",
"openai": "gpt-4o-mini",
"anthropic": "claude-3-5-sonnet-latest",
"local": "tinyllama"
},
"ui": {
"profile": "default",
"prompt_style": "arrow",
"compact_mode": false,
"show_timestamps": true,
"show_tips": true,
"command_preview_lines": 12
}
}
# Chat mode
bgpt --chat
# One-shot generation and execution flow
bgpt "show top 10 processes by memory"
# Diagnostics
bgpt --doctor
# Show history
bgpt --history
# Setup local Ollama model
bgpt setup-local
Current plugin registry includes:
gitdockersystemmcpManage plugins:
bgpt plugins list
bgpt plugins install git
bgpt plugins enable git
bgpt plugins disable git
bgpt plugins uninstall git
To prepare local/offline usage:
bgpt setup-local
This checks Ollama availability and attempts to set up a lightweight model.
bgpt --doctorbgpt config set --provider geminibgpt config set --timeout 180BGPT_*_MODEL)pip install textual>=0.50.0
Run editable install and checks:
pip install -e .
python -m bgpt.main --help
Recommended default for this project: MIT or Apache-2.0.
MIT
GitHub checked 208h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.