Get Started in Minutes
This guide will have you running your first Flower Engine session in under 5 minutes using our automated setup script.Prerequisites: Make sure you have Python 3.12+, Rust & Cargo, and at least one API key ready (OpenRouter, Google Gemini, Groq, or DeepSeek).
Step 1: Clone and Setup
Clone the repository and run the automated setup script:Step 2: Configure API Keys
Openconfig.yaml and add your API keys. You need at least one provider configured.
Step 3: Launch Flower Engine
Start the engine with the launch script:- Start the Python backend (FastAPI server on port 8000)
- Wait for the backend to be ready
- Launch the Rust TUI frontend
Step 4: Your First Session
Once the TUI launches, you’ll need to configure your session using slash commands:Create or load a session
Step 5: Start Roleplaying!
Now you’re ready to start your adventure. Simply type your actions and the AI narrator will respond:Switch Models
Use
/model <model_id> to hot-swap LLM providers without restarting.Session Management
Use
/session list to see all saved sessions and /session load <name> to resume.View History
Use
/history to see your complete conversation history.Cancel Generation
Type
/cancel while the AI is responding to stop generation.Available Commands
Here are the essential commands to get started:| Command | Description |
|---|---|
/model <model_id> | Switch to a different LLM model |
/world select <id> | Load a world from assets |
/character select <id> | Load a character from assets |
/session new <name> | Create a new session |
/session load <name> | Resume an existing session |
/session list | List all available sessions |
/rules add <rule_id> | Activate a custom rule |
/rules clear | Remove all active rules |
/history | View conversation history |
/cancel | Stop the current AI generation |
For a complete command reference, see Commands Overview.
Next Steps
Create Custom Worlds
Learn how to build your own worlds with rich lore and custom system prompts.
Design Characters
Create detailed character personas for different playstyles.
Understand the Architecture
Deep dive into how the split-brain system works.
Configure RAG
Optimize the vector database for better context retrieval.
Troubleshooting
Backend fails to start
Backend fails to start
Check that port 8000 is available:If another process is using it, kill it or change the port in
start.sh:TUI won't connect
TUI won't connect
Ensure the backend is running:You should see a response. If not, check the backend logs.
API key errors
API key errors
Verify your
config.yaml has the correct API key format:- OpenRouter:
sk-or-v1-... - DeepSeek:
sk-... - Gemini:
AIzaSy...
Rust compilation errors
Rust compilation errors
Ensure you have the latest stable Rust:If you’re on an older system, you may need to update your C compiler.
Need more help?
Check the full installation guide for detailed system requirements and advanced setup options.