Getting Started with IfAI
Welcome to IfAI! This guide will help you get up and running in minutes.
What is IfAI?
IfAI is an AI-native code editor designed for the future of software development. Unlike traditional editors that bolt on AI features, IfAI is built from the ground up with AI at its core.
Key Features
- 🤖 AI Chat Panel - Natural language interface for coding assistance
- 🎹 Composer - Multi-file AI-powered editing
- 🔍 Code Intelligence - Go to Definition, Find References for 35+ languages
- 🔄 AI Refactoring - Automatic code quality improvements
- 🦥 Local LLM Support - Run AI models locally with Ollama
Installation
Download
- Visit GitHub Releases
- Download the latest version for your OS:
- macOS:
IfAI.dmg - Windows:
IfAI-setup.exe - Linux:
ifai.AppImage
- macOS:
Install
macOS:
bash
# Open the DMG and drag IfAI to ApplicationsWindows:
bash
# Run the installer
IfAI-setup.exeLinux:
bash
# Make AppImage executable and run
chmod +x ifai.AppImage
./ifai.AppImageFirst Launch
When you first open IfAI, you'll see:
┌─────────────────────────────────────────────────────────┐
│ Welcome to IfAI! │
│ │
│ [ ] Show tour on startup │
│ │
│ [Start Tour] [Skip] │
└─────────────────────────────────────────────────────────┘Interactive Tour
The tour will guide you through:
- AI Chat - Your AI programming assistant
- File Tree - Navigate your project
- Monaco Editor - Write code with AI assistance
- Inline AI - Quick edits with
Cmd+K
Opening Your First Project
- Click Open Project or press
Cmd+O - Select your project folder
- IfAI will index your code automatically
AI Configuration
Cloud AI Providers
For the best experience, configure an AI provider:
OpenAI:
- Open Settings (
Cmd+,) - Go to AI Provider > OpenAI
- Enter your API key
Anthropic Claude:
- Open Settings (
Cmd+,) - Go to AI Provider > Anthropic
- Enter your API key
Zhipu AI (智谱):
- Open Settings (
Cmd+,) - Go to AI Provider > Zhipu
- Enter your API key
Local LLM (Optional)
For privacy and cost savings:
- Install Ollama
- Download a model:bash
ollama pull qwen2.5-coder - In IfAI Settings, select Ollama as provider
Your First AI Chat
Let's write some code with AI!
- Open a file or create a new one
- Press
Cmd+Kto open AI Chat - Try a prompt:
Create a React component for a user profile card
AI will generate code and insert it into your editor.
Next Steps
- Basic Usage - Learn core features
- AI Chat Guide - Master AI conversations
- Composer Guide - Multi-file editing
- Keyboard Shortcuts - Speed up your workflow
Getting Help
- Documentation: https://github.com/peterfei/ifai/tree/main/docs
- GitHub Issues: https://github.com/peterfei/ifai/issues
- Discussions: https://github.com/peterfei/ifai/discussions
Happy coding with IfAI! 🚀