Getting Started
This guide will help you get started with XunLong in minutes.
Prerequisites
Before you begin, ensure you have:
- Python 3.10 or higher
- pip (Python package manager)
- An API key from OpenAI, Anthropic, or DeepSeek
Installation
1. Clone the Repository
bash
git clone https://github.com/jaguarliuu/xunlong.git
cd XunLong
2. Create Virtual Environment
bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
3. Install Dependencies
bash
pip install -r requirements.txt
4. Install System Dependencies
::: tabs
== macOS
bash
brew install pango gdk-pixbuf libffi
== Ubuntu/Debian
bash
sudo apt-get install libpango-1.0-0 libpangoft2-1.0-0 gdk-pixbuf2.0
== CentOS/RHEL
bash
sudo yum install pango gdk-pixbuf2
:::
5. Install Browser
bash
playwright install chromium
6. Configure Environment
Copy .env.example
to .env
:
bash
cp .env.example .env
Edit .env
and add your API keys:
env
# Choose your LLM provider
OPENAI_API_KEY=your_key_here
# OR
ANTHROPIC_API_KEY=your_key_here
# OR
DEEPSEEK_API_KEY=your_key_here
Your First Generation
Generate a Report
bash
python xunlong.py report "AI Industry Overview 2025"
This will:
- Analyze the topic
- Search for relevant information
- Generate a comprehensive report
- Save it to
storage/
directory
Check the Output
bash
# List generated projects
ls -la storage/
# View the report
cat storage/20251005_*/reports/FINAL_REPORT.md
Next Steps
What's Next?
- Learn about Report Generation
- Explore Fiction Writing
- Try PPT Creation
- Understand the Architecture
Getting Help
If you encounter any issues:
- Check the FAQ
- Search GitHub Issues
- Join our community discussions