oAI Help & Reference
Everything you need to get the most out of oAI — from first setup to advanced configuration.
Quick Start — three steps
Press ⌘, to open Settings and add your key for any supported provider.
Press ⌘M or type /model to choose from hundreds of AI models.
Type your message and press Return. Type / to see all commands.
Getting Started
oAI is a powerful AI chat assistant that connects to multiple AI providers including OpenAI, Anthropic, OpenRouter, and local models via Ollama.
/ in the message input to see all available commands with autocomplete suggestions.
AI Providers & API Keys
You need an API key from at least one provider to use oAI. All keys are stored securely in your macOS Keychain.
Supported Providers
Adding an API Key
- Press ⌘, or type
/configto open Settings - Select the Providers tab
- Enter your API key for the desired provider
- Click Save
Switching Providers
Use the provider dropdown in the header or use slash commands:
Selecting Models
Different models have different capabilities, speeds, and costs. Choose the right model for your task.
Opening the Model Selector
- Press ⌘M
- Type
/model - Click the model name in the header
Model Information
Shows context length, pricing, and capabilities for the current model.
Sending Messages
Basic Usage
- Type your message in the input field
- Press Return to send
- Press ⇧Return to add a new line without sending
During Generation
- Press Esc or click the Stop button (red circle) to cancel
- Cancelled responses show a ⚠️ interrupted indicator
Retrying Messages
Resends your last message to generate a fresh response.
File Attachments
Attach files to your messages for the AI to analyse. Supports images, PDFs, and text files.
How to Attach Files
- Click the 📎 paperclip icon to browse and select files
- Type
@/path/to/file.txtinline in your message - Type
@~/Documents/image.pngfor files in your home directory
Supported File Types
- Images — PNG, JPEG, GIF, WebP, BMP, SVG (max 10 MB)
- Documents — PDF (max 10 MB)
- Text — TXT, source code, logs, etc. (max 50 KB)
Slash Commands
Commands start with / and provide quick access to every feature. Type / to see inline autocomplete suggestions.
Chat Commands
| Command | Description |
|---|---|
| /history | View command history with timestamps. Search by text or date. |
| /clear | Clear all messages from the current session. |
| /retry | Retry your last message to get a new response. |
| /memory on|off | Toggle conversation memory. When off, only your latest message is sent. |
| /online on|off | Enable/disable web search for real-time information. |
Model & Provider Commands
| Command | Description |
|---|---|
| /model | Open the model selector. |
| /provider [name] | Switch AI provider or show current provider. |
| /info | Display information about the current model. |
| /credits | Check your account balance (OpenRouter only). |
Conversation Commands
| Command | Description |
|---|---|
| /save <name> | Save the current conversation. |
| /load | Browse and load a saved conversation. |
| /list | Show all saved conversations. |
| /delete <name> | Delete a saved conversation. |
| /export md|json | Export conversation as Markdown or JSON. |
MCP Commands
| Command | Description |
|---|---|
| /mcp on|off | Enable/disable AI file access. |
| /mcp add <path> | Grant AI access to a folder. |
| /mcp remove <path> | Revoke AI access to a folder. |
| /mcp list | Show all accessible folders. |
| /mcp status | Display MCP status and permissions. |
| /mcp write on|off | Enable/disable write permissions. |
Shortcuts & Skills Commands
| Command | Description |
|---|---|
| /shortcuts | Open the Shortcuts manager to create and manage prompt templates. |
| /skills | Open the Agent Skills manager to install SKILL.md files. |
| /<your-command> | Run any shortcut you've created — e.g. /summarize. |
Settings Commands
| Command | Description |
|---|---|
| /config, /settings | Open the settings panel. |
| /stats | Show session statistics (messages, tokens, estimated cost). |
Memory & Context
oAI features an enhanced memory system with intelligent message selection, semantic search, and automatic summarisation to keep your conversations fast and cost-efficient.
Basic Memory Control
Smart Context Selection
When enabled, oAI intelligently selects which messages to include instead of sending your entire history — reducing token usage by 50–80% while maintaining context quality.
- Always includes the last 10 messages
- Includes starred (important) messages
- Includes high-value messages (detailed content, high cost)
- Respects the model's context window limit
Enabling Smart Context
- Go to Settings → Advanced
- Enable Smart Context Selection
- Set max context tokens (default: 100,000)
Message Starring
Star important messages to always include them in context, regardless of their age:
- Hover over any message
- Click the star icon (⭐) in the message header
- Starred messages show a filled yellow star
Semantic Search
Find conversations by meaning, not just keywords. Powered by AI embeddings.
Setup
- Go to Settings → Advanced → Semantic Search
- Enable Enable Embeddings
- Requires an API key for OpenAI, OpenRouter, or Google
- Choose your embedding provider and model
- Click Embed All Conversations (one-time, ~$0.04 for 10k messages)
Progressive Summarisation
For very long conversations, oAI automatically summarises older messages to save tokens while preserving context.
- Triggers when conversation exceeds threshold (default: 50 messages)
- Older messages (0–30) are summarised into 2–3 paragraphs
- Recent messages (last 20) always sent in full
- Summaries included in system prompt for context
- Cost: ~$0.001 per summary — roughly $0.01/month for heavy users
Enabling Summarisation
- Go to Settings → Advanced → Progressive Summarization
- Enable Enable Summarization
- Set message threshold (default: 50)
Online Mode (Web Search)
Enable the AI to search the web for current information before responding.
When to Use
- Questions about current events or recent news
- Real-time data (weather, stocks, sports results)
- Information beyond the AI's training cutoff date
How It Works
- Your question is used to search the web (DuckDuckGo / Google)
- Relevant results are retrieved
- Results are added to your message context
- The AI uses the web results to inform its response
MCP (File Access)
MCP (Model Context Protocol) allows the AI to read — and optionally write — files on your Mac. Ask the AI questions about your own code, documents, and projects.
Setting Up MCP
- Enable MCP:
/mcp on - Add a folder:
/mcp add ~/Projects/myapp - Ask the AI questions about your files
Read Permissions (always on when MCP is enabled)
- Read file contents
- List directory contents
- Search for files
- Get file metadata (size, modified date, etc.)
Write Permissions (optional, disabled by default)
- Write and edit files
- Create new files and directories
- Delete files
- Move and copy files
For fine-grained control, open Settings → MCP to toggle individual permissions.
.gitignore files.
Managing Conversations
Save, load, search, and export your chat history.
Bulk Delete
- Open the conversation list (⌘L)
- Click Select
- Check the conversations to delete
- Click Delete (N)
Git Sync (Backup & Sync)
Automatically export conversations as Markdown and push them to a Git repository — free backup and cross-device sync.
Setup
- Go to Settings → Git Sync
- Enable Git Sync
- Enter your repository URL
- Add your Git credentials (stored in Keychain)
- Choose sync frequency (on save / on quit / manual)
Email Handler (AI Assistant)
Monitor an IMAP inbox and let oAI automatically respond to emails with a specific subject tag — your personal AI secretary.
Features
- IMAP monitoring with configurable polling interval
- Trigger by subject tag (e.g.
[AI]) - Custom system prompt per inbox
- Rate limiting to prevent runaway costs
- AES-256 encrypted credential storage
- SMTP sending with configurable from-address
Setup
- Open Settings → Email Handler
- Add your IMAP server details and credentials
- Set your trigger subject tag
- Configure the AI system prompt for responses
- Set rate limits (e.g. max 10 replies/hour)
- Enable the handler
Shortcuts (Prompt Templates)
Create custom slash commands that expand into full prompt templates. Build a library of reusable instructions.
Creating a Shortcut
- Type
/shortcutsor open Settings → Shortcuts - Click New Shortcut
- Set a command name (e.g.
summarize) - Write the prompt template
- Save — now
/summarizeis available in chat
/explain → "Explain this code in simple terms:", /review → "Review this code for bugs and improvements:", /tweet → "Rewrite this as a tweet under 280 characters:"
Agent Skills (SKILL.md)
Install SKILL.md files that give the AI specialised behavioural instructions — like plugins for the AI's personality and capabilities.
Installing a Skill
- Type
/skillsto open the Skills manager - Click Install Skill
- Select a
SKILL.mdfile - The skill's instructions are appended to the system prompt automatically
Managing Skills
- Toggle individual skills on/off without removing them
- View the content of each installed skill
- Delete skills you no longer need
System Prompts
System prompts are instructions sent to the AI with every message — they set its personality, tone, and constraints before it sees any user input.
Default System Prompt
oAI ships with a carefully crafted default prompt that emphasises:
- Accuracy First — never invent information
- Ask for Clarification — request details when requests are ambiguous
- Be Direct — concise, relevant answers
- Stay Grounded — base responses on facts, not speculation
Custom System Prompt
Add your own instructions that are appended to the default prompt:
- Define a specific role: "You are a Python expert"
- Set output preferences: "Always provide code examples"
- Add domain context or establish tone
How Prompts Are Combined
The complete system prompt sent with every message is:
- Default Prompt (always included)
- + Your Custom Prompt (if set)
- + MCP Instructions (if MCP is enabled)
- + Active Agent Skills (if any skills are active)
Editing System Prompts
- Press ⌘, to open Settings
- Go to the Advanced tab
- Scroll to System Prompts
- View the default prompt (read-only)
- Add custom instructions in the editable field below
Settings
Open Settings with ⌘, or by typing /settings.
General Tab
- App theme and appearance
- Font size for the chat interface
- Notification preferences
Providers Tab
- Add / remove API keys for each provider
- Set default provider and model
- Test API key validity
MCP Tab
- Manage accessible folders
- Toggle individual read/write permissions
- Enable gitignore respect
Git Sync Tab
- Repository URL and credentials
- Sync frequency configuration
- Manual sync trigger
Advanced Tab
- Enable/disable streaming responses
- Set maximum tokens (response length limit)
- Adjust temperature (creativity vs focus)
- Configure system prompts
- Smart Context Selection — reduce token usage intelligently
- Semantic Search — AI-powered conversation search
- Progressive Summarisation — auto-summarise long conversations