How to Set Up Cloud AI for Auto-Sort
AI Chat Importer's Auto-Sort feature can use cloud AI providers instead of a local Ollama model. This is useful if your machine doesn't have enough RAM to run a local model comfortably, or if you want faster sorting results. This guide covers getting an API key from each supported provider and entering it in AI Chat Importer's settings.
OpenAI
- Go to platform.openai.com and sign up or log in.
- Navigate to Settings → Billing and add a payment method — OpenAI requires a funded account before API keys will work.
- A small starting credit (a few dollars) is enough for many months of Auto-Sort usage.
- Go to API Keys in the left sidebar.
- Click Create new secret key.
- Give it a name like “AI Chat Importer” so you can identify it later.
- Copy the key immediately — it will not be shown again.
- Open the desktop app and go to Settings → Auto-Sort.
- Select OpenAI as the provider.
- Paste your API key into the API Key field.
- Set the model to
gpt-4o-mini— it is fast, accurate, and very low cost for classification tasks. - Click Test Connection to confirm it is working.
Anthropic
- Go to console.anthropic.com and sign up or log in.
- Navigate to Billing and add a payment method — Anthropic requires a funded account before API keys will work.
- Go to API Keys in the left sidebar.
- Click Create Key.
- Give it a name like “AI Chat Importer”.
- Copy the key immediately — it will not be shown again.
- Open the desktop app and go to Settings → Auto-Sort.
- Select Anthropic as the provider.
- Paste your API key into the API Key field.
- Set the model to
claude-haiku-4-5— it is the fastest and most cost-effective Claude model for classification tasks. - Click Test Connection to confirm it is working.
Google Gemini
- Go to aistudio.google.com and sign in with your Google account.
- Click Get API Key in the left sidebar.
- Click Create API key and select a Google Cloud project (or create a new one).
- Copy the key.
- Open the desktop app and go to Settings → Auto-Sort.
- Select Gemini as the provider.
- Paste your API key into the API Key field.
- Set the model to
gemini-1.5-flash— it is fast and has a generous free tier suitable for Auto-Sort. - Click Test Connection to confirm it is working.
OpenRouter
- Go to openrouter.ai and sign up or log in.
- OpenRouter gives you access to dozens of AI models through a single API key — useful if you want to try different models without separate accounts.
- Go to Credits and add a small amount — a few dollars covers a large volume of Auto-Sort requests.
- Go to Keys and click Create Key.
- Give it a name and copy the key.
- Open the desktop app and go to Settings → Auto-Sort.
- Select OpenRouter as the provider.
- Paste your API key into the API Key field.
- Set the model to
mistralai/mistral-7b-instruct— a good balance of speed and accuracy at very low cost. - Click Test Connection to confirm it is working.
Troubleshooting
“Invalid API key” error
Double-check you copied the full key with no spaces at the start or end. API keys are long strings — it is easy to accidentally cut off the last few characters when copying. Create a new key if in doubt.
“Insufficient credits” or billing error
OpenAI and Anthropic require a funded account before their API keys work — even for very small amounts. Go to the billing section of your provider's dashboard and add a payment method or top up your credit balance.
Test Connection passes but Auto-Sort produces no results
Make sure you have conversations imported before running Auto-Sort. If conversations are imported and it still produces nothing, check the model name matches exactly what is shown in your provider's documentation — model names are case-sensitive.
You're all set
Cloud Auto-Sort is the fastest way to organise a large archive. Once your API key is configured, sorting hundreds of conversations typically takes under a minute. Costs are minimal — most users spend less than $1 per month on Auto-Sort requests.
Prefer to keep everything local? Read the Ollama setup guide →