Quick Start
This guide will get you up and running with Flux-CLI in under 5 minutes.
Step 1: Set Up Your API Key
Create a .env file in your workspace:
These environment variables are loaded automatically by Flux-CLI.
API_KEY=your_api_key_here
BASE_URL=https://openrouter.ai/api/v1You can get a free API key from OpenRouter. No credit card required for most models.
Step 2: Launch Flux-CLI
Navigate to your project directory and run:
Starts the interactive REPL with the gradient ASCII banner.
cd your-project
python main.pyYou should see the Flux-CLI banner:
██╗ ███████╗██╗ ██╗ ██╗██╗ ██╗
╚██╗ ██╔════╝██║ ██║ ██║╚██╗██╔╝
╚██╗ █████╗ ██║ ██║ ██║ ╚███╔╝
██╔╝ ██╔══╝ ██║ ██║ ██║ ██╔██╗
██╔╝ ██║ ███████╗╚██████╔╝██╔╝ ██╗
╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝Step 3: Try Your First Command
Once in the REPL, type a prompt:
Flux-CLI will process your request and use the list_dir tool to show files.
❯ What files are in the current directory?You'll see Flux-CLI:
- Stream a response explaining what it's doing
- Call the
list_dirtool to explore the directory - Display results in a formatted panel
Step 4: Try Slash Commands
Flux-CLI supports interactive slash commands:
Slash commands provide quick access to configuration and status information.
❯ /help # Show help dashboard
❯ /config # Show current configuration
❯ /stats # Show session statistics
❯ /tools # List all available toolsStep 5: Single-Command Mode
You can also run Flux-CLI with a single prompt:
Runs a single prompt and exits. Useful for automation and scripting.
python main.py "List all Python files in the project"What's Next?
Now that you have Flux-CLI running:
- Read about the Architecture to understand how it works
- Explore the Configuration options
- Learn about CLI Commands and slash commands
- Check out the Examples for real-world usage