Prerequisites
- An LLM API key (Anthropic, OpenAI, Groq, or Gemini)
- Terminal access (macOS, Linux, or Windows PowerShell)
Installation
Initialize configuration
Run the interactive setup wizard:The wizard will:
- Create
~/.openfang/directory - Generate a default
config.toml - Prompt you to configure an LLM provider
Configure your LLM provider
When prompted, choose your provider and paste your API key. The wizard supports:The wizard will test your API key and save it to
- Anthropic (Claude) - Recommended for production
- OpenAI (GPT-4) - Widest compatibility
- Groq - Fastest inference, generous free tier
- Gemini - Google’s models
- Ollama - Run models locally
~/.openfang/config.toml.Manual configuration
Manual configuration
If you prefer to configure manually, edit Then set your API key as an environment variable:
~/.openfang/config.toml:config.toml
Start the daemon
Start the OpenFang daemon:The daemon will:Expected output:
- Boot the kernel and load all subsystems
- Start the HTTP API server on
http://127.0.0.1:4200 - Initialize the memory substrate (SQLite)
- Connect to configured channel adapters
Spawn your first agent
Create an agent using the The CLI will:
researcher template:- Show you the template’s manifest
- Prompt for a name (default: “researcher”)
- Create and spawn the agent
What You’ve Built
You now have:- ✅ OpenFang daemon running
- ✅ HTTP API accessible at
http://127.0.0.1:4200 - ✅ A researcher agent with web search capabilities
- ✅ SQLite memory for conversation persistence
Next Steps
Web Dashboard
Open the built-in dashboard to manage agents visually
Create Custom Agents
Build agents with custom tools and prompts
Autonomous Hands
Activate pre-built Hands that work for you 24/7
Connect to Telegram
Deploy your agent to messaging platforms
Try the Dashboard
Open your browser tohttp://127.0.0.1:4200 to access the WebChat UI:
- Chat Interface - Message agents with real-time streaming
- Agent List - View all spawned agents and their status
- Memory Browser - Explore conversation history
- System Status - Monitor token usage and costs
Quick Commands Reference
Activate an Autonomous Hand
Hands are pre-built autonomous agents that run on schedules. Try the Researcher Hand:- Run daily at a configured time
- Research topics you assign
- Build a knowledge graph of findings
- Deliver reports to your configured channel (Telegram, Discord, etc.)
Troubleshooting
Command not found
Command not found
The installer adds Or use the full path:
~/.openfang/bin/ to your PATH, but your shell may need to be restarted:~/.openfang/bin/openfangAPI key invalid
API key invalid
Test your API key configuration:If it fails, reconfigure:
Port 4200 already in use
Port 4200 already in use
Change the listen address in Then restart:
~/.openfang/config.toml:openfang stop && openfang startDaemon won't start
Daemon won't start
Run diagnostics:Check logs:
What’s Next?
Full Installation Guide
Advanced installation options, Docker Compose, systemd services
Configuration
Configure models, channels, security, and memory
Core Concepts
Understand the 14-crate architecture
API Reference
Integrate OpenFang programmatically