Cherry Studio API Configuration
Cherry Studio API Configuration Guide
Cherry Studio is a modern, feature-rich desktop AI client that supports multiple LLM providers through a clean, intuitive interface. It has gained popularity for its ability to manage multiple AI conversations, support various model providers, and provide a polished user experience on Windows, macOS, and Linux. This guide walks you through configuring Cherry Studio to work with different AI API providers, including relay services for enhanced access.
What Is Cherry Studio?
Cherry Studio is a free, open-source desktop application for interacting with AI language models. Think of it as a powerful ChatGPT-like interface that you run locally, with the flexibility to connect to any AI provider you choose. Key features include:
- Multi-provider support — connect to Claude, GPT, Gemini, and more simultaneously
- Conversation management with folders, search, and export
- Custom prompt templates and system prompt management
- Image understanding and file attachment support
- Markdown rendering with code syntax highlighting
- Translation, summarization, and other built-in assistants
- Dark mode and customizable themes
Installation
Download Cherry Studio from its official GitHub releases page. It is available as:
- Windows: .exe installer or portable version
- macOS: .dmg file (supports both Intel and Apple Silicon)
- Linux: AppImage or .deb package
After installation, launch Cherry Studio. The first step is configuring an AI model provider.
Configuring API Providers
Cherry Studio supports adding multiple API providers. Navigate to Settings (gear icon) and then Model Providers to add a new provider.
Setting Up with claude4u.com (Recommended)
Using a relay service gives you access to multiple AI models through a single configuration. Here is how to set it up:
- Open Cherry Studio and go to Settings > Model Providers
- Click Add Provider or select the OpenAI-compatible option
- Configure the following settings:
Provider Name: Claude4U
API Endpoint: https://claude4u.com
API Key: your-api-key-from-claude4u
API Format: OpenAI Compatible
- Click Check Connection to verify the setup
- The available models will be loaded automatically
Setting Up Direct Provider Access
Anthropic Claude (Direct)
Provider Name: Anthropic
API Endpoint: https://api.anthropic.com
API Key: sk-ant-api03-...
API Format: Anthropic
OpenAI GPT (Direct)
Provider Name: OpenAI
API Endpoint: https://api.openai.com
API Key: sk-...
API Format: OpenAI
Google Gemini (Direct)
Provider Name: Google Gemini
API Endpoint: https://generativelanguage.googleapis.com
API Key: your-google-ai-key
API Format: Gemini
Local Models via Ollama
Provider Name: Ollama Local
API Endpoint: http://localhost:11434
API Key: (leave empty)
API Format: OpenAI Compatible
Optimizing Your Cherry Studio Setup
Custom System Prompts
Cherry Studio lets you save and reuse system prompts. Create specialized prompts for different tasks:
- Code Assistant: A system prompt that instructs the model to provide clean, well-commented code with explanations
- Writing Assistant: A prompt focused on clear, concise writing with grammar and style suggestions
- Translator: A prompt that handles multi-language translation with context awareness
- Research Assistant: A prompt for analytical thinking and comprehensive information gathering
Conversation Organization
Use Cherry Studio's folder system to organize conversations by project or topic. This makes it easy to revisit previous AI interactions and maintain context across related conversations. You can also export conversations as Markdown files for documentation.
Model Selection Strategy
Cherry Studio makes it easy to switch between models mid-conversation. Use this to your advantage:
- Start with a fast model (Claude Haiku or GPT-4o-mini) for brainstorming and quick questions
- Switch to a powerful model (Claude Sonnet 4 or GPT-4o) for complex analysis or code generation
- Use reasoning models (Claude Opus 4 or o3) for difficult problems that require deep thinking
Keyboard Shortcuts
Cherry Studio supports keyboard shortcuts for efficient workflow:
- Ctrl/Cmd + N: New conversation
- Ctrl/Cmd + Enter: Send message
- Ctrl/Cmd + Shift + C: Copy last AI response
- Ctrl/Cmd + /: Toggle sidebar
Troubleshooting Common Issues
If you encounter problems connecting Cherry Studio to your API provider, check these common issues:
- Connection failed: Verify the API endpoint URL does not have a trailing slash. Check that your network allows outbound HTTPS connections to the API host.
- Authentication error: Double-check your API key. Make sure you are using the correct key format for the selected API format.
- Models not loading: Some providers require you to manually add model names. Check the provider's documentation for available model identifiers.
- Slow responses: If using a local model via Ollama, ensure your GPU has enough VRAM for the model. Cloud models depend on network latency.
- Streaming not working: Ensure the streaming option is enabled in both Cherry Studio settings and your API provider configuration.
Why Use Cherry Studio with a Relay Service?
Combining Cherry Studio with an API relay service like claude4u.com is the simplest and most flexible setup. You configure one provider with one API key, and instantly gain access to every available model. There is no need to manage separate accounts or API keys for each provider, billing is unified, and you benefit from the relay service's load balancing and higher rate limits. It is the fastest path to a fully functional multi-model AI desktop assistant.
Get Started with 轻舟 AI
Stable, fast AI API relay — supports Claude, OpenAI, Gemini and more
Sign Up Free
轻舟 AI