Flouri.sh

AI-powered terminal environment - Run normal bash commands and get help from an LLM with ? or flouri agent "...". Commands use an allowlist/blacklist; supports OpenAI, Anthropic, Google, and others via LiteLLM.

PyPI version PyPI - Downloads PyPI - Python Version License CI

Quick Start

Installation

pip install flouri

Configuration

Set your API key in .env or environment variables:

export API_KEY=your-key
export MODEL=gpt-4o-mini   # or anthropic/claude-3-sonnet, gemini/gemini-2.0-flash, etc.

Usage

Interactive TUI:

flouri
# or: flouri tui

Then run shell commands as usual; use ? your question or Ctrl+A for AI help.

CLI Mode:

flouri agent "List files and show git status"
flouri agent --stream "Explain how Docker networking works"

Features

  • 🤖 AI-Powered Assistance: Get help from LLMs directly in your terminal
  • 🔒 Security First: Allowlist/blacklist system for command execution
  • 🎨 Rich TUI: Interactive terminal with tab completion, history, and syntax highlighting
  • 🔌 Extensible: Plugin system for custom commands and behaviors
  • 🌐 Multi-Provider: Support for OpenAI, Anthropic, Google, and more via LiteLLM
  • 📝 Smart Completions: Enhanced command completion with nested directory support
  • 🛠️ Tool System: Modular tool architecture organized by skills

Documentation

Example Workflows

Basic Terminal Operations

# In TUI, just type commands normally
$ ls -la
$ cd ~/projects
$ git status

# Ask for AI help
$ ? How do I check disk usage?
$ ? What's the difference between git merge and rebase?

CLI Mode

# One-off questions
flouri agent "List all Python files in the current directory"

# With streaming output
flouri agent --stream "Explain Docker networking"

# With custom allowlist
flouri agent --allowlist "ls,cd,git" "Check git status and show recent commits"

License

Apache 2.0 - See LICENSE