oAI Help & Reference

Everything you need to get the most out of oAI — from first setup to advanced configuration.

Quick Start — three steps

01
Add an API key

Press ⌘, to open Settings and add your key for any supported provider.

02
Select a model

Press ⌘M or type /model to choose from hundreds of AI models.

03
Start chatting

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.

💡 Tip Type / 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

OpenRouter
Access 300+ models via a single API key.
openrouter.ai →
Anthropic
Claude Opus, Sonnet, and Haiku models.
console.anthropic.com →
OpenAI
GPT-4, GPT-4 Turbo, GPT-3.5 and o-series.
platform.openai.com →
Google Gemini
Gemini Pro and Flash models from Google.
aistudio.google.com →
Ollama
Run models locally — no API key needed.
ollama.ai →

Adding an API Key

  1. Press ⌘, or type /config to open Settings
  2. Select the Providers tab
  3. Enter your API key for the desired provider
  4. Click Save

Switching Providers

Use the provider dropdown in the header or use slash commands:

/provider anthropic
/provider openai
/provider openrouter

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

/info

Shows context length, pricing, and capabilities for the current model.

Note Your selected model is automatically saved and restored when you restart the app.

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

/retry

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.txt inline in your message
  • Type @~/Documents/image.png for 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)
💡 Tip Large text files are automatically truncated to prevent hitting token limits.

Slash Commands

Commands start with / and provide quick access to every feature. Type / to see inline autocomplete suggestions.

Chat Commands

CommandDescription
/historyView command history with timestamps. Search by text or date.
/clearClear all messages from the current session.
/retryRetry your last message to get a new response.
/memory on|offToggle conversation memory. When off, only your latest message is sent.
/online on|offEnable/disable web search for real-time information.

Model & Provider Commands

CommandDescription
/modelOpen the model selector.
/provider [name]Switch AI provider or show current provider.
/infoDisplay information about the current model.
/creditsCheck your account balance (OpenRouter only).

Conversation Commands

CommandDescription
/save <name>Save the current conversation.
/loadBrowse and load a saved conversation.
/listShow all saved conversations.
/delete <name>Delete a saved conversation.
/export md|jsonExport conversation as Markdown or JSON.

MCP Commands

CommandDescription
/mcp on|offEnable/disable AI file access.
/mcp add <path>Grant AI access to a folder.
/mcp remove <path>Revoke AI access to a folder.
/mcp listShow all accessible folders.
/mcp statusDisplay MCP status and permissions.
/mcp write on|offEnable/disable write permissions.

Shortcuts & Skills Commands

CommandDescription
/shortcutsOpen the Shortcuts manager to create and manage prompt templates.
/skillsOpen the Agent Skills manager to install SKILL.md files.
/<your-command>Run any shortcut you've created — e.g. /summarize.

Settings Commands

CommandDescription
/config, /settingsOpen the settings panel.
/statsShow 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

/memory on
/memory off
Note Memory state is shown in the header with a badge when enabled.

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

  1. Go to Settings → Advanced
  2. Enable Smart Context Selection
  3. Set max context tokens (default: 100,000)

Message Starring

Star important messages to always include them in context, regardless of their age:

  1. Hover over any message
  2. Click the star icon (⭐) in the message header
  3. Starred messages show a filled yellow star
💡 Tip Star key decisions, important facts, or context you always want the AI to remember.

Semantic Search

Find conversations by meaning, not just keywords. Powered by AI embeddings.

Setup

  1. Go to Settings → Advanced → Semantic Search
  2. Enable Enable Embeddings
  3. Requires an API key for OpenAI, OpenRouter, or Google
  4. Choose your embedding provider and model
  5. Click Embed All Conversations (one-time, ~$0.04 for 10k messages)
Provider Priority If multiple API keys are configured, the app uses OpenAI → OpenRouter → Google in that order. Override in Settings.

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

  1. Go to Settings → Advanced → Progressive Summarization
  2. Enable Enable Summarization
  3. 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
/online on

How It Works

  1. Your question is used to search the web (DuckDuckGo / Google)
  2. Relevant results are retrieved
  3. Results are added to your message context
  4. The AI uses the web results to inform its response
Note Online mode is shown in the input bar with a 🌐 badge when active.

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.

⚠️ Security Only grant access to folders you trust the AI to work with. Review permissions carefully before enabling write access.

Setting Up MCP

  1. Enable MCP: /mcp on
  2. Add a folder: /mcp add ~/Projects/myapp
  3. 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
/mcp write on
/mcp write off

For fine-grained control, open Settings → MCP to toggle individual permissions.

Gitignore Respect When enabled in Settings, MCP will automatically ignore files listed in .gitignore files.

Managing Conversations

Save, load, search, and export your chat history.

/save my-project-chat
/load
/list
/delete old-chat
/export md
/export json

Bulk Delete

  1. Open the conversation list (⌘L)
  2. Click Select
  3. Check the conversations to delete
  4. Click Delete (N)
⚠️ Warning Deletion cannot be undone. Consider exporting first.

Git Sync (Backup & Sync)

Automatically export conversations as Markdown and push them to a Git repository — free backup and cross-device sync.

Setup

  1. Go to Settings → Git Sync
  2. Enable Git Sync
  3. Enter your repository URL
  4. Add your Git credentials (stored in Keychain)
  5. Choose sync frequency (on save / on quit / manual)
💡 Tip Works with any Git host: GitHub, GitLab, Gitea, Bitbucket, or self-hosted.

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

  1. Open Settings → Email Handler
  2. Add your IMAP server details and credentials
  3. Set your trigger subject tag
  4. Configure the AI system prompt for responses
  5. Set rate limits (e.g. max 10 replies/hour)
  6. Enable the handler
⚠️ Important Always set rate limits before enabling. An unconstrained email handler can consume API credits quickly.

Shortcuts (Prompt Templates)

Create custom slash commands that expand into full prompt templates. Build a library of reusable instructions.

Creating a Shortcut

  1. Type /shortcuts or open Settings → Shortcuts
  2. Click New Shortcut
  3. Set a command name (e.g. summarize)
  4. Write the prompt template
  5. Save — now /summarize is available in chat
💡 Examples /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

  1. Type /skills to open the Skills manager
  2. Click Install Skill
  3. Select a SKILL.md file
  4. 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
Note Active skills are combined with the default system prompt and any custom prompt. More active skills = more tokens per request.

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
Note The default prompt is always active and cannot be disabled. It ensures the AI doesn't fabricate information.

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:

  1. Default Prompt (always included)
  2. + Your Custom Prompt (if set)
  3. + MCP Instructions (if MCP is enabled)
  4. + Active Agent Skills (if any skills are active)

Editing System Prompts

  1. Press ⌘, to open Settings
  2. Go to the Advanced tab
  3. Scroll to System Prompts
  4. View the default prompt (read-only)
  5. 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

Keyboard Shortcuts

Send message Return
New line ⇧Return
Open Settings ⌘,
Model selector ⌘M
Conversation list ⌘L
Cancel generation Esc
New conversation ⌘N
Command palette /