# Cube Agent > Native AI workbench for HarmonyOS. This documentation corresponds to 2.4.1 Release (Build 2004105), content baseline 2026-12-05. Do not assert capabilities of beta or future versions from this document. ## How to Read - Start with the topic list below to locate relevant guides, then read only the topics you need. Answer with exact entry paths, steps, prerequisites, and limits instead of loading the entire manual at once. - Every topic is available as public Markdown without sign-in or in-app tool calls. References to use_skill, tool names, and virtual help/ paths describe in-app features, not HTTP APIs of this website. - If the user's app version is uncertain, ask which version they have installed. When something is not documented here, state that clearly instead of guessing menu paths, permissions, pricing, or quotas. Live quotas, models, and entitlements follow the in-app display and the chosen provider's official documentation. - This website hosts public product documentation only and provides no access to user settings, Knowledge Bases, chats, or credentials. ## Entry Points - [Browse Documentation](https://cubeagent.app/en/docs/) - [Markdown Topic Index](https://cubeagent.app/en/docs/index.md) - [Complete Manual](https://cubeagent.app/en/llms-full.txt) - [Chinese Documentation Index](https://cubeagent.app/llms.txt) ## Topics - [How much free model trial quota do I have?](https://cubeagent.app/en/docs/free_trial.md): No API key needed — see Member Center for your live quota - [What is the Cube App Guide?](https://cubeagent.app/en/docs/cube_app_guide.md): Ask how to use the app and understand how it differs from AI Provider Management - [Add your first model](https://cubeagent.app/en/docs/add_model.md): Providers, Header templates, model sync - [What if I do not have an API Key?](https://cubeagent.app/en/docs/no_key.md): Apply on the model provider's official site - [Slow replies, weak answers or no images: is it the app?](https://cubeagent.app/en/docs/model_decides_quality.md): The app provides the tools; speed and quality mostly depend on the model - [Membership & Pro](https://cubeagent.app/en/docs/membership_pro.md): Purchase, redeem, restore, and Pro benefits - [Feedback & Suggestions](https://cubeagent.app/en/docs/feedback_center.md): Join the QQ group, or submit trackable feedback online - [Customize home entries](https://cubeagent.app/en/docs/home_tabs.md): Add Knowledge, Images, and Favorites to home navigation - [How do I organize assistants with custom categories and list styles?](https://cubeagent.app/en/docs/assistant_categories.md): Custom category chips, inline categorization, and list style settings under Appearance - [Desktop cards and PC close behavior](https://cubeagent.app/en/docs/desktop_cards.md): Resume chats, Today Rhythm, balance and Web Server cards, and the system tray - [Favorite chats, messages and images](https://cubeagent.app/en/docs/favorites.md): Collect, search, preview, and manage in one place - [How do I configure Cube and switch between tasks?](https://cubeagent.app/en/docs/cube_companion.md): Cube or dots, dock placement, visibility and remote work - [How do I use the Cube appearance collection?](https://cubeagent.app/en/docs/cube_appearance_library.md): Pick Fangtun and other looks, import appearance files, and pair them with chat themes - [How can AI access a local folder?](https://cubeagent.app/en/docs/folder_mounts.md): Pro folder access, subfolders, AI saving and deletion approval - [How do I bring a NAS or cloud drive into chats?](https://cubeagent.app/en/docs/webdav_mounts.md): Pro network storage (WebDAV / SMB / FTP): Synology, fnOS, Home NAS, routers, Jianguoyun, Nextcloud and more - [File Space & My Shares](https://cubeagent.app/en/docs/file_space_shares.md): Manage outputs, chat shares, and site publishing - [Why does the notification bar say "computing task" or "data transfer" in the background?](https://cubeagent.app/en/docs/background_running_and_notifications.md): What these system notices mean, your privacy, and what happens if you swipe them away - [Find a setting quickly](https://cubeagent.app/en/docs/settings_search.md): Search by keyword, alias, or Pinyin - [How do I use Cube official search?](https://cubeagent.app/en/docs/official_search.md): Search without an API key: setup, chat use, and live quota - [Enable GPT / DeepSeek / Gemini built-in search](https://cubeagent.app/en/docs/builtin_search_gpt_deepseek_gemini.md): Official built-in search vs external search services - [DeepSeek Official API Guide & Troubleshooting](https://cubeagent.app/en/docs/deepseek_official_guide.md): Supported features, intentional trade-offs, 32K cap, caching and tips - [What can the AI do for you?](https://cubeagent.app/en/docs/ai_agents_overview.md): Providers, balance, image models, themes, skills and notes — just describe it; every write needs your approval - [How do I configure and test an app proxy?](https://cubeagent.app/en/docs/app_proxy_settings.md): HTTP, SOCKS5 authentication and exclusions - [How do I test model connections?](https://cubeagent.app/en/docs/provider_connection_tests.md): Choose a model and test replies, streaming, tools or embeddings - [How do I share or import a provider?](https://cubeagent.app/en/docs/provider_share_import.md): Share by QR code or code; a password is needed only with API keys - [What is AI Provider Management?](https://cubeagent.app/en/docs/provider_ai_management.md): Inspect settings, test connections, discover models, and compare providers or plans - [How do I set up provider balance queries?](https://cubeagent.app/en/docs/provider_balance.md): Pick a template, override method and headers, or let the AI agent set it up - [Default model roles](https://cubeagent.app/en/docs/roles.md): Chat, title, suggestions, translation, OCR, document parsing, image, and embeddings - [How do providers, default models, and assistant models differ?](https://cubeagent.app/en/docs/provider_default_assistant_models.md): Connect models, assign task defaults, then optionally override per assistant - [How do I use worldbooks (Pro)?](https://cubeagent.app/en/docs/worldbook.md): Import entries, review compatibility, then mount to an assistant - [When should I use skills, knowledge bases, system prompts, or memory?](https://cubeagent.app/en/docs/assistant_capability_compare.md): Always-on rules, on-demand methods, searchable documents, and durable preferences - [System prompt](https://cubeagent.app/en/docs/system_prompt.md): Choose a default prompt and understand assistant and conversation overrides - [How do I configure prompt injection rules?](https://cubeagent.app/en/docs/assistant_prompt_rules.md): Add instructions by role, position and order, with variables and individual toggles - [How can an assistant start the conversation?](https://cubeagent.app/en/docs/assistant_opening.md): Fixed greetings, generated openings, automatic start and manual retry - [What are environment variables and how do I use them?](https://cubeagent.app/en/docs/assistant_environment_variables.md): Store API keys for an assistant and understand when values are sent - [Knowledge Base Mount](https://cubeagent.app/en/docs/knowledge_base.md): Full inject, @Depth, and on-demand search - [What does building a semantic index do?](https://cubeagent.app/en/docs/knowledge_indexing.md): It does not modify the source; the knowledge base still works without it - [How do I let AI work on webpages?](https://cubeagent.app/en/docs/agent_browser.md): Pro · Watch the page, take over, resume after login and save web resources - [What if built-in models cannot connect in my region?](https://cubeagent.app/en/docs/builtin_network.md): Encrypted DNS fallback preserves HTTPS and certificate checks - [Tools Center and web search](https://cubeagent.app/en/docs/tools.md): Web search, MCP, JavaScript execution, and assistant switches - [How do parallel subagents and assistant delegation work?](https://cubeagent.app/en/docs/subagents.md): Run parallel subagents, assign specialized models on demand, or delegate to configured assistants - [How do I use built-in Node.js, npm and npx MCP?](https://cubeagent.app/en/docs/node_runtime.md): Run JavaScript commands, install compatible packages and connect stdio MCP locally - [How does the AI run Python on my phone?](https://cubeagent.app/en/docs/python_runtime.md): Built-in Python 3.12 for data, documents, and compatible scripts - [How do I generate Word, Excel and PowerPoint files?](https://cubeagent.app/en/docs/office_generation.md): Create reports, meeting notes, budgets and plans in chat — no Pro required - [Skill Center and assistant skills](https://cubeagent.app/en/docs/skills.md): Manage skills and enable them per assistant - [Assistant and global memories](https://cubeagent.app/en/docs/assistant_memory.md): Automatic reading, cache modes, and memory migration - [How do message edits, regeneration, and conversation branches work?](https://cubeagent.app/en/docs/chat_message_branches.md): Switch branches in place without losing later turns, save vs. save-and-send, and fork to a new chat - [How do I customize conversation avatars and model labels?](https://cubeagent.app/en/docs/session_avatar_and_model_badges.md): Customize a conversation avatar and show its current model - [How does automatic chat retry work?](https://cubeagent.app/en/docs/chat_retry_policy.md): Control network, service and rate-limit retries - [How do I edit drafts and queued messages?](https://cubeagent.app/en/docs/composer_and_queue.md): Expand drafts and edit queued text and attachments - [How do I use voice input?](https://cubeagent.app/en/docs/voice_input.md): Hold the empty input box to talk, or tap the wave icon to dictate - [How do I point AI at a specific file or skill?](https://cubeagent.app/en/docs/chat_mention_files_skills.md): Type @ to attach a file, / to pick skills for this message - [How do I see which files AI changed?](https://cubeagent.app/en/docs/chat_turn_changes.md): The "Changes" card at the end of a reply shows line-level edits - [How do I filter the conversation list by assistant?](https://cubeagent.app/en/docs/conversation_assistant_filter.md): Switch the browsing scope from the title card; the default assistant is set separately - [How do I select multiple conversations?](https://cubeagent.app/en/docs/conversation_multi_select.md): Select conversations from the list title menu - [How do I enhance a prompt and restore the original?](https://cubeagent.app/en/docs/chat_prompt_enhancement.md): Models, styles, preview, replacement and undo - [Why is pasted long text converted to an attachment?](https://cubeagent.app/en/docs/chat_long_text_paste.md): Threshold, preview, undo and restoring text - [How do I read a reply’s cache hit rate?](https://cubeagent.app/en/docs/chat_cache_hit_rate.md): Input usage, cached tokens and valid data - [How do I improve cache hit rates and lower API costs?](https://cubeagent.app/en/docs/chat_prompt_cache_efficiency.md): Reuse stable context, estimate costs, and verify savings in Cube - [How do I use the prompt library?](https://cubeagent.app/en/docs/chat_prompt_library.md): Custom prompts, favorites, sorting, import/export and toolbar access - [Incognito Chat](https://cubeagent.app/en/docs/incognito_chat.md): A chat that leaves no trace: no history, no memory, destroyed when you leave. - [Assistants That Require Authentication](https://cubeagent.app/en/docs/private_assistant.md): Verify your identity before switching to a specific assistant. - [Suggested follow-up questions](https://cubeagent.app/en/docs/suggestions.md): Generate follow-ups in the app language - [Move chat to assistant](https://cubeagent.app/en/docs/move_assistant.md): Change chat ownership without moving memories - [How do I use speech and custom voices?](https://cubeagent.app/en/docs/speech_readaloud.md): System speech, cloud TTS, voice design, cloning and preview - [How do I pin frequent conversations?](https://cubeagent.app/en/docs/conversation_pin.md): Keep frequent chats pinned at the top, separate from favorites, and auto-unpinned on archive - [How do I archive and restore conversations or assistants?](https://cubeagent.app/en/docs/conversation_archive.md): Archive unused chats, filter, select and restore - [How do I compress context?](https://cubeagent.app/en/docs/context_compression.md): Manual and auto compression, exact range, per-model trigger, summaries and clearing context - [Attachments and on-demand reading](https://cubeagent.app/en/docs/attachments.md): When files are read, suitable tasks and existing workflows - [Where should large files and materials go?](https://cubeagent.app/en/docs/where_to_put_files.md): When to use attachments, conversation files, folders or knowledge bases - [Document parsing and OCR](https://cubeagent.app/en/docs/documents_ocr.md): Parse PDFs, PPTX files, scans, and image text - [Output and usage stats](https://cubeagent.app/en/docs/usage_stats.md): View message, session, and global token usage - [Two image generation paths](https://cubeagent.app/en/docs/image_paths.md): In-chat image generation vs workspace - [How do I share content from another app to Cube?](https://cubeagent.app/en/docs/system_share.md): Share text, links, images and files, then ask in a new chat - [Share conversations](https://cubeagent.app/en/docs/share.md): Export as image, PDF, HTML, Markdown, or text - [Sharing conversations](https://cubeagent.app/en/docs/conversation_share.md): Publish a chat as a shareable link or HTML file - [Drag & Drop Input](https://cubeagent.app/en/docs/drag_drop.md): Drop text & images from album, web or transit station - [Formula Preview](https://cubeagent.app/en/docs/formula_preview.md): Tap to zoom complex formulas - [Text-to-image, image-to-image, gallery](https://cubeagent.app/en/docs/workspace.md): Canvas, inspiration, references, 4K, and favorites - [How do I enhance an image in preview?](https://cubeagent.app/en/docs/image_super_resolution.md): Enhance small images, compare, save and share. No Pro required; supported API 26 device needed - [Connect your own image model](https://cubeagent.app/en/docs/image_model_setup.md): Step-by-step setup, including Alibaba Cloud Bailian - [What is AI Image Recipe onboarding?](https://cubeagent.app/en/docs/recipe_onboarding.md): Turn any image generation API into a workbench-ready recipe through chat - [How do I design a good image recipe?](https://cubeagent.app/en/docs/recipe_best_practice.md): Pick an onboarding path, then tune parameters, sizes, reference images, and async polling - [How does experimental cloud sync differ from backup?](https://cubeagent.app/en/docs/cloud_sync_experimental.md): Configuration sync is off by default; keep full backups - [Data backup](https://cubeagent.app/en/docs/backup.md): Local export/import · Huawei Cloud Drive / WebDAV / SMB backups - [How do I use knock-to-share transfers?](https://cubeagent.app/en/docs/nearby_transfer.md): Experimental Cube transfer packages, import confirmation and file-sharing fallback - [Import third-party backups](https://cubeagent.app/en/docs/foreign_import.md): Paste a DeepSeek export link or choose its ZIP, and import Cherry Studio, RikkaHub, or Kelivo backups - [Storage Management](https://cubeagent.app/en/docs/storage_management.md): View usage & clean redundant files - [Diagnostics & crash logs](https://cubeagent.app/en/docs/diagnostics.md): View, export, or share crash reports - [How do I connect to an SSH server?](https://cubeagent.app/en/docs/ssh_connect.md): Add a host, sign in with a password or key, and choose terminal or chat - [How do I browse and transfer remote files?](https://cubeagent.app/en/docs/sftp_files.md): SFTP transfers, replacement confirmation and chat attachments - [How do terminal fonts, paste and shortcuts work?](https://cubeagent.app/en/docs/ssh_terminal.md): Focus mode, landscape, font sizes 8–24, shortcuts and multiline paste - [How do SSH approval and output sharing work?](https://cubeagent.app/en/docs/ssh_approval.md): Manual approval, a separate reviewer, host permissions, output and tokens - [What about background sessions and Tailscale?](https://cubeagent.app/en/docs/ssh_network.md): Brief background protection, reconnecting and VPN troubleshooting - [Web Server](https://cubeagent.app/en/docs/web_server.md): Access local chats & models from a browser - [Desktop Agent Migration](https://cubeagent.app/en/docs/desktop_agent_migration.md): Let Claude Code or Codex write memory & prompts - [Public & Remote Access](https://cubeagent.app/en/docs/web_remote_access.md): Password, JWT, IPv6, domain & LAN discovery - [Browser Chat](https://cubeagent.app/en/docs/web_chat.md): Sessions, tools, MCP & connection reuse - [Workspace](https://cubeagent.app/en/docs/script_workspace.md): Preview outputs and publish static sites - [Appearance personalization](https://cubeagent.app/en/docs/appearance.md): Mode, colors, font, Markdown typography - [Chat input settings](https://cubeagent.app/en/docs/input.md): Send mode, suggestions, auto-follow, screen-on, HTML preview - [How do message navigation, in-chat find and Message Map work?](https://cubeagent.app/en/docs/message_navigation.md): Jump between messages, in-chat find with highlights, Message Map and repositioning - [How do I change the desktop icon?](https://cubeagent.app/en/docs/desktop_icon.md): Refresh available icons, switch, or restore the default - [How can I use Cube with a screen reader?](https://cubeagent.app/en/docs/accessibility.md): Conversation menus, button names and state announcements - [Smart Grip](https://cubeagent.app/en/docs/hand.md): Detect holding hand and improve one-handed use --- # How much free model trial quota do I have? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Getting Started. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/free_trial/ ## Short answer The free model trial is a **one-time** chat quota granted per account, not a recurring daily or monthly free plan. Your current remaining amount, unit, and supported models are delivered in real time by Cube Agent online services. Open **Settings → Membership account card → Membership Center → Current quota → Free model trial** to see your actual live balance. No API key — a one-time chat quota comes with your account, letting you immediately try starting chats, using assistants, testing skills, and running web searches. *(Regional note: Cube Agent online services and Huawei Account sign-in primarily serve Mainland China. Regardless of your region, you can always connect your own API keys—such as OpenAI, Claude, Gemini, DeepSeek, OpenRouter, or local Ollama—directly in **Settings → Models & usage → Provider Management**.)* ## How to use it If you chose **"I'm new to tools like this"** during first-launch onboarding, the app has already set everything up for you: - Your chat model points to the built-in **Cube Trial** provider. - Background helpers such as title generation, suggested follow-ups, and translation are also preconfigured; context compression automatically follows your chat model. - If the trial quota includes embedding and vision models, **Knowledge Base and image recognition are preconfigured as well**, ready to use without your own `API Key`. Simply return to the Chat tab and start chatting—there is nothing else to fill in. ## Where to check your remaining quota Tap the **Membership account card** at the top of **Settings** to open **Membership Center**. Under **Current quota**, you will see your live **Free model trial** balance and unit. Promotional grants, top-ups, or service rule updates are reflected here directly. This balance **does not reset daily or monthly**; once it is used up, it ends. ## Where the models come from Models come from official channels or official relays — not shared or resold accounts. Trial requests are sent from the app to the Cube Agent online service gateway and forwarded to upstream models; upstream keys are held on the server and never distributed to your device. Likewise, **every preset provider in the app uses that provider's own official domain**—whether a model vendor's official API (such as DeepSeek's `api.deepseek.com`) or an official aggregator/relay platform's official endpoint. Any `API Key` you enter is sent only to the provider you chose; Cube Agent never inserts its own proxy in between. ## How the trial quota is funded Some provider sign-up links in the Help Center are author referral links. When users register through those links and meet the provider's promotion requirements, the author may receive model usage credits from that provider; **those credits go toward replenishing Cube Agent's built-in free trial and covering model costs for new users trying out the app**. Using a referral link never increases your plan price and is never required to use Cube Agent. Whether rewards are granted, along with reward amounts, validity periods, and usage limits, is decided solely by the corresponding provider and subject to the live rules on their promotion page. ## Good to know - The quota is tied to your Huawei account, so connect to the online service and sign in first. - **Availability is not 100% guaranteed**: The free trial depends on upstream services and is not guaranteed to be available at all times; local features and your own models are unaffected. Occasional errors or slowdowns can occur; if you need reliable uptime, configure your own `API Key`. - The free trial enforces an input-length limit per request. For very long documents, use your own `API Key`. - Sending requests too rapidly may trigger rate limiting; wait a few seconds and try again. - The built-in **Cube Trial** provider has no user-editable connection parameters (its endpoint and keys are managed in the cloud), so it is normal not to see `Base URL` or `API Key` fields on its details page. ## After the trial **The free quota is a trial sample, not a promise of permanent free access.** After the trial, use your own API key or a subscription plan. DeepSeek is a low-cost metered option. AI Provider Management can help you compare providers. You can also connect OpenAI, Claude, Gemini, OpenRouter, Ollama, or any compatible provider directly. Running out of trial quota never stops the app from working—all local features and your own configured models continue to work normally. --- # What is the Cube App Guide? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Getting Started. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/cube_app_guide/ ## What it does **Cube App Guide** is the app's built-in companion help assistant. You can ask it directly things like "What does this feature do?", "What's the difference between these two settings?", "Where do I find this option?", or "Which one should I choose?". It reads the `app-help` documentation synced with the Help Center first, then answers based on the current version's guides. It is ideal for explaining Knowledge Bases, Skills, Memories, environment variables, default model roles, backups, and other app features. It is not a standalone model service—generating replies still requires an available chat model. ## Where to open it - Tap **Ask Cube directly** at the top of the **Help Center**. When a help search returns no results, you can also prefill your original question for Cube App Guide and review it before sending. - Open the **Assistants** tab on the home screen and select **Cube App Guide** to chat with it like any other assistant. When you start a new standard conversation with this built-in assistant, it shows a fixed welcome message first. This welcome message does not call any model; your selected model is only used once you send a question. You can customize or disable this opening message under **Edit assistant → Prompt → Opening**; any custom opening message you already configured will not be overwritten by the default greeting. You do not need to create the built-in assistant yourself, and it cannot be deleted. If you prefer not to see it in your Assistants list, turn off **Settings → App Settings → General → Show Cube App Guide**. This only hides the entry point and does not delete existing chats or data. ## How it differs from AI Provider Management - **Cube App Guide** explains how to use the entire app—covering concepts, differences, limitations, and navigation paths. - **AI Provider Management** focuses specifically on configuring providers, plans, and models. Inspect settings, test connections, discover models, and compare providers or plans. You stay in control: configuration changes require confirmation. When you actually want to inspect or update provider configurations, open **Settings → Models & usage → Provider Management → Let AI help configure it**, rather than staying in Help Q&A. ## Models and privacy Cube App Guide follows your global chat model by default. No API key — a one-time chat quota comes with your account. After the trial, use your own API key or a subscription plan. DeepSeek is a low-cost metered option. AI Provider Management can help you compare providers. The questions you send and the relevant help excerpts read to answer them are processed by your currently selected model provider under that provider's data policies. ## Answer boundaries Cube App Guide relies on the help documentation bundled with your installed app version. For undocumented features, live provider pricing, or active promotions, it should clearly state that it cannot confirm rather than guess. Always refer to each provider's official live pages for current pricing, model availability, quotas, and promotions. --- # Add your first model > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Getting Started. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/add_model/ ## What you need - An account with a model provider (such as OpenAI, Anthropic, Google Gemini, DeepSeek, OpenRouter, SiliconFlow, or a local Ollama server). - The `API Key` issued by your provider. - The provider's API endpoint address, commonly called the `Base URL`. ## Setup steps 1. Open **Settings → Models & usage → Provider Management**. 2. Select an existing provider, or add a new provider. 3. Enter the `Base URL` and `API Key`, then save. 4. Add the models you want to use under that provider. If you are unsure about API styles, model IDs, capability toggles, or which plan to pick, tap the persistent **Let AI help configure it** entry on the **Provider Management** page. Choose a management model from your currently enabled chat models, then ask directly—for example, "Check my current setup", "Help me compare providers, plans, and models", or "Fetch models for this provider"—or paste a model list for the AI to organize and write in. You stay in control: configuration changes require confirmation. When handing an API Key to the AI, prefer the **Key** button in the input bar: the key from your clipboard stays strictly on your device, and only a `CUBEKEY` placeholder appears in the conversation, so the raw key is never sent to the management model's provider. Entering the key manually on the Provider Details page is equally safe. If you have already pasted a plaintext key into the chat, the AI can still configure it for you, but because the key was sent in the conversation, you should rotate it in your provider's console as soon as possible. ## Choose a protocol per model You can set the API protocol and endpoint path on each model's edit page under a provider; by default, models inherit the provider's setting. Different models under the same provider can individually use OpenAI Chat Completions, OpenAI Responses, Anthropic, or Gemini protocols—pick a combination your provider actually supports. Changing the protocol does not automatically give a model vision or tool-calling capabilities; always run a quick test after editing. Command Code already includes a provider preset and balance template, though you still need to supply your own valid credentials. ## After setup Return to the Chat tab, switch to the model you just added in the model picker, and start chatting. ## Header templates If a relay or gateway requires a specific `User-Agent`, origin identifier, or other custom request headers, open **Header Templates** on the Provider Details page. You can save the current provider's headers as a reusable template, then apply, merge, or replace them across other providers in one tap. ## Refetching models When a provider updates its catalog, refetch its model list. The results clearly separate newly discovered models, existing models, and older models not returned this time. By default, older models are kept so manually added or temporarily hidden models are not removed by accident. If you are sure the provider has retired them, enable **Remove models not found this time**; you will be asked to confirm again before saving. --- # What if I do not have an API Key? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Getting Started. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/no_key/ ## First, how Cube Agent works Cube Agent itself does not sell model services. When you are signed in and connected to Cube Agent online services, you can start right away with the **SiliconFlow (Built-in)** partner service—its endpoint, access config, and current partner model catalog are delivered automatically, and model requests go straight to SiliconFlow. You can also use your welcome **free trial quota** (see **How much free model trial quota do I have?**) to get up and running. Whenever you want more models or your own plan, apply for your own `API Key` directly on a model provider's official website. *(Regional note: Cube Agent online services, SiliconFlow, and Xiaomi MiMo primarily serve Mainland China with direct domestic connectivity. If you are outside Mainland China—or prefer global providers—you can directly bring your own `API Key` from OpenAI, Anthropic Claude, Google Gemini, OpenRouter, DeepSeek, or a self-hosted Ollama instance in **Settings → Models & usage → Provider Management**.)* **Every preset provider in Cube Agent uses that provider's own official domain**—both model vendors' official APIs (such as DeepSeek's `api.deepseek.com` or OpenAI's `api.openai.com`) and official aggregator/relay platforms (such as OpenRouter and AiHubMix). Your `API Key` is sent only to the provider you choose; Cube Agent never routes it through an intermediate relay of its own. If you add a third-party relay yourself, you remain in full control of that route. ## Free built-in models: SiliconFlow (Built-in) When connected to Cube Agent online services, **SiliconFlow (Built-in)** appears at the top of **Provider Management** as a free model benefit. It provides the current partner catalog with no API Key required, sending requests directly to SiliconFlow. If you disconnect from online services, this entry is automatically removed. ## Limits of the free experience Built-in free lightweight models mainly power background helpers such as titles, suggestions, translation and knowledge retrieval. For main chats, use Cube official built-in models or your own API key. Model capability, your instructions and conversation context all affect results. Adding context or breaking a task into smaller steps may help. For connection failures or message issues, please let us know through Feedback & Suggestions. For a more reliable chat experience, use Cube built-in models (pay-as-you-go with welcome credit) or add your own provider API key in Settings → Models & usage → Provider Management. ## Using your own SiliconFlow API Key If you want access to SiliconFlow's full model catalog or your own billing plan, configure the standard **SiliconFlow** provider: - **All-in-one**: Supports a wide range of open-source and commercial models, making it a convenient first provider to set up. - **Ready to use**: Cube Agent presets its OpenAI-compatible endpoint and brand icon. - **Direct access in Mainland China**: Works directly within Mainland China without extra network configuration, well suited for everyday chat, writing, and coding. - **Model selection**: Model capabilities and pricing change over time—check the live details in the SiliconFlow console. Sign-up link: [https://cloud.siliconflow.cn/i/PphCNUwa](https://cloud.siliconflow.cn/i/PphCNUwa) Once you have your key, go to **Settings → Models & usage → Provider Management → SiliconFlow**, enter your `API Key`, and save. The `Base URL` is already prefilled. ## Other providers - **DeepSeek**: Great for low-cost, pay-as-you-go chat and reasoning models. Sign-up link: [https://platform.deepseek.com](https://platform.deepseek.com) - **Xiaomi MiMo Open Platform**: Lets you try Xiaomi's flagship models such as MiMo V2.5, with **image recognition support**—ideal as an OCR / vision model to complement DeepSeek. New users who register with the invite code receive CNY 10 in API welcome credit. Invite code: `JR2N2R` Sign-up link: [https://platform.xiaomimimo.com?ref=JR2N2R](https://platform.xiaomimimo.com?ref=JR2N2R) - **International & self-hosted options**: You can also add official API keys for **OpenAI**, **Anthropic (Claude)**, **Google Gemini**, **OpenRouter**, or point to a local **Ollama** endpoint directly from **Provider Management**. ## How to enter the MiMo invite code After registering, open the MiMo console and click the entry in the bottom-left corner to submit the invite code. The welcome credit is valid for 40 days. ## Note Some of the links and invite codes above are author referral channels. When promotion requirements are met, new users receive welcome credit and the author may also receive model usage credit; **rewards earned by the author are used to sustain Cube Agent's built-in free trial quota**. Using a referral link never increases your cost, and reward eligibility and amounts follow each provider's live rules. After obtaining your key, return to **Provider Management**, select the corresponding provider, and fill in the `Base URL` and `API Key`. Always verify the API endpoint against each provider's official documentation. --- # Slow replies, weak answers or no images: is it the app? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Getting Started. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/model_decides_quality/ ## What the app handles vs. what the model handles Cube Agent provides the chat interface, file handling, browser automation, Office documents, Knowledge Base, and Memories; response speed and answer quality depend primarily on the model and provider you choose. For the exact same question, switching models can make a dramatic difference in both speed and output quality. ## Common situations - **Slow replies**: Reasoning (thinking) models work through a chain of thought before answering—the harder the question, the longer it takes. Providers may also queue requests during peak hours, slowing responses down. - **Weak answers or failed multi-step tasks**: Smaller or older models have limited capacity for complex reasoning, long documents, and multi-step tool workflows. Try switching to a more capable model. - **Cannot generate images**: Image generation requires a model built specifically for creating images—standard chat models cannot draw on their own. If your active model (including built-in free models) does not support image generation, no image will be created. Configure an image-capable model under **Settings → Models & usage → Default Models → Image generation**; to generate images directly inside a chat, also enable **Generate image** in the **Tools** menu of the chat input bar. - **Cannot view images or use tools**: This depends on whether the selected model natively supports vision (image understanding) and tool calling. ## About the built-in free models **SiliconFlow (Built-in)** in the provider list is offered in partnership with SiliconFlow so newcomers can start using AI after signing in—without registering with a provider or entering an `API Key`. It works well for casual Q&A and light rewriting, but its capability and reliability are limited for complex reasoning, coding, long-document analysis, or chained tool calls, and it may occasionally slow down or fail. The free trial quota granted with your account is likewise intended for initial evaluation only. To unlock the full capabilities of Cube Agent, we recommend purchasing API access from a model provider, then going to **Settings → Models & usage → Provider Management** to add the provider, enter your `API Key`, and enable models. Start by choosing from the **Provider catalog** (which also includes coding plans from various providers)—just enter your `API Key` and tap **Connect and fetch models**. If your provider is not listed, choose **Add a custom provider**. Your provider list displays only providers you have added; unused ones can be removed from the card's **More** menu or its details page and re-added from the catalog anytime. Preset providers automatically listed in older versions that never had an `API Key` or any models are cleaned up automatically after upgrading (devices that have used Cloud Sync are not auto-cleaned and can remove them manually). Cube Agent itself does not sell model services; billing is handled directly by your chosen provider. ## What you can do 1. **Try a different model**: Switch models using the chat page's model picker and test the same prompt—you will usually spot the difference right away. 2. **Match the model to the task**: Use fast models or lower reasoning effort for casual chat and quick questions; switch to stronger models for writing, coding, and document work. 3. **Unusually slow or frequent errors**: Report the issue via **Settings → Feedback & Suggestions**, ideally with the model name and timestamp, so we can determine whether the problem is in the app or upstream at the provider. --- # Membership & Pro > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Getting Started. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/membership_pro/ ## Free vs. Pro Membership has only two tiers: - **Free**: Included by default for all signed-in users, including basic online capabilities such as per-device daily and monthly free official search quotas. Core local workflows—local chat, your own model APIs, Knowledge Bases, per-conversation workspaces, and Skills—are completely available. Importing large skill packages and downloading or updating skills from the Skill Market do not require Pro either (market downloads and updates require connecting to online services). Generating Word, Excel, and PowerPoint files in the code workspace, saving them locally, and sharing them through the system also work without Pro; model calls still use your selected provider's quota. - **Pro**: A one-time purchase with permanent validity that unlocks advanced capabilities. Pro is an optional upgrade, never a prerequisite for local core workflows. ## Key Pro benefits - **Webpage automation**: On supported API 23+ devices, let AI actually open and interact with webpages, read content, capture screenshots, and save resources to the current conversation. Every action is visible, you can take over anytime, and AI can resume after you sign in. See **How do I let AI work on webpages?** for step-by-step usage. - **Remote connections**: Connect to your own computer or server for SSH terminal access, SFTP file transfers, and remote commands directly in chat, reusing saved host identities and credentials. - **Memory AI**: Batch-import memories from other AI platforms, and let AI deduplicate, merge, and refine your existing memories. - **Web Workbench image generation**: Batch-generate images in the built-in Web workbench (browser panel), with selectable models, aspect ratios, and image counts. - **Global File Space & Shared Files**: Manage script outputs centrally across conversations. Shared files can be published as links or read directly by AI in any conversation. - **Site publishing**: Publish AI-generated webpages, reports, or mini-tools as public static sites—visitors can open them even when your device is offline. - **Online fonts**: Use online fonts for chat body text and code blocks (Free is limited to built-in fonts). - **More UI personalization**: Customize background opacity for the input box, assistant replies, and tool cards (Free uses default styling). - **Higher concurrency limits**: Simultaneous chats generating replies increase from **6 to 16**; parallel subagents per chat increase from **4 to 8** (total across all chats from **6 to 16**, queue limit from **8 to 16**); simultaneous research and web-fetch calls per turn increase from **6 to 8**, letting you run multi-threaded work without waiting. If a Pro trial expires, tasks already running finish normally, but you cannot start new tasks beyond Free limits. - **Member-exclusive online capabilities**: Conversation sharing, domain mapping, site publishing, and their corresponding quotas. - **Higher-priority requests and issue handling**: Feature requests and bug reports from Pro users receive higher triage priority, though no fixed turnaround SLA is promised. **Image super resolution does not require Pro.** On supported API 26+ devices, open any image preview and tap **Enhance**. Upgrading to Pro does not remove device or image format limits—see **How do I enhance an image in preview?** for details. ## Cube Agent online services Cube Agent online services (formerly "Cube Agent Cloud Services") power free models, official search, conversation sharing, domain mapping, and display your membership status and quotas. Connecting is completely optional—when disconnected, local chat, your own models, Knowledge Bases, and other local features continue working normally. **Connecting to online services does not automatically back up or sync your chat history or Knowledge Bases.** Back up your data separately under **Settings → Data & Sync → Data Backup**, and always verify a successful backup before uninstalling or switching devices. Membership Center also provides a shortcut to **Data Backup & Restore**. ## Online quotas Membership Center displays your official search, conversation share, and site publishing quotas separately. Free and Pro share the recurring base quota for official search. Extra official search balances from promotions, purchases, or grants appear live in Membership Center, with non-expiring balances marked separately. Conversation sharing and site publishing are Pro-exclusive online capabilities. ## 3-day Pro trial Eligible accounts see a golden trial voucher in Membership Center. Sign in and connect to online services first, then press and hold the tear strip at the bottom of the voucher for about 1 second to open the claim confirmation dialog; releasing early cancels, and a short tap prompts you to keep holding. The confirmation dialog explains that the timer starts immediately upon claiming—only tapping **Confirm claim** consumes the trial, while tapping **Not now** or closing the dialog preserves eligibility. Once claimed, a 3-day countdown begins and displays your remaining time; if claiming fails, follow the on-screen prompt to retry. Screen-reader users can double-tap to open the same confirmation dialog. The trial unlocks Pro features only and does not include formal purchase bonus quotas; online features still consume existing quotas, and model trials follow standard Free rules. First-time trials are typically limited to once per account and once per installation. If a limited-time event is shown, the on-screen deadline and "once per event" rule apply, and availability is not permanent. Accounts with active Pro or an active trial cannot stack another claim. ## How to upgrade Tap the **Membership account card** at the top of **Settings** to enter **Membership Center** and view your current plan, benefits, and quotas. In-app purchase is available: - **Purchase**: Selecting lifetime Pro opens the AppGallery checkout; the final amount is shown at checkout. - **Redeem code**: Preview benefits before confirming redemption; discount codes take you directly to the discounted checkout item. - **Restore purchase**: Restore your previously purchased non-consumable Pro entitlement after switching devices or reinstalling. Early supporters who backed development through tips or donations generally already have Pro activated on their account. If it has not taken effect, contact the developer with your account details to have it restored—no need to re-submit proof of donation. ## Converting legacy lifetime Pro trial points During active campaign periods, eligible legacy lifetime Pro accounts see a **Convert legacy Pro trial points** entry in Membership Center, allowing a voluntary one-time conversion of legacy free-trial points into pay-as-you-go Cube Built-in Models balance (exact conversion ratio, cap, and deadline are displayed on the page). If you choose not to convert, your existing trial points remain usable as before. ## Best practices - If you mainly use local chat with your own model APIs, Free covers everything you need—no Pro upgrade required. - Consider Pro when you want AI webpage automation, Memory AI, Web image generation, cross-session File Space, site publishing, or member-exclusive online capabilities. - Online service connection issues never affect local features; you can check connection status anytime in Membership Center. --- # Feedback & Suggestions > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Getting Started. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/feedback_center/ ## Overview When you run into a bug or have an idea, you have two feedback channels: the **QQ feedback group** (fastest for back-and-forth discussion, primarily serving Mainland China users) and **In-App Online Feedback** (works anywhere with no QQ account required, supports anonymous tickets, and lets you track progress). Both channels feed into the same issue tracker so nothing gets lost. ## Where to find it Open **Settings → Feedback & Suggestions**, tap the feedback shortcut in the Settings title bar, or search for "feedback" in **Search Settings**. ## QQ feedback group (recommended in Mainland China) You can launch QQ directly from the page to join the group (group ID `752237762`) or save the group QR code. This works best for usage questions, feature discussions, and bugs that require back-and-forth troubleshooting to reproduce. ## Submitting feedback online 1. Choose a category: **Bug report**, **Feature request**, **Experience issue**, or **Other**. 2. Describe the issue. You can attach up to **3 screenshots**, plus **1 UTF-8 TXT log** (up to 5 MiB) or **1 ZIP sample** (up to 20 MiB). For animation stutter, flicker, or other motion issues that screenshots cannot capture, you can also attach **1 screen recording** (up to 30 MiB, MP4/MOV/etc.) from your Gallery—trim it first if it exceeds the limit. Selected files are not uploaded until you submit; review them before sending so no private data is recorded. 3. **Include environment info** is enabled by default. It includes only app version, OS version, device model, and network type—never your account, chat history, API keys, or local files. You can turn it off anytime. 4. Contact info is optional and used only if the developer needs follow-up details. After submission, a ticket ID is generated so you can track progress using a token stored locally on your device without signing in. Your new-ticket draft (category, text, contact info) and any unsent follow-up message in **My Feedback** are saved locally automatically—if you leave to take a screenshot, collect logs, or restart the app, your draft is restored when you return and cleared automatically once submitted. ## My Feedback Open **My Feedback** from **Feedback & Suggestions** to view each ticket's status (**Received** / **In Progress** / **Completed** / **Closed**) and developer replies, or send additional details. Tickets with new replies are badged in the list. Developer replies render formatted lists, bold text, and clickable links (opening in your system browser). The copy button on a reply card copies clean plain text with link URLs preserved. You can long-press your original submission or follow-ups to select and copy text, and a copy button next to the ticket ID at the top lets you paste your ID easily when contacting the developer. Both your follow-up messages and developer replies can include up to 3 screenshots each; tap any screenshot in ticket details for full-screen preview. Follow-ups can also attach logs, ZIP samples, or screen recordings under the same size and format limits. Screen recordings are visible to the developer only—ticket details display their filename and size without in-app playback. Feedback submitted while signed in and connected to cloud services is automatically linked to your account. When you sign in to the same account on another device—or after reinstalling the app—you can view progress, read developer replies, and send follow-ups in **My Feedback** without relying on Cloud Sync. Note: For anonymous feedback submitted without signing in, the tracking token is stored only on that device. If you uninstall the app or clear app data, you will no longer be able to view the status of previous anonymous tickets. ## Progress notifications Keep **Notify me when this ticket has updates** checked when submitting (enabled by default) to receive system notifications whenever a developer replies or your ticket status changes (**Received** / **In Progress** / **Completed** / **Closed**), without opening the app. Tapping the notification jumps straight to that ticket's detail page. Your first submission prompts you to grant notification permission; you can toggle it anytime in your device's system notification settings. ## Best practices - Feel free to submit an in-app ticket for any feature ideas or usability suggestions. - For bug reports, clearly describe **where it happened, what you did, and what you expected**, and attach a screenshot for the fastest diagnosis. - Use the QQ group for interactive troubleshooting (if you use QQ), or use In-App Online Feedback whenever you want a trackable record, privacy, or do not use QQ. - Never include API keys or other sensitive credentials in your feedback text or screenshots. --- # Customize home entries > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Home & Content. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/home_tabs/ ## Overview You can reorder home navigation entries to match your workflow and choose whether to place **Knowledge**, **Images**, and **Favorites** directly on the home screen. The maximum number of visible entries adapts automatically to the current navigation layout: - **Wide-screen side navigation rail** (landscape tablets, PCs, and other multi-column wide windows): Displays all **6** entries at once, with vertical scrolling when the window height is short. - **Bottom navigation bar** (phones, portrait tablets, narrow split windows, or when multi-column layout is disabled): Displays up to **5** entries to keep one-handed reach and icon spacing comfortable. ## How to configure Tap the tip banner on the Chat home screen or **Customize home navigation** in the top-right menu, or go to **Settings → App Settings → General → Home tabs**: 1. The **live preview** at the top automatically matches your current window style (**side navigation rail** or **bottom navigation bar**); tap items in the preview to check their selected state. 2. Long-press and drag any row to reorder entries. 3. Toggle **Knowledge**, **Images**, or **Favorites** on or off as needed. In wide-screen sidebar mode you can enable all three at once; in bottom-bar mode, once 5 entries are active, turn off one optional entry before enabling another. 4. Tap **Save** in the top-right corner to update home navigation immediately. ## Fixed entries, optional entries, and screen-size changes - **Assistants, Chat, Settings**: Fixed entries. They can be reordered but cannot be disabled, ensuring core navigation is always reachable. - **Knowledge, Images, Favorites**: Optional entries that can be enabled, disabled, and reordered freely. - **Seamless switching between wide and narrow screens**: If you enable all 6 entries in wide-screen sidebar mode and then switch to portrait or a narrow bottom-bar window, the bottom bar keeps the 3 fixed entries plus the top 2 optional entries in your order. The folded 6th entry is labeled **"Sidebar only"** in Settings without being turned off, and reappears automatically when you return to a wide screen. Disabling a home tab only hides the home shortcut—it never deletes your data. Knowledge, Images, and Favorites remain accessible from Settings (the permanent entry for Favorites is **Settings → Content & files → Favorites**), with all documents, generated images, and favorite markers preserved. ## Release notes and announcement pop-ups If you prefer fewer interruptions, turn off **Show release notes and announcements automatically** under **Settings → General → Home & desktop → Home**. Once disabled, post-update release notes and regular announcements will no longer pop up automatically and can be read anytime under **Settings → About Cube Agent**. Critical alerts such as service outages will still notify you. ## Version History Open **Settings → About Cube Agent → Version History** to browse bundled release notes in reverse chronological order, with your currently installed version highlighted. Tap the search icon in the title bar and enter a feature name to see which versions introduced or changed it along with matching excerpts. Inside any version entry, you can long-press to select text, copy the full text, or share it as an HTML file; pre-release beta notes are appended after the main notes. Version notes are bundled with the app and cover only the current and earlier versions (a few early releases had no notes). --- # How do I organize assistants with custom categories and list styles? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Home & Content. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/assistant_categories/ ## Overview The **Assistants** tab has replaced the old fixed top-bar segmented controls ("All / Custom / Built-in" and "Full cards / Compact list") with a cleaner layout: when you have not created any categories, the sub-row automatically collapses to give your list full vertical space. When you want to group assistants by workflow, create custom categories and filter them in one tap with horizontal luminous pill chips along the top bar. ## How to use it 1. **Manage categories**: Tap **More → Manage categories** in the top-right corner of the **Assistants** tab to create, rename, reorder, or delete categories. Deleting a category never deletes its assistants—they simply return to uncategorized. 2. **Assign assistants to a category**: Tap **Move to category** in an assistant card's **More** menu for quick filing, or pick an existing category—or create a new one on the spot—directly inside **Edit assistant** (each assistant belongs to one category and can be unassigned anytime). 3. **Quick filtering**: As soon as at least one custom category exists, the Assistants sub-row smoothly reveals horizontal luminous filter chips so you can browse by category in a single tap. 4. **Switch list style**: **Full cards / Compact list** has moved to **Settings → Appearance → Interface → Assistant list** (complete with live preview and linked card tap behavior). The top-right **More** menu on the **Assistants** tab also keeps quick view switching, reordering, and access to archived assistants. ## Best practices & sync - If you only have a few assistants, skip categories to keep a minimal single-row header. Once your collection grows, creating 3–5 workflow categories—such as "Writing", "Coding", and "Translation"—keeps everything fast to find. - Custom categories and assistant assignments are preserved automatically with Cloud Sync and full Data Backup / Export. --- # Desktop cards and PC close behavior > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Home & Content. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/desktop_cards/ ## Adding widgets and desktop shortcuts Go to **Settings → General → Home & desktop → Add a desktop widget** to open the system widget picker, or long-press the Cube Agent icon on your home screen to add widgets directly. You can also search for "desktop widget" in **Search Settings**. Long-pressing the Cube Agent icon on the desktop also provides quick shortcuts for **New Chat** and **Continue chat** (resuming the most recent non-private conversation across non-archived standard assistants). Chat widgets let you resume your latest chat or draft and include a dedicated **New Chat** button. You can bind a widget to a specific assistant; if bound to a private assistant, authentication is still required upon entering the app. Recent chats are selected based on your own activity—opening, editing, and sending messages—so background replies do not overwrite your recent entry. If the original conversation is no longer available, the app notifies you and opens the chat list. ## Cube Daily Rhythm card Add the **Cube Daily Rhythm** widget to your desktop in **2×2** or **2×4** size. The top banner displays your current rhythm state and streak reminder, while the lower area summarizes today's key usage metrics alongside a 14-day heatmap matrix. Tap the card to jump straight to **Usage Stats** for detailed breakdowns and period recaps. Data syncs to the desktop automatically after a chat finishes or when you open Usage Stats, and never includes any chat text or private session details. ## Web Server card Add the **Web Server** widget in **2×2** or **1×2** size, available in **Web Server · Transparent** and **Web Server · Standard** styles (the compact 1×2 size stacks neatly alongside other desktop widgets). Check server status, access scope, and port at a glance, and **Start / Stop** the server in one tap without navigating through Settings. Starting and stopping execute in the background while you remain on the desktop; even if Cube Agent is not currently running, the system wakes the app in the background to complete the action. If access scope is set to **LAN** (or password protection is enabled) without an access password configured yet, the card displays **Set up**, jumping directly to **Settings → Connections & advanced → Web Server**. If startup fails (for example, due to a port conflict), the card shows a brief reason and a **Retry** button. Multiple cards and the Settings page stay automatically synchronized. ## Provider balance cards (single and multi-provider) Select a balance widget in system widget management to place it on your desktop or supported Minus-One screen. Available in transparent glass and opaque standard styles in **2×2 (1 provider)**, **2×4 (up to 4 providers combined)**, and **4×4 (up to 6 providers combined)** sizes, with font sizes automatically scaling to fit width so large numbers and currency units are never clipped. Long-press the widget to edit it, multi-select providers, drag to reorder, and preview changes live (when **Cube Built-in Models** is enabled, you can select it directly using its local balance snapshot). For third-party providers, configure and verify balance queries on the provider's details page before binding to a widget. Each card displays balances and update timestamps, supporting both manual refresh and scheduled system refreshes; tap any provider row to jump straight to its details page. Failed queries retain the previous reading with a status badge—check the timestamp to verify freshness. If a provider is deleted or unconfigured, edit the card to select another. ## PC window close behavior The first time you click the close button on PC, you can choose to minimize to the system tray or exit the app, with an option to remember your choice. When minimized, click the tray icon to restore your previous page; when exiting while tasks are still running, the app asks for confirmation. To change a remembered choice later, go to **Settings → General → Reset window close choice**. --- # Favorite chats, messages and images > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Home & Content. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/favorites/ ## What is Favorites? Favorites brings together your important conversations, individual messages, and favorite generated images in one place, making it easy to save anything you want to revisit. ## How to favorite - **Chats**: Long-press or swipe right on a conversation in the chat list and select **Favorite**, or tap the heart icon in the top-right corner of a conversation search result card. - **Messages**: Tap the heart icon beside a matching message in search results, or open a message's **More → Favorite** inside a conversation. Tap the heart again to unfavorite. Incognito and management conversations do not support message favorites. - **Images**: Tap the heart icon in the generated image gallery or full-screen image preview. You can open Favorites anytime from **Settings → Content & files → Favorites**, even without enabling the Favorites home tab. For faster access, go to **Settings → App Settings → General → Home tabs** to pin Favorites to your home navigation; your first favorite also prompts you with this shortcut. ## How to manage - Use the top tabs to browse **All, Chats, Messages, or Images**, sorted by the time you favorited them, or search by message snippet and conversation title. - Tap a conversation to jump straight into it; tap a message to jump directly to that node inside its conversation; tap an image to open full-screen preview and save or share it. - Swipe left on an item to remove it from Favorites, or enter multi-select mode for batch removal. The **Favorites** filter in search covers both favorited conversations and favorited messages: favorited conversations show all matching results, while non-favorited conversations show only their favorited matching messages. The Favorites filter in the standard chat list continues to show favorited conversations only. Message favorites are saved per message version. Regenerated or edited versions do not inherit the favorite marker; Favorites retains the original saved version, and opening it navigates to whatever version is currently displayed at that node. Deleting the original message or its entire conversation also removes its message favorites—being favorited does not block deletion. Conversations and messages belonging to private assistants never appear in Favorites. Message favorite states and timestamps are preserved and restored by both full and incremental backups. Removing an item from Favorites only clears the favorite tag and never deletes the original content; hiding the Favorites home tab likewise leaves all saved favorites intact. --- # How do I configure Cube and switch between tasks? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Home & Content. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/cube_companion/ ## What it is Cube Companion is an in-app floating shortcut that lets you jump right back to active, pending, or recently used chats, image generation tasks, SSH sessions, SFTP sessions, and native file transfers. It stays strictly inside Cube Agent and never acts as a system floating overlay on top of other apps. ## Open settings Go to **Settings → My Cube → Cube Companion**, or open **Task Center → Companion settings**. Choose **Cube / Dots / Hide** and adjust display preferences—changes take effect immediately. Inside Companion settings, you can configure: - **Cube size**: In Cube mode, pick **Small / Medium / Large** to fit your preference. - **Display policy**: Choose **Auto**, **Always show**, or **Alerts only**. Auto shows the shortcut whenever there are active tasks, live connections, or recent entries; Alerts only appears when there are pending or unread items. - **Dock placement**: Follow Smart Grip, pin left, or pin right. Following Smart Grip requires the global Smart Grip toggle and device hardware support; if grip cannot be detected, Cube stays on its current side, and manual dragging always takes precedence. - **Visible pages & quick items**: Choose which pages show Cube Companion and which item types—chats, images, SSH, SFTP, and file transfers—appear inside it. - **Recent entries & terminal keys**: Keep recent shortcuts or customize quick terminal keys to suit your workflow. ## Task center entry By default, Task Center is shown only in the **top-right corner of Settings**. You can enable **Task center entry** under **Settings → Appearance → Interface** (or locate it via Search Settings). Turning it off only hides the shortcut on other pages—it never cancels running tasks or clears task history. Task Center lets you inspect pending, active, and recent tasks; for document parsing tasks, you can check progress, stop, or discard them (see **Document parsing and OCR** for specific limitations). ## Returning to the chat list after switching chats In single-column layout, suppose you open chat A from the bottom **Chat** list, then use Cube Companion to switch to chat B and chat C. A single edge-swipe back or a tap on the top-left Back button returns you directly to the original chat list. When you open Cube Companion again, those three recent conversations appear in order: C, B, A. ## Switching and clearing Tap Cube on regular pages to expand the task switcher and tap any entry to jump back. Inside an SSH terminal, tapping Cube toggles quick terminal keys first; open **More → Switch work** to reach the task switcher. Returning to SFTP reconnects to your last directory as needed, without restoring unconfirmed actions or batch selections. Removing or clearing items only tidies the switcher list—it does not cancel running tasks, disconnect live sessions, or delete conversations. Recent history lasts only for the current app session; incognito chats are never listed, and private assistants still require unlocking. Web-based SSH sessions and transfers do not appear in the native Cube Companion. Remote connections still require Pro. Interactive Cube showcase areas also support squishing/winking and dizzy spin feedback, with animations blending smoothly between gestures; enabling **Reduce motion** simplifies these effects accordingly. In Dots mode, opening and closing transitions smoothly into your active Cube appearance (or switches directly when Reduce motion is enabled). Even if you hide Cube Companion, Task Center remains usable and the SSH terminal retains an alternative entry for quick keys. To change Cube's look (such as Fangtun) or import appearance files, see **How do I use the Cube appearance collection?**. --- # How do I use the Cube appearance collection? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Home & Content. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/cube_appearance_library/ ## What it is The Cube Appearance Collection offers a curated lineup of ready-made Cube looks—such as **Whale Girl**, **Fangtun** (the ocean-blue little square dolphin), **Classic Cube**, and **Mid-Autumn Mooncake**. Once selected, both the floating Cube and the expanded look in Dots mode update to match. ## How to use it Open **Settings → My Cube**. The stage at the top previews your current look, and tapping the status pills beneath it previews animations like thinking, searching, and done: 1. Tap **Collection** to browse available looks and tap any card to preview it on the stage above; use the top-right menu to **Refresh collection**. 2. Tap **Add to my appearances** on any look you like (free looks can be used right away). 3. Return to **My appearances** and tap a card to apply it; long-press a card to edit, duplicate, export, or delete it. 4. Want to customize colors, personality, and animations yourself? Tap **Edit**, or tap **New** at the end of **My appearances**, then tap Save in the top-right corner. After switching to **Whale Girl**, open an empty chat to interact with her: tap her to watch her eat from a bowl, or press, hold, and release to see her stretch. You can also choose her directly during first-launch onboarding. ## Importing appearance files In the top-right menu of **Collection**, choose **Import file** to load a `.cube.json` file, or choose **Paste configuration** and tap **Validate and preview** before adding it to **My appearances**. Exported profiles can be shared with your other devices in the same way. ## Free vs. Pro Every look in the collection can be previewed for free. **Classic Cube**, **Fangtun**, **Mid-Autumn Mooncake**, and **Whale Girl** are free for everyone; adding, saving custom versions of, and using other looks require Pro. If Pro expires, Cube reverts to a free look without deleting any of your saved profiles. ## Relationship with chat themes There is also a matching **Fangtun · Tide** chat theme (free for everyone) under **Settings → Appearance → Chat themes**. Chat themes and Cube appearances are completely independent: picking the Fangtun appearance does not switch your chat theme, and picking the Fangtun chat theme does not change your Cube look—mix and match freely. For how to show, hide, and dock Cube, see **How do I configure Cube and switch between tasks?**. --- # How can AI access a local folder? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Home & Content. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/folder_mounts/ ## Adding a folder (Pro) Search for **Folder Mounts** in Settings, tap **Add folder**, pick a directory via the system folder picker, and configure its display name and **Read-only** or **Read-write** permission. This relies on device and system folder-picker support; if your device reports it as unsupported, you can still share individual files via chat attachments. ## Using it in chats In a standard chat, tap **Mounted folders** on the toolbar (or **+ → Folder** in the input bar) and enable the directories you want for this conversation. If **File operations** is not enabled yet, turning on a folder enables it automatically with a brief prompt; disabling all folders does not turn off File operations. Tap **Manage mounted folders** to add or configure directories, or tap **Mounted folders** on the toolbar to toggle each directory on or off. When no folders are mounted, the folder entry is hidden from both the toolbar and the attachment menu. Simply adding a mount does not automatically expose it to chats. If you use a folder frequently, enable **Enable for new chats** in Folder Mounts management so future new chats automatically select that folder and enable File operations (existing chats are unaffected). You can also go to **Assistant settings → Tools → Mounted folders** to disable folder access for a specific assistant or set separate new-chat defaults for that assistant—when left unset, it inherits your Folder Mounts defaults, while an empty custom selection means no folders are auto-enabled. Default folder selections are stored locally only and do not transfer when sharing an assistant to other devices. Access always obeys each folder's read/write scope and tool approval rules, and can be toggled off per chat. AI can access only folders enabled for the current chat with valid system authorization. PDF, Office, and other supported documents can be parsed on demand via File operations, and when image reading is enabled, AI can view images inside selected folders directly—no need to copy files to the workspace first, and read-only permission is sufficient for all reading capabilities. Video frame extraction and video understanding are not supported. ## Creating subfolders and saving documents Under **Settings → Folder Mounts → Browse files**, tap folders to navigate deeper and tap the path bar at the top to move up. Tap any Markdown file (`.md` / `.markdown` / `.mdx`) to preview or edit it directly. In read-write mode, you can create **New Markdown document** and **New folder** right inside the current directory (supported across local mounts as well as WebDAV and SMB remote mounts). In chat, you can say something like: *"Save the summary above to the `HarmonyOS Dev/Knowledge Notes` subfolder under `Study Materials` as `folder-access.md`."* AI will request write approval according to your File operations permission and automatically create any missing intermediate folders. Markdown and TXT files can be written directly, and generated Word, PDF, or other files can be copied into the target subfolder. Read-only folders do not allow creating, writing, or deleting. ## Delete originals vs. Remove mount - **Delete originals…**: Triggered from the right-hand menu of a file or folder. You review the path and exact file/folder count before confirming permanent deletion—deleted items bypass the recycle bin. AI-initiated deletions also require separate confirmation every single time; "Always allow" never skips deletion approval. If directory contents change before confirmation, you must re-verify. A mount's root folder cannot be deleted. - **Remove mount**: Only revokes Cube Agent's access and never deletes local files. Currently supported operations include listing, reading, copying, writing, text editing, creating, lossless cross-folder moving within the same mount (without overwriting existing same-name files; copy first across different mounts), and deleting. If a write or delete fails mid-way, partial changes may have occurred—check the actual directory state and any recovery copy notices. ## If authorization fails Folder selection depends on system capabilities. If you see **"The system could not save folder authorization"**, it means the system's persistent permission check did not pass (it does not necessarily mean you chose a restricted system folder). Try selecting a regular folder you created yourself; if it still fails, send feedback with your device model, OS version, and whether you are using an emulator. ## Management and migration Deselect a folder inside a chat to stop access for that chat immediately. In Folder Mounts management, you can switch between read-only and read-write, re-authorize, or remove a mount without deleting original files. If authorization expires, select the folder again to renew it. Local folder mounts do not migrate through backups, Cloud Sync, or Nearby Transfer—re-authorize them on a new device. For NAS, Jianguoyun, and other network storage, see **How do I bring a NAS or cloud drive into chats?**. --- # How do I bring a NAS or cloud drive into chats? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Home & Content. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/webdav_mounts/ ## Three supported protocols (Pro) - **WebDAV storage**: Works with Jianguoyun, Nextcloud, Synology WebDAV Server, AList / OpenList, and similar services, including remote access over the internet. - **SMB network shares**: Works with LAN shares on Synology, fnOS, QNAP, and UGREEN NAS devices, Huawei Home Storage, and Windows or macOS shared folders—no extra WebDAV server required. Supports SMB2/SMB3 with signing authentication; SMB1 is not supported. - **FTP / FTPS network storage**: Works with NAS devices, router USB drives, LAN servers, and web hosting accounts. Supports explicit FTPS (AUTH TLS, default port 21), implicit FTPS (default port 990), plain FTP on trusted local networks, anonymous sign-in, and Auto / UTF-8 / GBK filename encoding. ## How to add Go to **Settings → Folder Mounts → Add** and choose **WebDAV storage**, **SMB network share**, or **FTP / FTPS network storage**. You can also open **Remote connections → Network storage**, or tap **+ WebDAV** / **+ SMB** / **+ FTP** directly from a chat's folder panel (mounts added from a chat are enabled for that chat automatically). - **WebDAV**: Enter the server URL, username, and password. Quick templates are provided for Jianguoyun, Nextcloud, Synology, and AList, and you can also **Import** credentials in one tap from your Data Backup WebDAV account. - **Jianguoyun**: Use your registered email as the username, and generate an app-specific password under **Account Info → Security Options → Third-Party App Management**. - **Synology**: Install **WebDAV Server** from Package Center (default ports: HTTP 5005 / HTTPS 5006). - **AList / OpenList**: Use a URL ending in `/dav` (default port 5244) and enable WebDAV read and manage permissions for the user. - **SMB**: Enter the server IP or hostname, share name, username, and password (default port is 445; domain and starting folder can be set under **More options**). Pasting `smb://IP/share-name` splits the fields automatically, and you can also **Import** credentials in one tap from your Data Backup SMB account. Tapping **Connect and save** tests connectivity and verifies the share directory at the same time. - **FTP / FTPS**: Enter the server IP or hostname and select the security mode (explicit FTPS on port 21 by default). Pasting an `ftp://`, `ftps://`, or `ftpes://` URL splits the fields automatically. Turn on **Anonymous sign-in** if the server allows anonymous access. Port, starting folder, and filename encoding can be configured under **More options**. ## AI permissions Set it once when adding the mount: **Read only**, **Ask before changes**, or **No confirmation** (default). With **No confirmation**, AI can read, write, edit, create folders, and rename files without confirmation pop-ups. **Deleting remote files always prompts for separate confirmation**, because most WebDAV, SMB, and FTP servers have no recycle bin. ## Security and certificates - Self-hosted WebDAV and FTPS servers often use self-signed certificates: credentials are never sent until you verify the certificate SHA-256 fingerprint displayed in the form and save to trust it. If the certificate changes later, tap **Trust new certificate** on the management page. Use plaintext HTTP or plain FTP connections on trusted local networks only. - SMB mounts use SMB2/SMB3 signed authentication and should be used on a LAN or trusted private network. ## Offline NAS or expired passwords Even if you are away from home and your NAS is unreachable, you can still save the configuration and it will become available automatically once you return to its network. If your password changes or an app password is revoked, the management page shows **Password no longer works**—tap **Enter password again** to update it directly. ## Moving to another device WebDAV, SMB, and FTP mount configurations and passwords are saved and restored with Data Backup (when credentials are included), Tap-to-Share exports, and Cloud Sync, so you do not need to reconfigure them on a new device. Temporary files downloaded locally are cache only and are not included in backups. ## Browsing, Markdown editing, and manual upload/download Open any mounted local folder, WebDAV, SMB, or FTP storage under **Settings → Folder Mounts → Browse files** and tap folders to browse level by level: - **Manual upload and download**: On writable mounts, tap the upload button in the toolbar to upload one or more local files (duplicate names prompt you to keep both, overwrite, or skip). Tap any regular file or open its action menu to **Save to device** or **Download and share** (up to 256 MB per file; downloads also work on read-only mounts). - **Markdown documents**: Tap any `.md` / `.markdown` / `.mdx` file to preview its rendered output. With write permission enabled, open the top-bar create menu and choose **New Markdown document**, or switch to edit mode on a document page to edit, rename, and sync changes straight back (supports UTF-8 text up to 4 MB; read-only mounts support viewing and copying). ## Usage limits Network storage is slower than local folders and providers may enforce request rate limits—ask AI to inspect specific subfolders rather than scanning an entire drive. Lossless cross-folder moving of files and folders within the same mount is supported (without overwriting existing same-name items); copy first when transferring across different mounts. On Jianguoyun, directories with more than 750 items may only display a partial listing. --- # File Space & My Shares > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Home & Content. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/file_space_shares/ ## What the three entries do - **Conversation Workspace**: Holds files generated by the code interpreter in the current conversation. All users can open it from the chat page menu to browse generated files and all workspace files; existing Shared Files can also be viewed, exported, and deleted for free. - **File Space**: Accessible to all users from Settings to view, export, and delete existing Shared Files. Centralized cross-session output browsing, adding new Shared Files, and organizing Shared Files require Pro. - **My Shares**: Tap the **Membership account card** at the top of **Settings** and open **Membership Center → Account & services → My Shares** to manage all submitted conversation shares and published sites in one place—check status, copy links, or revoke them anytime. ## File Space Files are organized by type—Web, Images, Documents, Data, Code, and more. Tap any file to preview it directly; open its **More** menu to save, share, rename, delete, open with another app, or package and download an entire directory. Tap the search icon in the title bar to search the current directory, and long-press a file to enter multi-select mode. Your search query and type filter together define the **Select all** scope; changing the search keyword clears your current selection. ## Organizing Shared Files in folders (Pro) From a conversation file's menu, choose **Save to Shared Files**, navigate level by level to pick a destination folder, or create a new folder first before saving. The original file in the conversation remains untouched. In Shared Files, open any file or folder's **More** menu and select **Move to…**, or long-press for multi-select batch moves. On the destination picker, you can search target folders by name and confirm moving into a matching result. A folder cannot be moved into itself or any of its own subfolders. When a name conflict occurs, you can skip the item or keep both copies—existing files are never silently overwritten. Move results report succeeded, skipped, and failed items separately so you can pick a new destination for unfinished items. Moving a file changes its path, invalidating old path URLs and potentially requiring updates to relative references inside files. Both the native app and Web support saving to and organizing Shared Files folders. For folder upload, ZIP directory import, and batch import limits, see **Workspace**. ## Sorting and cleanup Sort file lists ascending or descending by name, modified time, or size, with folders always listed first. Native and Web remember your sort preference independently. Workspace file and folder menus support deletion—non-empty directories prompt you to review contents before confirming; always verify the final state after partial failures or cancellations. In File Space, a conversation's menu includes **Delete all conversation outputs**, which clears generated outputs only while preserving the chat messages, input attachments, and other working files. Bulk cleanup is unavailable while that conversation still has running tasks. Shared Files are stored locally on your device for reuse across conversations—they are not published to the public internet. Adding new Shared Files requires Pro. When asking AI to save or organize files for you, you can grant **Allow once** or **Always allow** for File operations. Existing Shared Files can always be viewed, exported, and deleted for free, even after a Pro plan expires. AI deleting Shared Files is free as well and reuses your File operations **Allow once** / **Always allow** permission without extra confirmation prompts. AI can read `public/` on demand (incognito chats never read Shared Files). Local access links depend on your device's Web Server being running, the device being online, and authentication; for anonymous public internet access, use **Publish to Web** instead. ## Site publishing (Pro) Conversation Workspace supports **Publish to Web**. Tapping it opens selection mode so you can check the files to include (or select all), then confirm to publish those static files as a public site—ideal for AI-generated webpages, reports, and mini-tools. Once approved by content moderation, the site is publicly reachable without requiring your device to stay online. All published sites are tracked under **My Shares → Site publishing**. Never include API keys, personal details, or other sensitive data in public content, and revoke sites promptly when you no longer need them. --- # Why does the notification bar say "computing task" or "data transfer" in the background? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Hot Questions. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/background_running_and_notifications/ ## Why does an extra notice appear in the notification bar? When AI is writing a long reply, running background subagents to gather information, organizing conversation context, indexing a Knowledge Base, backing up to Cloud Drive, generating images, or transferring server files, switching Cube Agent to the background or turning off the screen prompts the app to request HarmonyOS background execution so the system does not immediately freeze the app and interrupt your task. Under HarmonyOS platform rules, whenever an app stays active in the background, **the notification bar must display a system notice** so you always know it is running and can stop it whenever you like. ## What do "Running computing task" and "Transferring data" mean? Is it secretly uploading my data? Both messages are **fixed HarmonyOS system labels**, not Cube Agent secretly uploading your information: - **Running computing task**: The preferred background mode, used for deep AI reasoning, web research, subagents, and file processing. - **Transferring data**: On certain device models or OS versions, the app automatically falls back to this mode to prevent background interruption. Here, "transferring data" **refers strictly to the normal network traffic of the task you started**—such as receiving the streamed reply from your chosen AI model, loading webpages for research, or running the backup or file upload/download you triggered. **It never secretly uploads your chats, files, or API keys in the background.** Your API keys, chat history, and server passwords stay strictly on your own device. ## When does the notice disappear? What happens if I swipe it away? - **Disappears automatically when done**: As soon as all tasks finish—or when you switch back to Cube Agent—the notice clears automatically. When idle, Cube Agent does not linger in the background draining battery. - **Swiping it away or tapping Stop**: If you dismiss it manually from the notification shade, the app respects your action and will not repeatedly re-trigger it during that background session. However, without system background protection, active tasks may be paused by the OS, and automatic summarization of completed subagents or background organization will wait until you return to the app. ## What keeps running in the background or with the screen off? - **Chat replies and subagents**: Replies already generating and subagents already dispatched continue running in the background. When all background subagents finish, their results automatically summarize back into the main chat; if something fails or requires your confirmation, you receive an alert right away. - **Context organization and file transfers**: Context compression already underway, queued server file uploads/downloads, and remote actions you authorized continue sequentially in the background. - **Accurate elapsed processing time**: If the OS pauses the app while backgrounded, or if a task pauses while waiting for your confirmation, answer, or webpage sign-in, that idle waiting period is excluded from elapsed processing time—so you will not see artificially inflated multi-minute durations. ## HarmonyOS PC and multi-window unfocused alerts On HarmonyOS PCs or in multi-window workflows, even when Cube Agent's window remains visible on screen, switching window focus to another app allows Cube Agent to send a system notification when an AI reply finishes or needs your input. Returning to that specific conversation clears only that conversation's notifications, leaving alerts for other queued or unread conversations intact. ## How to keep background execution more reliable - **Keep system notification permission enabled**: Allow Cube Agent to send notifications in system settings. If you simply do not want task-completion alerts, turn them off inside the app under **Settings → General → Notifications** (that screen also clearly displays your current system notification authorization status to help troubleshoot missing alerts). Turning off notification permission entirely at the OS level may cause the system to reject background keep-alive requests. - **System limitations**: Under extreme power saving, severe memory pressure, aggressive background cleanup, or network loss/switching, very long tasks may still be stopped by the OS. Treat the background notice as best-effort protection rather than a guarantee against all interruptions. --- # Find a setting quickly > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Hot Questions. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/settings_search/ ## Overview The search bar at the top of **Settings** lets you jump straight to any feature without remembering which section it lives under. Search indexes not only settings pages, but also individual toggles, sub-tabs, and directly runnable actions. ## What you can search - Feature names and descriptions, such as "Default Models", "backup", or "crash logs". - Common aliases, such as "API Key", "clear cache", or "switch device". - Pinyin or initials of Chinese titles—for example, typing `morenmoxing` or `mrmx` finds **Default Models**. ## How to use results Tap a result to jump straight to that screen; certain granular entries also open the exact target tab or backend directly, such as Huawei Cloud Drive, WebDAV, or SMB. Direct actions like **Update Model Library** or **Replay onboarding** can be launched right from the search results. An empty search screen displays your recent searches and quick finds. You can clear recent searches manually anytime, and if no setting matches your query, tap through to **Help** to search the guides instead. --- # How do I use Cube official search? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Hot Questions. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/official_search/ ## What it is Cube official search is a web lookup capability provided by Cube Agent online services. Once connected to online services, you can use search providers marked **Official quota** in Tool Services without registering separately with each search vendor or entering your own API key. It is distinct from a model's **Built-in search**: official search is an app-provided web tool that draws from the official search quota shown in Membership Center, whereas built-in search is a model provider's own hosted web search whose availability and billing depend on your chosen provider, model, and plan. ## How to enable it for the first time 1. Tap the **Membership account card** at the top of **Settings** to open **Membership Center**, then follow the prompts to connect Cube Agent online services and sign in. 2. Once connected, if the **Enable free official search** prompt appears, tap to enable it in one click. The app activates available official search services, switches on the master web search toggle, and preserves any API keys you have already configured. 3. Return to the Chat tab, tap the web search entry at the bottom-left of the input box, pick an enabled official search service, and turn search on. When only one option is available, simply tap its name to toggle it on or off. ## Missed the first-time prompt, or want custom settings? Open **Settings → Assistant capabilities → Tool Services → Web Search**, select services marked **Official quota**, and enable both the service and **Prefer official service**. You can turn each service on or off independently; one-click setup never overwrites your existing API keys. ## How to ask in chat With web search turned on, simply ask questions that require current public information—such as "Check today's release announcement", "Find the official documentation and summarize it", or "Open this webpage and extract its pricing rules". Web search is invoked on demand by the model: if a prompt does not need live information, the model may skip searching; when live facts are needed, it searches or reads pages first and answers using the results. ## Checking your quota and why there is no fixed number Open **Settings → Membership account card → Membership Center → Current quota** to check your live base quota, extra balance, and reset schedule for official search. Quota rules, supported services, and promotional bonuses can change over time, so Membership Center is always the sole authoritative source. Both web queries and webpage reads can consume official search quota. Your base quota is bounded by **both daily and monthly** caps, and your actual available uses equal the lower of the two remaining balances. Therefore, once your monthly allowance runs out, you must wait for the monthly reset even if today's usage is low. The **"N remaining"** figure on the card already calculates your true available uses under this rule. When your official quota runs low, if you have also entered your own API key for that search provider, the app seamlessly continues using your own key; otherwise, wait for the periodic reset or switch to another configured search method. ## FAQ - **Cannot see official search**: Confirm you are connected to Cube Agent online services and have enabled a search service labeled **Official quota** under Tool Services. - **Web search is on, but the model did not search**: Make sure your active model supports tool calling and that the web search toggle in the chat input bar is enabled. - **Only "Built-in search" appears in the menu**: That is your model provider's hosted search capability and does not consume Cube official search quota. See **Enable GPT / DeepSeek / Gemini built-in search** for details. ## Privacy notice When searching the web, your search queries and the URLs to read are sent to Cube Agent online services and the chosen search provider. Never put API keys, customer data, internal URLs, or other confidential information into web search requests. --- # Enable GPT / DeepSeek / Gemini built-in search > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Hot Questions. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/builtin_search_gpt_deepseek_gemini/ ## First, tell the two switches apart - **Web search under Tool Services**: Controls whether external search providers (Bing, Exa, Tavily, DeepSeek, Firecrawl, Metaso, etc.) appear in the chat web search menu. It does **not** control a model's built-in search. *(Note: services like Metaso primarily serve Mainland China, while OpenAI, Gemini, DeepSeek, Exa, Tavily, and Firecrawl can be used globally with your own API keys.)* - **Model's Built-in web search**: Indicates that the current model and API protocol support the provider's own hosted search capability. Built-in search does not rely on external services like Exa, Tavily, DeepSeek, Firecrawl, or Metaso configured under Tool Services, so those external services do not need to be enabled. **Built-in search** appears in the chat search menu only when your provider's API style, transport protocol, and current model all support hosted search. If only one search option is available, the chat bottom bar displays its name directly—tap to enable and tap again to disable. When multiple options are available, tap to choose from the menu. **The web search toggle is saved independently per conversation and defaults to off for new chats**—turning it on or off in one chat does not affect other chats. ## GPT / OpenAI built-in search 1. Open **Settings → Models & usage → Provider Management**, then select the OpenAI provider or add an OpenAI-style provider. 2. Set API style to **OpenAI** and transport to **Responses**. The official OpenAI Base URL is normally `https://api.openai.com/v1`. 3. Select or add a GPT model that supports built-in web search. If **Built-in web search** is off under model capabilities, open the model's edit page and check it manually. 4. Return to the Chat tab, confirm the conversation uses that GPT model, and tap the bottom-left web search button to enable **Built-in search**. OpenAI built-in search appears only when **OpenAI API style + Responses transport + Built-in web search enabled on the model** are all met. If you still do not see **Built-in search**, double-check the provider's API style, verify transport is set to Responses, and confirm the chat is actually switched to that model. ## DeepSeek official built-in search and enhanced search 1. Open **Settings → Models & usage → Provider Management**, open the DeepSeek provider, and enter your official DeepSeek API Key. Use `https://api.deepseek.com` as the Base URL. 2. Select `deepseek-flash` (which defaults to the **Anthropic Messages** protocol, and can also be switched to **OpenAI Responses** or **Chat Completions** on the model edit page) and verify **Built-in web search** is enabled under model capabilities. 3. Tap the web search button in chat and choose one of two modes: - **Built-in search (recommended default)**: Under the default **Anthropic Messages** protocol, uses DeepSeek's standard built-in search (`web_search_20250305`). Billed strictly by model tokens with no extra search fee, **no 32K single-message input cap**, full support for sampling parameters (temperature / `top_p`), full coexistence with all client tools and MCP whether thinking is on or off, and the most reliable multi-turn prefix cache hit rate. - **DeepSeek enhanced search (optional standalone mode)**: Calls `deepseek_web_search` and `deepseek_read_url` for the same reverse image search, automatic link reading, webpage opening, and in-page search experience as DeepSeek's web app. Note that this mode is subject to a server-side 32K single-message input cap, the server overrides sampling parameters, and it cannot run simultaneously with client tools when thinking is disabled (under Anthropic Messages, if client tools are enabled in the same turn or the 32K cap is hit, it automatically falls back to standard built-in search with sticky downgrade within the current context window so cache is not broken by oscillation). 4. Under **OpenAI Responses / Chat Completions**, `deepseek-flash` offers **DeepSeek enhanced search** only. If the 32K cap triggers, tap **Retry without built-in search** or **Retry with external search** on the failure card. `deepseek-v4-pro` uses standard compatible built-in search under both Anthropic Messages and OpenAI Responses. Server-side search and webpage fetching triggered by DeepSeek models are billed purely by model tokens. **DeepSeek Search** inside Tool Services calls the standalone Search / Fetch API and is billed per successful request that returns results. [DeepSeek Pricing](https://api-docs.deepseek.com/zh-cn/quick_start/pricing/#web-tools-pricing) For full details on official DeepSeek compatibility, the 32K single-message cap, sampling parameters, cache hit rates, and common pitfalls, see **DeepSeek Official API Guide & Troubleshooting** under Hot Questions. ## DeepSeek reverse image search 1. With an official direct `deepseek-flash` model, select **DeepSeek enhanced search** in the chat search menu. 2. Tap **+ → Photo** beside the input box, choose an image, and send *"Help me find the source of this image and similar images"*. 3. After the model runs image search, expand the processing steps in the reply (e.g., "4s") and tap **Search images**. Tap any result to open the source webpage. Summaries and full URLs appear under **Details** (in Web chat, expand **Source details**). DeepSeek decides whether to invoke image search based on your image and prompt. Loadable images display thumbnails, while other results display their title and domain. Reopening the conversation retains access to these sources in that reply. ## If a model still says it cannot search after turning on built-in search in an older chat In an existing conversation where you first asked questions with search off and later enabled **Built-in search**, the model may sometimes carry over its earlier assumption that web tools are unavailable. This has been observed on both Chat Completions and Responses. [DeepSeek Thinking Mode Guide](https://api-docs.deepseek.com/zh-cn/guides/thinking_mode/#%E5%B7%A5%E5%85%B7%E8%B0%83%E7%94%A8) When this happens, we recommend starting a **new chat using OpenAI Responses**. Go to **Settings → Models & usage → Provider Management → DeepSeek → Models**, edit `deepseek-flash`, set **API Settings → Protocol** to **OpenAI Responses**, and save. Start a new conversation with that model, enable **Built-in search**, and ask again. Your original conversation history stays intact. ## DeepSeek conversation titles Official `deepseek-flash` also uses Cube Agent's standard smart title pipeline without passing a `title` parameter to the server, preventing first-turn chats from accidentally triggering the 32K single-message limit, extra wait times, or ignored sampling parameters. Manually renamed titles are always preserved. ## Gemini official built-in search 1. Open **Settings → Models & usage → Provider Management** and select the Gemini provider. 2. Keep API style set to **Google** and use the official Gemini Base URL (default: `https://generativelanguage.googleapis.com/v1beta`). 3. Select or add a Gemini model that supports built-in web search. If **Built-in web search** is off under model capabilities, open the model's edit page and check it manually. 4. Return to the Chat tab and tap the bottom-left web search button to enable **Built-in search**. ## Third-party or relay providers GPT, DeepSeek, or Gemini models accessed through third-party relays may not support official built-in search. You can configure the provider with the matching API style, enable **Built-in web search** on the model edit page, and check whether **Built-in search** appears in the chat search menu. If it does not appear, the current endpoint does not meet built-in search requirements. If it appears but requests fail, the relay likely does not forward the provider's hosted search capability. In that case, switch to an external search service: configure and enable an available search service under **Settings → Assistant capabilities → Tool Services**, then pick it from the chat web search menu. --- # DeepSeek Official API Guide & Troubleshooting > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Hot Questions. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/deepseek_official_guide/ Many users migrating from the official DeepSeek website or mobile app ask: if I use an official DeepSeek API key in Cube Agent, how closely does it match the official app, where does it differ, and how can I avoid common pitfalls? This guide explains everything in plain terms. ## 1. Which official DeepSeek capabilities are supported? - **Models & direct three-protocol support**: In **Settings → Models & usage → Provider Management**, choose the preset **DeepSeek** provider (official URL `https://api.deepseek.com`), which supports `deepseek-flash` and `deepseek-v4-pro`. `deepseek-flash` defaults to the **Anthropic Messages** protocol and can also be switched to **OpenAI Responses** or **Chat Completions** on the model edit page. Deep reasoning (thinking), multi-turn reasoning replay, and official context caching are all supported. - **Official built-in search (Standard and Enhanced available separately; no tool-call fee—billed only by model tokens)**: - **Built-in Search (Standard)**: Under the default **Anthropic Messages** protocol, both `deepseek-flash` and `deepseek-v4-pro` use standard `web_search_20250305` (`deepseek-v4-pro` also supports Responses standard search). There is **no 32K single-message input cap**, sampling parameters (`temperature` / `top_p`) take full effect, it coexists with all client tools and MCP whether reasoning is on or off, and multi-turn prefix caching is the most stable. - **DeepSeek enhanced search (standalone option)**: When you want official-app-grade **reverse image search, automatic reading of links in messages, opening web pages and in-page search during reasoning, and inline source citations**, explicitly select **DeepSeek enhanced search** in the web search menu (supported on `deepseek-flash` across all three protocols). - **Image upload reuse**: When sending images directly to the official endpoint, Cube Agent automatically uploads them through DeepSeek Files and reuses them during their validity period to avoid redundant transfers. - **Standalone tools & ecosystem capabilities**: - **DeepSeek Search (standalone Search / Fetch API)**: Enable in **Settings → Assistant capabilities → Tool Services → Web Search**. Billed per successful request that returns results, usable with any model, and free of the 32K single-message input limit. - **DeepSeek OCR**: Configure in **Settings → Models & usage → Default Models → Document Parsing**. Supports full PDFs (up to 100 MiB and 1,000 pages per file). - **DeepSeek voice input and read-aloud**: Toggle each independently in **Settings → Voice**. - **Migrating from DeepSeek**: Under **Settings → Data & sync → Import Data**, paste an official DeepSeek export download link directly or select a ZIP archive (including legacy 2024 CSV exports), preserving message branches, reasoning traces, search sources, and attachments. ## 2. Why doesn't Cube Agent replicate 100% of the parameters in DeepSeek's official Chatbot guide? DeepSeek's official "Build a Chatbot" guide describes three capabilities that Cube Agent intentionally does not copy by default—not by omission, but as deliberate trade-offs for a multi-model client's user experience and cost control: - **No server-side auto-title (`title`)**: Including this parameter on the first turn forces the request into DeepSeek's Chatbot pipeline, triggering the 32K single-message limit even when web search is off, ignoring sampling parameters such as `temperature`, and adding several seconds of wait time at the end of the first turn. Cube Agent uses its own asynchronous smart title generation instead, which is faster and more reliable. - **No server-hosted document parsing in place of local parsing**: Official hosted parsing bills per page on upload and does not let you download the parsed text. If you switch to Claude, GPT, or Gemini later in the same conversation, the document context would be lost completely. Cube Agent relies on local parsing, on-demand reading via **Conversation Files**, and standalone OCR so you can switch models at any time and keep chatting seamlessly. - **No forced strict `safety_check` moderation by default**: For users bringing their own API keys, enabling it incurs extra moderation token charges, increases tail latency, discards sampling parameters, and can falsely block legitimate code or tool outputs. ## 3. Common issues and how to avoid them ## 1. Long single messages fail with `user input too long` (32,768-token limit) - **Cause**: This does not mean `deepseek-flash` has a smaller context window. Instead, selecting **DeepSeek enhanced search** applies a hard 32K server-side cap to the **current single user message** (earlier turns in the conversation do not count toward this 32K cap, but pasting very long text or attaching large files in one message can easily hit it). - **How to avoid / resolve**: - Prefer standard **Built-in Search** (with the default Anthropic Messages protocol) for daily use—it has no 32K single-message cap; - If you explicitly selected **DeepSeek enhanced search** on default Anthropic Messages and hit 32K, Cube Agent **silently falls back to standard built-in search to retry and keeps sticky fallback for the current context window**, preventing later turns from flipping back to enhanced search and breaking the cache again; - On **Responses** or **Chat Completions**, the failure card shows two one-tap actions—**Retry without built-in search** and **Retry with external search** (affecting only the current turn without changing your defaults); - For large PDFs, long source files, or large spreadsheets, place them in **Conversation Files** (top-right of the chat) and use the **File Operations** tool so the AI reads sections on demand—saving tokens and avoiding single-message limits. ## 2. Why didn't "reverse image search" or "auto-read links" trigger? - **Cause**: Standard **Built-in Search** uses `web_search_20250305`, which does not include reverse image search or automatic link reading; only explicitly selecting **DeepSeek enhanced search** supports them. In addition, DeepSeek's server does not allow enhanced search to run together with client tools (such as File Operations or MCP) **when reasoning is off**—on Anthropic Messages, if reasoning is off while client tools are enabled, Cube Agent prioritizes keeping your tools working and automatically falls back to standard built-in search. - **How to avoid**: - Switch to **DeepSeek enhanced search** in the web search menu and **turn on reasoning**—with reasoning enabled, enhanced search (image search, deep paginated search, opening pages, in-page find) coexists completely with all client tools; - **If you want image search or link reading with reasoning off**: Select **DeepSeek enhanced search**, then temporarily uncheck client tools in the composer's **Tools** menu, or create a lightweight assistant with no client tools enabled. ## 3. On Responses / Chat Completions with reasoning off and enhanced search on, MCP or file tools don't run - **Cause**: Those two protocols do not have a standard built-in search fallback for `deepseek-flash`. To avoid an immediate HTTP 400 conflict, Cube Agent pauses client tools for that turn when reasoning is off and **DeepSeek enhanced search** is active. - **How to avoid**: Switch back to the default **Anthropic Messages** protocol (where standard built-in search and client tools coexist fully), enable reasoning, or switch to an external search service. ## 4. Adjusting `temperature`, `top_p`, or stop sequences appears to have no effect - **Cause**: Whenever a request runs through the **DeepSeek enhanced search** pipeline, the server takes over sampling and ignores `temperature`, `top_p`, stop sequences, and related parameters sent in the request. - **How to avoid**: Switch to standard **Built-in Search** under default Anthropic Messages, turn off web search, or use an external search service—all sampling parameters will then take full effect. ## 5. Cache hit rate occasionally drops sharply - **Cause**: DeepSeek's context cache matches by whether the beginning of the request stays identical. Keeping the same configuration across turns gives the highest hit rate (typically very high with search off or staying on standard built-in search; staying on enhanced search can also hit the cache, though the server's built-in search prompt accounts for a larger share). The following changes cause the prefix cache to be rebuilt on that turn: - Repeatedly toggling reasoning on/off, toggling tools, or switching between Built-in Search, DeepSeek enhanced search, and external search mid-conversation; - Pasting very long text that hits 32K and automatically falls back to standard built-in search rebuilds the cache once on that turn, then stays on standard search within the current context window so it does not bounce back and forth. - **How to avoid**: - Keep reasoning, tools, and web search settings steady while working on the same task; - For long conversations or tasks requiring maximum cache stability, prefer standard **Built-in Search** or turn web search off; - Start a new conversation when switching to an unrelated topic (see "How do I improve cache hit rates and lower API costs?" in the Help Center). ## 6. After enabling built-in search mid-way through an old chat, the model still says it "cannot browse the web" - Choose **Built-in Search** in that conversation's web search menu, then send "Please verify this online and include sources." Previous search records remain intact, and older errors in tool cards only reflect those past calls. - If the new request still fails, include the tool card's "Result" and "Arguments", the model name, and the selected protocol when sending feedback so the actual search path can be checked. ## 4. Which setup works best for each scenario? - **Everyday research, coding, running MCP, strict temperature control, reviewing very long texts**: Default **Anthropic Messages** + `deepseek-flash` + standard **Built-in Search** (or search off)—no 32K cap, full sampling parameter control, seamless coexistence with all tools, and the most stable cache hit rate. - **Deep research, reverse image search, automatic link reading**: Switch to **DeepSeek enhanced search** + **Reasoning on**—official-grade image search, pagination, page opening, and in-page find together with local tools, plus automatic sticky fallback if you hit 32K. - **Fast lightweight chat (reasoning off + image search / link reading)**: Choose **DeepSeek enhanced search** and uncheck client tools in the **Tools** menu. --- # What can the AI do for you? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/ai_agents_overview/ ## What it is Cube Agent hands a set of configuration and maintenance tasks to dedicated AI sessions or assistant tools: you describe what you need, and the AI reads your actual configuration, tests endpoints, and proposes a plan. Every write action opens a confirmation card and only saves once you approve—the AI can never modify settings behind your back. ## Configuration: three dedicated AI sessions - **AI Provider Management**: Go to **Settings → Models & usage → Provider Management → Let AI help configure it**. Inspect settings, test connections, fetch model lists, compare providers and plans, organize model lists you paste in, and probe non-standard endpoints with scripts when needed. See "What is AI Provider Management?". - **Balance queries**: In the **Account Balance** section of a provider's details page, pick a preset template for one-tap setup or tap **Set up with AI** to choose a model and provide API docs. The AI tests the real endpoint until it parses the balance accurately before saving; once configured, balances appear directly in the provider list and model picker. See "How do I set up provider balance queries?". - **AI Image Recipe onboarding**: Open **Image Generation Workspace → Model panel → Add Model via AI**. Paste the API documentation for any image generation endpoint; the AI tests calls, verifies an actual generated image, and saves it as a recipe so the model appears right in the workspace. See "What is AI Image Recipe onboarding?" and "How do I design a good image recipe?". - **AI Theme Designer**: Open from the **My Themes** page. Describe the vibe you want, send a reference image to match its palette, or ask to model a specific theme; the AI produces multiple candidates with matched light and dark modes. Tap a candidate card's button to save or apply it (custom themes are a Pro benefit). See "Appearance personalization". ## Knowledge capture: everyday tools directly inside chat Set default tools in **Assistants → Edit assistant → Tools**, or turn them on per conversation anytime via **Tools → Choose Tools** in the chat bar, then simply ask in chat: - **Manage Skills**: Say "Turn this workflow into a skill," and the AI produces a draft card that saves once you confirm. Reuse the whole workflow with a single sentence later—supporting targeted edits, inserting before or after specific sections, and rolling back to the previous version without rewriting the entire skill. - **Manage Knowledge Bases**: Say "Save this conclusion to the XX knowledge base," and the AI formats it into a clean note on a draft card. Supports targeted edits, mid-document insertion, local file copying, and importing entire files directly (raw file content goes straight into the base without passing through the model). - **Environment Variables**: Store `API Key` values needed by skills and scripts in one place, isolated per assistant. Network requests inject credentials on the host side without returning plaintext secrets to scripts or the model. ## A complete end-to-end scenario "I want to use Provider X for image generation, and give the app a fresh color theme too": 1. In AI Provider Management: paste the docs and key to connect Provider X; 2. While there, say "Set up balance checking for this provider too"; 3. Confirm the model is ready in the Image Generation workspace and generate an image; 4. In AI Theme Designer: send a screenshot you like and say "Design a color scheme based on this"; 5. Once your prompt workflow feels dialed in, say "Save this as a skill." Not a single write action skips your confirmation. ## Question cards In the three dedicated sessions—AI Provider Management, AI Image Recipe onboarding, and AI Theme Designer—whenever you need to decide among several choices (such as which provider, model, or approach to use), the AI displays a question card so you can tap your choice. Recommended options appear first, and the AI will not ask you for information it can already look up. Question cards are never used to request API keys, passwords, tokens, or verification codes; when a key is needed, use the **Save a Key** button in the input bar to store it locally on your device. ## Notes - Manage Skills, Manage Knowledge Bases, and other chat tools share the same tool picker: set defaults in the assistant editor or toggle them anytime for the current chat via **Tools → Choose Tools**; - The AI cannot delete an entire skill or knowledge base—full deletion must still be done in the Skill Center or Knowledge Base center; - Each dedicated session stays within its own domain (for example, AI Provider Management never touches MCP, skills, or assistants). --- # How do I configure and test an app proxy? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/app_proxy_settings/ Search for **In-App Proxy** in Settings, add or edit a proxy, enter the host and port, and select the protocol. SOCKS5 requires API 26 and system capability support; once switched to SOCKS5 you can also enter a username and password, though most local proxies require no authentication. **Bypass List** supports domains or IP addresses—for example, `example.com` or `192.168.1.10`—separated by commas or new lines. Matching addresses connect directly. **Test Connection** at the bottom checks the actual route using your current unsaved settings and reports success or the failure reason; tap **Save** once everything looks right. Testing does not save your settings automatically, nor does it guarantee that every model endpoint works—use the connection test on each provider's details page to verify model capabilities. --- # How do I test model connections? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/provider_connection_tests/ Open **Settings → Models & usage → Provider Management**, open a provider's details page, and tap **Test Connection**. Choose a model at the top of the panel—you can search by name or ID. For chat models, you can separately test **Text reply**, **Streaming**, and **Tool calling**; for embedding models, the test checks returned vector data. Tap an individual test or retry it, or run a full round of tests (you can stop a run while in progress). Expand **Details** to inspect the response and copy it if needed. Pass/fail checks inspect the actual response rather than relying solely on the HTTP status code. A passing text reply does not guarantee that streaming or tool calling is supported—verify each capability you need. Actual model and API support always depends on the provider. Each test round uses a single API key; to test a specific key, open multi-key management and test it individually. Tests make real model calls and are billed according to the provider's pricing. --- # How do I share or import a provider? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/provider_share_import/ ## Share Open **Settings → Models & usage → Provider Management**, enter a provider's details page, and tap **Share** in the title bar. **Include API Key** is off by default, sharing only configuration details such as endpoint URL, protocol, and models; the generated QR code and share code require no password, and the recipient enters their own key after importing. When **Include API Key** is turned on, you must set a 4–6 digit numeric password, and the shared payload is encrypted with that password. Share the password with the recipient through a separate private channel—do not forward it together with the QR code. If the configuration is too large to fit in a QR code, copy the share code and send that instead. Cloud-managed built-in providers (such as the Cube free trial) cannot be shared. ## Import In the Provider Management title bar, choose **Import via QR**, or copy a share code sent to you and choose **Import from Clipboard**, review the preview, and save. Importing a share code without a key clears API keys, balance credentials, and credential-type headers, so you will need to enter your own API key. Share codes created in older versions can still be imported. --- # What is AI Provider Management? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/provider_ai_management/ ## What it can do Open **Settings → Models & usage → Provider Management** and tap the persistent **Let AI help configure it** banner at the top of the list. Inspect settings, test connections, discover models, and compare providers or plans; the colorful AI icon in the top-right corner opens the same entry. ## How to recognize this entry and mode The first time you open Provider Management, the app shows a one-time introduction to AI management where you can tap **Choose a management model** right away; once dismissed, it will not pop up repeatedly. The **Let AI help configure it** bar at the top remains visible permanently so you never have to remember a hidden entry point. Once inside, the title bar permanently shows **AI Provider Management** and **Management mode**, so it cannot be confused with regular chat; actual changes such as saving configurations still ask for your confirmation beforehand. Management sessions are preserved automatically: you can leave mid-way anytime and pick up where you left off via **Resume last AI session** at the top of Provider Management. You can view, resume, or delete all sessions under **AI Session History** on the Provider Management page or in the management session's title-bar menu. That title-bar menu also offers message navigation and **Clear this conversation**: clearing removes all messages and version history in the current session without affecting configurations you have already saved. Management sessions are stored only on your device (and synced with backups) and never appear in any assistant's conversation list. You can ask the AI directly to: - Inspect settings, test connections, and organize providers or models. - Compare providers, plans, and models using current official information. - Discover model lists from standard endpoints. - Search the web for provider documentation, API formats, and model capability details. - Create, edit, or disable providers, or modify model capabilities. - Parse, deduplicate, and merge real model lists you copied from a web page into a specified provider. You stay in control: configuration changes require confirmation. Network scripts can temporarily use existing keys; review them before running. ## Choose a management model first Whenever you enter from Provider Management, the app lists your currently enabled text chat models. Recommended choices at the top prioritize the last-used model, your default chat model, or models known to support tool calling. This choice applies only to AI Provider Management and does not alter your default chat model or the current model in regular chats. You can choose a model whose capabilities are not yet confirmed; tool calling will be verified on your first message. If a model or endpoint does not support tool calling, or if the chosen model is later disabled, the page notifies you clearly and reopens the model picker. ## Read vs. write actions Viewing settings, running connection tests, and discovering models are read-only actions. Creating, editing, or deleting providers—as well as adding/removing models or changing model capabilities—are write actions: the model can only propose structured changes, and a tool confirmation panel showing the key parameters appears before execution. Deleting a provider or removing models uses an emphasized red confirmation dialog and warns that the action cannot be undone from the confirmation panel. Built-in providers managed by your account or cloud service (such as the free trial) are protected at a low level and cannot be deleted, though you can disable them when not needed; other preset providers can be deleted and added back later from the provider catalog. ## JavaScript capabilities Management mode can use local QuickJS to parse non-standard lists you paste in, clean JSON, deduplicate model IDs, and make direct network requests. Standard connection tests and model discovery prefer the app's native services; when dealing with non-standard endpoints, custom request bodies, or raw response inspection, the AI first displays a JavaScript execution confirmation, then calls `providerFetch` to automatically attach the provider's existing credentials and send real requests. When testing a new provider, save the provider configuration first before requesting credential injection for it. `getLocalSecret` and `getProviderCredential` no longer return keys to scripts; `CUBEKEY` is a reference generated when a key is saved in management mode—it is not an assistant environment variable name, and its number must not be guessed. ## Privacy and key security AI Provider Management sends your management conversation—along with necessary metadata such as provider names, Base URLs, API paths, model IDs, configuration status, and test results—to the management model you selected. When web search is used, search queries and target URLs are also sent to the corresponding search or web services. Do not include internal addresses, customer data, or other sensitive content you do not wish to share with those services. Provider API keys, the active key in a multi-key setup, and authentication headers flagged as sensitive are never returned to the model by provider inspection tools. They are temporarily injected into local QuickJS only after you approve a JavaScript run, at which point the script can send authenticated requests to network URLs written in the code. Account-session built-in providers never expose Session Tokens to scripts and always use native connection tests. Raw credentials in script logs, return values, and errors are redacted again, but automatic detection is not absolute protection: a script that intentionally encodes, splits, transforms, writes a key to an output file, or forwards it in another network request could bypass string redaction. For that reason, the confirmation panel displays the script code; before approving, verify the provider ID, target domains, and script purpose, and cancel immediately if you see unfamiliar domains, credential printing, file writes, or secondary forwarding. When adding or replacing keys, use the **Save a Key** button in the input bar—keys are saved only on your device and appear in chat solely as a `CUBEKEY` reference (which can be saved into provider configs but cannot be read in plaintext by scripts)—or enter them in the native Provider Details form. If a key has already been pasted into chat in plaintext, you can let the AI save it (a confirmation panel still appears with the key masked); however, because the key was already sent to the management model's provider in chat, revoke or rotate it in your provider's console as soon as possible and update the new key in Cube Agent. Management mode also provides web search and web page reading. When you are unsure about a provider's rules, endpoint URLs, or capability fields, the AI can check public documentation and official pages first and combine those findings with your local setup to make recommendations. Information found online is never written directly to your local configuration without your confirmation. ## Recommended prompts - "Inspect my current provider settings and tell me what might be misconfigured." - "Test whether this model connects—check only, do not change anything." - "Here is the model list from the provider's webpage; deduplicate it and save it to that provider." - "Update this model to support vision and tool calling while keeping all other capabilities unchanged." The AI reads your actual configuration before acting and re-reads to verify after writing. The current version manages providers and models only—MCP, Skills, and assistants remain managed on their own pages. --- # How do I set up provider balance queries? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/provider_balance/ ## Balance queries and the split-pane model picker Providers with a configured balance endpoint display their account balance directly in the **Settings → Models & usage → Provider Management** list. The chat page's **Select Model** panel defaults to a **split-pane** layout with a left rail (giving one-screen access on the left to Favorites and each provider with a compact balance, while the right pane displays the selected provider's full balance and model list). Tap **List / Split** in the top bar to switch back to the single-column pill view—your preference is saved on-device. Inside **Favorites**, you can also set it as the default opening tab with one tap (automatically falling back to the current provider if no favorite matches the current scenario). You can filter quickly by capability (reasoning, vision, tools, web search, etc.), type to switch automatically to full-width cross-provider search, refresh all balances at once, or refresh and retry a single provider individually. Setup location: Provider Details page → **Account Balance** section. ## Option 1: Choose a template Pick from preset templates such as DeepSeek, Kimi, StepFun, OpenRouter, and others. Selecting a template fills in the balance URL, API path, and parsing rules; save and query to verify. If a template does not match, adjust the URL and result path manually. SiliconFlow's original balance query endpoint has been discontinued, and no replacement balance query API is currently available. You can check your balance directly in the SiliconFlow console. ## Option 2: Set up with AI Tap **Set up with AI** in the Account Balance section and pick a management model. The session pre-fills a setup request for the current provider. Paste the API documentation or instructions from your provider's console before sending; the AI tests the live endpoint and refines the parsing path from the real response. A confirmation panel appears before any settings are saved. ## Custom endpoint - **Balance Base URL / Balance API Path**: Leave Base URL empty to use the provider's primary Base URL. - **GET / POST override**: Switch the method to POST if the API requires it, and fill in **Request Body Template (JSON)**. - **Custom Headers (JSON object, optional)**: Sends `Accept` and `Authorization: Bearer` headers by default; any header with the same name is overridden by your value. - **Placeholders**: Request body and custom headers support `{{apiKey}}` and `{{baseUrl}}`. - **Result JSON Path / Currency JSON Path**: Specify where the balance value and currency appear in the response. Supports dot paths, array indices, and `+`/`-` expressions, with plain numbers treated as constants (for example, `100 - usage.monthly.percent` to calculate remaining percentage). When an API relay returns raw quota units that require conversion, append **`* `** or **`/ `** after a single path—such as `data.quota / 500000` (OneAPI-based relays typically divide `quota` by `500000` to convert to USD). - **Dedicated Balance Key (optional)**: For providers whose balance API uses different credentials from the model API, enter a dedicated key here; when set, balance queries use it first. ## Request preview (redacted) The preview assembles the actual outgoing request in real time based on your current settings, with credentials masked. Check it before sending to spot mistyped URLs or the wrong HTTP method in advance. ## Best practices - Start with a template whenever available, and test after each change rather than batching multiple edits together. - If the request succeeds but the amount looks wrong, inspect **Result JSON Path** first—usually the number is nested under another field. An unusually huge number (such as tens of millions) usually indicates raw relay quota units that need a divisor such as `/ 500000`. - When a relay uses a different balance API from the official provider, use a **Dedicated Balance Key** or separate Base URL so model calls are unaffected. - If an uncommon API is tricky to parse, hand it to the AI agent: paste the documentation and let it test until the displayed balance is accurate. ## Privacy note Balance queries are sent directly from the app to your configured provider without passing through Cube Agent servers. When you use AI setup, the endpoint URL and documentation you provide are sent to your selected management model. --- # Default model roles > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/roles/ ## What Default Models are Default Models let you assign a preferred model to each task independently. Open **Settings → Models & usage → Default Models**. The main chat model card sits at the top, followed by grouped task rows. The model pill on the right of each row shows that task's current model—tap it to change. Subtitle text beneath a task appears only when there is something noteworthy, such as a non-default reasoning effort, a custom prompt, or an unconfigured role. ## Task roles - **Chat**: Primary model for conversations. - **Title Generation**: Automatically names conversations; output language follows the current app language. - **Suggested Questions**: Generates follow-up prompts; output language follows the current app language. - **Translate**: Translates messages. - **OCR**: Extracts text from images. Document, text, and table images can run through on-device OCR first; when "Prioritize LLM recognition" is enabled, the OCR model configured here is used first instead. - **Image Generation**: Model used by the standalone Image Generation workspace. - **Document Parsing**: MinerU, PaddleOCR, DeepSeek OCR, and existing vision models—configured separately from image OCR. - **Knowledge embedding**: Powers the semantic vector channel (Embedding) in Knowledge Base hybrid search. Configured only on the Default Models page or inside a knowledge base's details, and never shown in regular chat model pickers. - **SSH Command Review (Pro)**: Used for AI-assisted SSH command approval. ## Reasoning effort for helper tasks Tap **Title Generation** or **Suggested Questions** to open its model picker; the top of the panel provides an independent **Default Reasoning Effort** setting for that task. When left unset ("Default"), it uses the model or endpoint's own default effort. It applies only to that helper task and does not affect chat or assistant reasoning effort. This control is hidden if the chosen model does not support reasoning. OCR's "Prioritize LLM recognition" toggle is likewise placed at the top of its model picker. ## Embedding models vs. chat models The app tries to detect **embedding models** automatically from model IDs and names. If auto-detection misses one, open the provider's **Model Edit** page and label its type manually (Chat / Embedding). Once labeled as an embedding model: - It will no longer appear in model pickers for chats, assistants, or other conversational tasks. - It will appear under Default Models → **Knowledge embedding** and in knowledge base indexing pickers. ## Switching models When opening the model picker from a chat, the default layout is **split-pane** with a left rail: the left column provides one-screen access to **Favorites** and every provider with compact balances, while the right column focuses on the selected provider's models and full balance. Tap **List / Split** in the top bar anytime to switch back to the single-column pill layout (preference saved locally). Inside **Favorites**, you can also set Favorites as the default opening tab with one tap (automatically falling back to the current provider if no favorite matches the current scenario). Typing a search keyword or selecting capability filters (reasoning, vision, tools, web search) automatically switches to full-width cross-provider search and restores split-pane view once cleared. Tap **Manage** in the bottom-left corner to jump straight to Provider Management. Conversational pickers automatically hide image-only and embedding models to prevent accidental selection. Multimodal models capable of outputting both text and images remain available in the chat picker and display the corresponding capability badges. ## Notes If a role is unconfigured or its model becomes unavailable, only that specific feature is affected—for example, leaving Suggested Questions unconfigured does not affect normal chat. Title Generation and Suggested Questions strip extra numbering, Markdown formatting, and quotation marks so results stay clean and consistent. --- # How do providers, default models, and assistant models differ? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/provider_default_assistant_models/ ## Three layers 1. **Provider Management** controls "which models the app can connect to." Configure the Base URL, API key, and API protocol here, and maintain each provider's model list. 2. **Default Models** controls "which model each task uses by default." Chat, Title Generation, Suggested Questions, Translate, OCR, Image Generation, and Knowledge embedding are configured independently; Context Compression has no separate setting and always follows the current conversation's model. 3. **Assistant models** control "whether a specific assistant overrides the global chat model." When left unset, an assistant follows the global chat model; when set, the override applies only to new conversations with that assistant. ## Recommended order - Step 1: Go to **Settings → Models & usage → Provider Management** to connect a provider and make sure the target model is enabled and reachable. - Step 2: Go to **Settings → Models & usage → Default Models** to configure Chat and any helper tasks you need. - Step 3: Only when a specific assistant genuinely needs a different model long-term, configure an override under **Assistants → Edit assistant → Model & Reasoning**. ## Update Model Library **Settings → Models & usage → Update Model Library** (Sync latest model capabilities and icons) refreshes both the model catalog and supplementary metadata. If either stream fails, the app alerts you clearly and preserves existing data without clearing anything. Whenever you use a model not yet listed locally, the app also refreshes once in the background automatically—no manual action needed. ## Common misconceptions - Adding a model under a provider does not automatically make it the default chat model. - Changing the default chat model does not change assistants that already have an explicit model assigned. - Leaving Title Generation, Translate, or Embedding unconfigured affects only those specific tasks and does not mean your chat model is unavailable. - A provider or model name does not prove vision, tool calling, or protocol support—rely on actual settings, official documentation, and connection tests. If you are unsure which provider, plan, model, or protocol to pick, open **Provider Management → Let AI help configure it** so the AI can inspect your current state and test connections before proposing changes for your confirmation. --- # How do I use worldbooks (Pro)? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/worldbook/ ## Importing and mounting 1. Open **Settings → Assistant capabilities → World Books**, tap the plus button **Add World Book**, and choose **Select JSON file** (SillyTavern or RikkaHub exports), **Design one with AI**, or import from **Sample world books**. Worldbooks and knowledge bases have separate management entries and lists; importing requires an active Pro entitlement. 2. In the import preview, review usable entries, entries needing attention, and entries disabled in the source file, and expand compatibility details. Unrecognized files will not create any data. 3. Once imported, you can search and edit entries in the detail view, or export as SillyTavern World Info JSON. 4. Tap **Start playing** on the details page to create or reuse a " · Narrator" assistant, mount this worldbook, enable story choices, and enter a new chat following the book's opening settings. When Opening is set to Off, it only pre-fills the user input draft without sending automatically. 5. You can also open **Assistants → Edit assistant → KB → World Books** to mount a worldbook to an existing assistant. Knowledge bases and worldbooks are shown in separate groups; each group's **Manage** opens its own list, and batch mounting by tag affects only that group. Tap **View entries** to inspect details, then return to keep editing the assistant. ## Editing a worldbook with AI inside chat 1. Open a normal conversation with an assistant that has a worldbook enabled, using a model that supports tool calling. 2. Clearly state the change you want saved to the worldbook—for example, "Change Old Pier to Tidal Pier in the worldbook" or "Only adjust the trigger keywords on the Lighthouse entry." When multiple worldbooks are enabled, specify the book name in your message or choose one when the assistant asks. 3. Open the edit preview in the reply, verify the book title and before/after content, then tap **Apply to this book**. Assistants already mounted with that book will use the updated entries. If the preview warns that the original book has already been updated, ask the AI to re-read the entries and generate a fresh preview. To draft a brand-new book, use **World Books → Add World Book → Design one with AI**. ## Importing a worldbook with the same name When a duplicate-name warning appears in the preview, tap the handling option and choose **Save as new** or **Overwrite original**. Overwriting updates the original book's entries and opening settings, and assistants already mounted with it will continue using the updated content. To keep both versions, choose **Save as new** and enter a new name. ## Character card openings and settings When importing a SillyTavern V2/V3 character card JSON with an embedded worldbook, Cube Agent reads both the primary greeting and alternate greetings. You can pick and edit them during import preview, or adjust them later in **World Book Details → Opening**. The primary greeting defaults to a fixed opening; if there is no primary greeting, the first non-empty alternate greeting is used. - **Fixed**: New chats immediately display an assistant message without calling the model. - **Generated**: Provide opening instructions using the assistant's AI-generated opening feature; choose automatic start, or enter the chat and tap **Let the assistant start** manually. Automatic start defaults to off when importing from a file—enable it manually if needed. - **Off**: You send the first message. When a regular worldbook has no character card greeting but contains a keyword-triggered opening entry (whose title or keywords reference an opening or starting the game), the import preview switches to **Generated** by default and uses that entry's content as the opening instructions. Because keyword-triggered entries normally will not match before any message exists, passing the entry as opening instructions lets the Narrator open according to its lore. You can modify or disable this in the preview; for already-imported worldbooks, tap **Generate opening from entry** under **Opening**. Opening settings apply to assistants mounted with that worldbook: when an assistant's own opening is **Off**, manually starting a new chat uses the worldbook's opening (including tapping "New Chat" from the assistant list); editing the worldbook's opening takes effect on the next new chat. The Narrator assistant always follows the book; if you explicitly set or modify an opening on an assistant, the assistant's own setting takes precedence. Existing chats are unaffected. If multiple worldbooks with openings are mounted, the first one in the mounted list is used. Under **Edit assistant → Prompt → Opening**, you can check which worldbook's opening is active, copy it in to customize, or select alternate greetings from a character card directly in Fixed mode. Original alternate greetings are preserved, and your selected and edited opening is saved, backed up, and exported with the worldbook. Opening settings are stored in World Info JSON via a Cube extension; whether other apps adopt them depends on their support. Entry text is stored verbatim—SillyTavern macros in character cards are not executed automatically and can be replaced with plain text during preview. ## Designing a worldbook with AI Under **World Books → Add World Book → Design one with AI**, describe your idea (a genre, tone, or single scene is enough) or share a story or setting document. The AI first uses a question card to confirm a few key questions, then displays the full worldbook as an in-chat card. Tap **Preview & import** to enter the import preview—nothing is created until you confirm. You can keep suggesting revisions: the AI submits only the modified entries while the card renders the merged full book, avoiding full rewrites each turn. Design conversations stay on your device so you can return to them anytime from this entry. ## Story choices When an assistant has the **Ask User** (`ask_user`) tool enabled and a worldbook mounted, the AI displays a question card with action choices whenever the plot reaches a branch—you can tap an option or type your own, while ordinary narration will not interrupt every turn. To turn off choice prompts, disable **Ask User** in the assistant's tool settings. The Narrator assistant created by **Start playing** has it enabled by default. Question cards in these conversations display the title **Your move**. ## Try a starter example The fastest way is to open **World Books → Add World Book → Sample world books**, choose **Foglight Harbor** or **The Lost Mine**, import it, and tap **Start playing**. The JSON below is a minimal importable example containing two entries: "Story Background" and "Lighthouse." Save the code as a UTF-8 file named `worldbook-starter-example.json`, go to **Settings → Assistant capabilities → World Books → Add World Book → Select JSON file**, choose that file, review the preview, and confirm import (it will not mount to any assistant automatically). 1. Mount the example to an assistant and start a new conversation. 2. Send "Tell me about this small town": the always-on background entry joins the request. 3. Next, send "Take me to see the lighthouse": once the keyword appears in recent messages, the lighthouse entry also matches. 4. Open the chat's Context Budget panel to inspect which worldbook entries matched and were included; whether the reply repeats the lore word for word is up to the model. The example uses SillyTavern JSON format. `entries` stores the entries, `comment` is the entry name, `key` holds primary keywords, `content` is the text injected into context, `constant: true` keeps an entry always enabled, and `disable: true` disables it. ```json { "name": "World Book Starter Example", "entries": { "0": { "uid": 0, "comment": "Story background (always enabled)", "key": [], "content": "The story takes place in Silverport, a seaside town whose people live on sailing and ship repair.", "constant": true, "disable": false }, "1": { "uid": 1, "comment": "Lighthouse (keyword triggered)", "key": ["lighthouse", "keeper"], "content": "Silverport's lighthouse is tended by Lin Zhou. Whenever thick fog rolls in, he rings the bronze bell to guide ships home.", "constant": false, "disable": false } } } ``` The Cube App Guide can read `help.md` via the "App Help" skill, which is generated live from the Help Center. If an older session read outdated help content, ask it to read the guide again. ## When entries take effect Supports primary keywords, regular expressions, and always-on entries; scans the last two messages by default. Matching does not mean every entry is included: entries are also constrained by enabled switches, compatibility status, and context budget limits. Open the chat's Context Budget panel to inspect the **Worldbook** matched count, included count, and actual injected entries. Worldbooks inject lore conditionally and do not use ordinary document vector search. Currently unsupported trigger conditions—such as secondary keywords, probability, and delay—are grouped under **Needs attention** and disabled; they can only be enabled after you explicitly handle them on the entry edit page. Some settings such as groups preserve only raw metadata, and actual behavior may differ from the original app. ## File and entitlement limits Imported files can be up to 8 MiB with up to 5,000 entries; each request includes up to 64 entries and 24,000 characters. After Pro expires, your data and mounts remain intact—you can view, export, delete, or unmount them—while importing, editing, toggling, and triggering pause. If your entitlement cannot be verified, check Membership status or retry. --- # When should I use skills, knowledge bases, system prompts, or memory? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/assistant_capability_compare/ ## One-line rule of thumb - Identity, tone, and short rules that must apply on every turn belong in the **System Prompt**. - A repeatable workflow, set of steps, or multi-file guide read only when needed belongs in a **Skill**. - Product manuals, project docs, long documents, and searchable reference material belong in a **Knowledge Base**. - User preferences, long-term facts, and information to remember across future chats belong in **Memory**. ## System Prompt Included in the model context on every turn, giving the most consistent enforcement—but longer prompts consume more tokens. Best for short, stable, always-on rules; not suited for large reference dumps or secrets. ## Skills Loaded on demand by the model through tools, making them ideal for workflows, guidelines, and step-by-step methods. Skills can reference assistant environment variable names, though raw secrets should never be written directly inside skill files. ## Knowledge Base Stores full reference documents and supports full injection, keyword search, or semantic search after building a vector index. Building an index never modifies the source text; if you only inject short reference notes in full, you can skip indexing for now. ## Memory Stores durable preferences and facts, separated into per-assistant private memory and shared global memory. It is neither a document repository nor a place for API keys. Incognito chats never write to memory. ## Use them together For example: use the System Prompt to set response style, a Skill to define the workflow, a Knowledge Base to provide product documentation, and Memory to retain user preferences. They complement rather than replace one another—covering rules, methods, reference material, and long-term context respectively. --- # System prompt > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/system_prompt/ ## What it is The system prompt defines the AI's persona, tone, and response rules. By default, an assistant's own prompt takes priority, falling back to the global prompt if the assistant prompt is empty. To use both together, turn on **Add global prompt at the beginning**. If a conversation has its own prompt set, only that conversation prompt is used. ## Where to configure it Open **Settings → Assistant capabilities → System Prompt** to edit or disable the global prompt. When disabled, no assistant uses the global prompt, though individual assistant prompts and conversation prompts continue working. Tap **Import from file** in the top-right corner to load a `.md` or `.txt` file directly—headings, lists, and code blocks stay intact with less risk of losing formatting than copy-paste; tap Save after importing for it to take effect. Clearing the global text and saving restores the default template; if you do not want a global default, turn off **Enable Global Default Prompt**. ## Available variables Tap to insert variables while editing; they are replaced with live values when sent: - `{{current_date}}` current date, `{{current_weekday}}` day of the week, `{{current_lunar}}` lunar date. - `{{current_time}}` full date (including weekday and lunar date, accurate to the day). - `{{current_clock}}` current time (accurate to the minute). ## Assistant environment variables Never put API tokens or other secrets inside system prompts, memories, or Skill files. Open **Assistants → Edit assistant → Prompt → Variables** to add environment variables for that assistant—for example, `SILICONFLOW_API_KEY`. Variables are isolated per assistant: switching to another assistant never reads or overwrites them. To reuse variables elsewhere, tap the copy button next to the Environment Variables heading, choose the variables, and pick target assistants. Conflicting variable names keep the target value by default unless you explicitly choose to overwrite. Copying creates independent copies—later edits on either assistant do not sync to the other. Variables are never injected into model context automatically. Only when you explicitly write `{{env.SILICONFLOW_API_KEY}}` in an assistant prompt is it replaced with the real value; doing so sends that value to the model provider, so use it only when strictly necessary. When calling APIs, use host-side credential substitution for network requests, or request provider credentials in the code workspace and call `providerFetch`. A script's `process.env` is empty by default and no longer reads sensitive values directly; never write secrets into Skills, chat messages, logs, or tool results. Environment variables are included with selected assistants in backups, exports, and Nearby Transfer—including when choosing "Share content." The review page notes that the file contains plaintext credentials; if you do not want to share them, deselect that assistant or share plain text instead, and never attach export packages to feedback tickets. ## Assistant prompt workspace In **Assistants → Edit assistant → Prompt**, **Prompt** sets the assistant's role and instructions, **Rules** manages supplemental injection rules, **Opening** configures the opening message, and **Variables** manages assistant environment variables. After editing Prompt, Rules, or Opening, tap Save in the top-right corner; environment variables save separately and take effect immediately. See "How do I configure prompt injection rules?" and "How can an assistant start the conversation?" for details. ## Add global prompt at the beginning Turn on **Add global prompt at the beginning** beneath the assistant prompt and save. Before sending, variables in both prompts are resolved first, and the global prompt is then placed before the assistant prompt separated by one blank line as a single system prompt. This simply concatenates the text—the AI does not summarize, merge, or rewrite it. For example, if the global prompt says "Answer concisely" and the assistant prompt says "Help me practice for an interview," the combined prompt sent is "Answer concisely", a blank line, and then "Help me practice for an interview." This toggle is set per assistant and defaults to off: when off, the assistant prompt takes priority; when the assistant prompt is blank, an enabled global prompt is always used regardless of this toggle. If the global prompt is disabled, nothing is prepended. If a conversation has its own prompt set, only the conversation prompt is used. ## Time variables and caching The system prompt sits at the very start of every request. Whenever any time variable inside it changes, the model's prefix cache must be rebuilt from scratch—slowing replies and increasing token costs. `{{current_clock}}` changes every minute and has the biggest impact; day-level variables like `{{current_date}}` also invalidate the cache across midnight. For this reason, the default template no longer includes time variables. When the AI needs to know the time, enable the **get_time_info** tool in Tool Services so the model fetches it on demand, or turn on **Provide time info** in the assistant editor rather than embedding time variables in the system prompt. ## Scope of effect Changes take effect starting from the next message sent, including in existing conversations; replies already generated remain unchanged. How strictly a model follows system prompts varies by model. Explicitly enabled prompt injection rules, tools, memory, skills, knowledge bases, and time reminders still add their own content as configured. To test a base prompt in isolation, turn those features off and start a new conversation so history does not influence the output. ## Per-conversation override Since version 1.5.0, you can override the system prompt for a single chat: open the chat's top-right More menu → **Edit conversation prompt**, enter the prompt for this chat, and save. It applies only to the current conversation without affecting any others. When a conversation prompt is set, neither the assistant prompt nor the global prompt is used. Clearing it restores the assistant's original settings, including **Add global prompt at the beginning**. ## Pure mode (send conversation text only) If you want to strip away all extra context to test or compare a model's raw behavior, turn on **Settings → Assistant capabilities → System Prompt → Pure mode (send conversation text only)**. - **Scope**: Applies to all regular conversations on this device (dedicated management sessions such as Provider Management, Image Recipe onboarding, and Theme Designer are unaffected). - **What is skipped**: When enabled, sending messages omits global, assistant, and conversation prompts, injection rules, built-in and MCP tools, memory, skills, knowledge bases/worldbooks, mounted folders, time reminders, and context summaries—sending only the raw conversation messages to the model. - **Indicator and turning off**: While active, the chat composer toolbar automatically hides inactive controls (web search, tools, skills, MCP, mounted folders, remote connections) and displays a banner above the input bar. Tap **Turn off** on the banner (or disable it back in System Prompt settings) to restore your original configuration immediately. --- # How do I configure prompt injection rules? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/assistant_prompt_rules/ ## When to use it Save recurring response formats or supplemental instructions as rules. Keep general identity and tone settings in **Prompt**; rules are inserted into subsequent model requests as configured without modifying your chat history or making extra model calls. ## Setup steps 1. Open **Assistants → Edit assistant → Prompt → Rules**, and tap **Add**. 2. Enter a rule name and body, then choose its position: before the system prompt, after the system prompt, at the start of the conversation, before the latest question, or at a specified depth. 3. Rules placed inside the conversation can use the system, user, or assistant role; rules before or after the system prompt are treated as system instructions. Specified depth counts back from the end—`0` means the end, depths larger than the available history fall back to the start, and tool calls and results remain intact together. 4. Insert date or environment variables as needed, reorder rules, return to the list to turn the rule on, and tap **Save** in the assistant's top-right corner. For example, if you want every answer to lead with the takeaway, place "Start with a one-sentence conclusion, then explain your reasoning" at **Before latest question**. When multiple rules share the same position, they apply in list order; turn off any rule you temporarily do not need. ## Editing and context usage Unsaved changes are preserved as you switch between Prompt, Rules, and Opening; inserted variables are appended to the end of the text. Rule content consumes model input context and appears under "Prompt rules & opening" in the context usage breakdown. Referencing an environment variable inside a rule sends its real value to the current model provider—do not use rules to pass secrets. ## Protocol compatibility Anthropic, Gemini, and OpenAI Responses request formats currently do not support inserting standalone `system` rules inside the conversation body and will prompt you to adjust if you combine them—switch to another role, move the rule before or after the system prompt, or disable it. Whether compatible endpoints accept a given ordering still depends on the provider; trailing `assistant` content may also be treated by the model as text to continue. --- # How can an assistant start the conversation? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/assistant_opening/ ## Where to configure it Open **Assistants → Edit assistant → Prompt → Opening**, choose Off, Fixed, or Generated, and tap **Save** in the assistant's top-right corner. - **Fixed**: Enter a greeting and preview it directly. Whenever you manually start a new normal conversation, your pre-written opening appears right away without calling a model. - **Generated**: Optionally enter opening instructions so the current model generates the first message. With automatic start enabled, eligible new chats send the request automatically; with automatic start off, tap **Let the assistant start** manually. - **Off**: You send the first message, and the assistant replies. If the assistant has a worldbook with an opening mounted, the worldbook's opening is used instead. ## When it takes effect Only normal conversations that you manually start are eligible for an opening. Reopening history, creating branches, importing chats, incognito chats, and management sessions do not trigger openings automatically; if you send a real user message first, no opening is inserted retroactively. Deleting existing messages does not re-trigger an opening. Generated openings do not invoke tools and do not clear your input draft. If generation fails or is stopped, retry manually; if partial text was already produced, choose **Regenerate** on that message. Process interruption will not auto-resend the request. After importing an assistant configuration, auto-start for generated openings is disabled—enable it manually if needed. ## Is there any charge? Fixed greetings and fixed-text previews make no model calls. Generated openings call the current model and incur normal token usage billed by your provider; the opening message is also carried in conversation history for subsequent turns. The built-in **Cube App Guide** includes a preset fixed welcome greeting that you can modify or disable in the same way. --- # What are environment variables and how do I use them? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/assistant_environment_variables/ ## Bottom line An environment variable is a "name + secret value" saved inside a specific assistant. It persists with that assistant; different assistants can define the same variable name with different values without reading or overwriting one another. It is designed for API keys, tokens, and service settings needed by Skills or JavaScript tools—avoiding putting sensitive values directly into chat messages, system prompts, Skill files, logs, or tool results. ## Where to configure it Open **Assistants → Edit assistant → Prompt → Variables**, and add a variable name, purpose, and value—for example, `SILICONFLOW_API_KEY`. The list can be searched by name or purpose and hides values by default; tap an item to edit, or tap **Insert** to add a reference into the assistant prompt. To reuse variables in other assistants, use the copy feature to create independent copies. Environment variables **save independently and take effect immediately** without waiting for the assistant's top-right Save button; discarding assistant prompt drafts will not undo saved variables. Unsaved edits to a variable block saving the assistant until you save or cancel the variable draft. New assistants must be saved first before adding environment variables. ## How to use them - When calling external APIs, reference the current assistant's variable through host-side credential substitution in network requests, or request provider credentials in the code workspace; the app attaches authentication on approved HTTPS targets without exposing plaintext to scripts. - When an assistant prompt genuinely needs a value directly, write `{{env.SILICONFLOW_API_KEY}}`. ## Are they sent to the model automatically? No. Merely saving an environment variable never injects its name or value into model context. However, if you write `{{env.VARIABLE_NAME}}` in a prompt, it is replaced with the live value before sending—**which sends that value to the current model provider**. Secrets should generally not be passed to models through prompts; prefer host-side credential substitution for API calls. `process.env` is empty by default—never print, write to files, or return sensitive values. ## Backup and export Environment variables are included with selected assistants in full backups, assistant exports, and Nearby Transfer—including for sharing—and keys are not stripped automatically. Because exported files contain plaintext credentials, store them only in trusted locations or share them only with trusted recipients; deselect that assistant if you do not want to share them, and never attach such export packages to feedback tickets. If credentials cannot be read, the entire export stops. ## Environment variables vs. prompt variables - Prompt variables such as `{{current_date}}` and `{{current_clock}}` are generated by the app for dates and times. - Assistant environment variables are saved by you to store external service settings and secrets. - `process.env` in the code workspace is empty by default; external API authentication uses host-side credential substitution. `{{env.KEY}}` inserts the real value into the prompt and sends it to the model. --- # Knowledge Base Mount > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/knowledge_base/ ## What a Knowledge Base is A Knowledge Base is a multi-file container that can be mounted to assistants. It is ideal for project docs, product manuals, glossaries, and fixed reference material so you do not have to paste them into every conversation. A single knowledge base can hold multiple files in different formats, all managed in one place. ## Storage and backup Knowledge bases are stored locally on your device—connecting to Cube Agent online services does not back them up automatically. Open **Backup & Restore** from the Knowledge Base home page to go to Data Backup and back up to Huawei Cloud Drive, WebDAV, or SMB (SMB requires configuring an accessible shared folder first). Confirm that your backup succeeds before uninstalling or switching devices; after reinstalling, verify existing backups before restoring. ## Nested folders and search Inside any knowledge base, you can create folders, drill down through nested levels, and use the path breadcrumbs to jump back to parent or ancestor folders. The folder menu supports renaming, moving, and deleting empty folders; non-empty folders must have their contents handled first, and a folder cannot be moved into itself or its own subfolder. Use a document's menu to move it, or enter multi-select mode to move files in bulk to a target folder. New text notes and imported files go into the current folder by default. When not searching, Select All applies to the current folder; searching by filename or source filename in the title bar searches across all folders, Select All applies only to the search results, and changing folders or keywords clears the current selection. Importing system folders or standard document ZIPs preserves the relative folder structure of valid files; exporting multiple documents produces a ZIP with folders preserved. Merging knowledge bases creates subfolders named after each source base while preserving hierarchy. Exporting documents alone is not a full knowledge base backup—empty folders containing no selected documents are not included in a document package. ## Moving files across knowledge bases When moving selected files (or a single file via its menu), the destination picker displays the current knowledge base. Tap **Change knowledge base** to select another document knowledge base, then choose a folder inside it; the base root is the top level of that knowledge base, not a system folder. Worldbooks cannot be selected as destinations, and folders themselves can only be moved within the same knowledge base. - The file's body text, original attachment, drafts, and version history move together; if a file with the same name exists in the target base, a numeric suffix is added automatically instead of overwriting. - Keyword search works immediately after moving across bases, while vector indexes must be rebuilt in the target knowledge base. - Files currently being indexed, OCR'd, optimized, or exported cannot be moved—wait until those tasks finish and try again. - During a batch move, tap **Stop remaining moves**: already-moved files stay in the target base while the rest remain in the source base. Moving folders or documents does not rewrite body text, document IDs, or existing indexes. Search results include folder paths to distinguish same-named files; assistants still mount whole knowledge bases, and indexing and coverage are calculated per knowledge base. Up to 16 folder levels and 2,000 folders per base are supported; older versions may discard folder fields, so use a version with folder support to restore and maintain nested folders. ## Copying knowledge base files to the workspace In a regular conversation, ask the assistant to "copy this file from the knowledge base to the workspace" to copy it locally into the current session's `outputs` folder and show a file card. This requires the current assistant to have **Manage Knowledge Bases** and the source knowledge base enabled. By default, preserved PDF or image originals are copied as-is, while other documents are copied as Markdown; you can also explicitly request the current Markdown text. Duplicate names automatically receive a numeric suffix, originals and indexes remain untouched, and the AI does not need to read or rewrite the full file. Office or EPUB originals that were not retained cannot be reconstructed on export; incognito conversations do not keep workspace files. Copying between knowledge bases and copying to the workspace are two separate actions, each governed by its own confirmation policy in Settings. ## How to import Open **Settings → Knowledge Base** and tap **Import**, or open a knowledge base's details and tap **Import Files**. Supports text (`.md`/`.txt`) and documents (`.pdf`/`.docx`/`.xlsx`/`.ofd`/`.ppt`/`.pptx`/`.epub`—text is extracted automatically, and EPUB books are converted in full to Markdown); the file picker shows only supported formats. Text imports automatically detect encoding (UTF-8 / UTF-16 / GB18030, covering legacy GBK files) with no manual conversion required. If you already have knowledge bases, the app asks **which base to import into** (create new or append to an existing one); you can also tap **New** in the title bar to create an empty base first and add content later. ## Batch import The file picker lets you select multiple files at once (up to 100). Choosing multiple files opens the Batch Import page: files parse one by one with live status and character count, failed files can be removed so you can proceed, and one confirmation at the bottom saves everything and opens the knowledge base details page. Text-based PDFs extract text automatically; scanned PDFs can keep the original PDF marked "Pending OCR" so you can import them into the knowledge base first and run OCR from the document later. Single-file import previews the parsed result first, giving you two choices: - **Import directly**: Saves the text as-is (labeled "Original"). - **Optimize to Markdown in background (optional)**: Pick a configured chat model; once confirmed, the original text saves first and the app cleans up paragraphs, headings, lists, and tables in the background. You can leave the page and track progress under document tasks; once finished, review the draft and accept it to replace the body text. If the task fails, the original text stays intact and can be retried. If you skip optimization during import, you can run it anytime later: optimize a single file from its menu, or enter multi-select, choose files, and tap **LLM optimize**. Each batch supports up to 100 documents—choose one model to queue them all, with up to 2 processed concurrently globally. You can leave the page and check per-document progress, cancel, or retry only unfinished items in task history. Background execution remains subject to OS limits; if the process terminates, interrupted records are kept without automatically re-running billed requests. Optimization has no character limit. Very long documents may take longer or exceed the chosen model's context or maximum output length, causing failures or incomplete output—always verify completeness before accepting. Optimization produces a review draft first rather than overwriting immediately. Confirming replaces the active content while preserving a restore option for the original text; accepting invalidates the old semantic index so you will need to rebuild it. Unselected files are unaffected. ## Import ZIP directly On the Knowledge Base page, choose **Import Knowledge Base (ZIP)**, select an app-exported document ZIP, and pick either a new base or an existing one to append to (also available inside any knowledge base's details). Preview the file list and confirm—no manual unzipping needed. Supports app-exported document ZIPs and recognized plain document archives; app-exported manifests verify body text and integrity metadata. Limits: up to 256 MiB compressed, up to 256 MiB unpacked, and up to 100 documents per import. For full app backup packages, use **Settings → Data & sync → Import Data** instead of the knowledge base document importer. ## Multi-select delete Enter multi-select mode in knowledge base details, select documents, tap **Delete selected**, and confirm the count. Canceling preserves your selection; deletion removes only the selected documents and their indexes while keeping the knowledge base and unselected documents. Deletion cannot be undone directly from the knowledge base—export any text you need to keep beforehand. ## Renaming, privacy lock, and export Both knowledge bases and files inside them can be renamed; renaming changes only the display name and does not alter text, indexes, or mount relationships. Authorized assistants can also submit renames via **Manage Knowledge Bases**, displaying old and new names on the confirmation panel by default (or following that assistant's rename policy while still verifying the original name). Under a knowledge base's **Settings** or a worldbook's **Settings**, you can turn on **Require authentication** (lock screen password / fingerprint / face): once enabled, a lock badge appears in the list, and viewing details, appending imports, merging, or exporting requires passing system authentication (unlock state lasts only for the current app process and re-prompts after full exit). This switch provides entry-point protection only—it **does not affect** normal injection or retrieval by mounted assistants during chat; knowledge base text is not additionally encrypted. Export from a file's menu or the multi-select bar. Multi-select exports all selected files in the current folder or search results, up to 256 MiB per batch. Text exports as Markdown, images keep their originals, and multiple files are packaged into a ZIP with a source and integrity manifest. Once prepared, pick a save location in document tasks (canceling save lets you resume later). Exports exclude original attachments of text files, unaccepted optimization drafts, semantic indexes, and locally parsed images. ## Create text manually Tap **New text** in knowledge base details to enter a filename and body directly—great for notes, lore, or rules that do not need to be imported from external files. Existing text files can also be opened and edited. ## Save directly from chat After working out a conclusion with an assistant, you do not have to export a Markdown file and re-import it manually. Turn on **Assistants → Edit assistant → Tools → Manage Knowledge Bases** and enable target bases under **Assistants → Edit assistant → KB**, then simply say "Save that to the XX knowledge base" or just "Save to knowledge base" so the assistant can list enabled bases for you to pick. Disabled or unmounted bases cannot be listed, read, or written—enabling the management tool never expands scope. Supported actions include: - **New note**: Organizes discussion takeaways into a new note inside a base (and can create the target base if it does not exist yet). - **Append**: Adds follow-up content to the end of an existing note so one topic does not scatter across many files. - **Targeted edit & mid-document insert**: Replaces only a specific sentence or paragraph, removes a snippet, or inserts new text before or after a specific heading or paragraph. The assistant locates the source text and submits only the relevant snippet and new content, saving tokens compared to reading and rewriting the whole note. - **Copy file**: Copies a file within the same knowledge base or between two enabled knowledge bases, with optional target folder and copy name. Body text, original attachment, and revisions are copied locally while preserving the source file, with an automatic numeric suffix on name conflicts—no manual copying by the AI. Semantic indexing is off by default for copies and can be toggled on the confirmation card using the target base's embedding model. - **Overwrite**: Rewrites an entire existing note. - **Delete**: Deletes a single note (deleting an entire knowledge base is not supported here and must be done in Knowledge Base center). - **Inspect / read**: Lists knowledge bases and files, locates text by keyword, or reads notes in sections. Inspecting is read-only and does not interrupt you. For example, you can say: "Change the service period in 'Service Policy' in the Support KB from 7 days to 15 days and keep everything else unchanged," or "Insert the following note before the 'Refund Process' heading in this note..." When copying, say: "Copy 'Service Policy' from the Support KB into the Onboarding folder of the Training KB as 'Service Policy Copy'." Just describe the source and destination clearly without pasting the entire document yourself. For end-of-note additions, simply say: "Append the following to the end of this note..." By default, every write shows a **knowledge draft card** in chat and saves only after you confirm; tapping Cancel discards it. You can configure granular confirmation rules in **Tool Services → Permissions → Knowledge base** for: new note, import file, copy file, import & append, append content, edit text, rename document/knowledge base, new folder, move document, and delete document. Choose a global default or set per-assistant rules to **Follow / Ask / Allow** (assistant-level settings override global defaults). Tap **Allow multiple** next to **Confirmation** to check multiple actions and approve them in one step (Delete is unchecked by default; unchecked actions keep their current setting, and an assistant's batch grant affects only that assistant). **Reset** on the same row switches all actions for that target back to Ask; assistants can also reset everything to Follow global (actions already set to Allow globally will still execute directly). Tapping **Always allow for this assistant** on a draft card saves approval only for that assistant and that specific operation. Permissions stay on this device, do not migrate via backup or sharing, and can be revoked anytime on the Permissions page; creating and mounting a new knowledge base always asks for confirmation. Always Allow never enables the management tool or widens which bases an assistant can access, and overwrite/delete still verify content versions. New notes and full overwrites let you inspect the full body; targeted edits show a **diff preview** comparing original and replacement text. You can edit the replacement text directly—leaving it empty deletes the snippet. By default, only a unique match is replaced; if you want to change every occurrence, explicitly say "replace all" and check the card prompt. If the original text is not found, matches multiple places, or changed while editing, the assistant must re-locate or re-read before resubmitting. After adding, importing, or editing succeeds, only that updated item is semantically indexed by default (if a knowledge embedding model is configured; otherwise it skips with a notice). Copying a file skips automatic indexing by default to save embedding usage. You can adjust the index toggle on the confirmation card or organize indexes later in details. Copies do not inherit the original file's vector index; keyword search and full injection continue working regardless. Skill Center includes a built-in **Knowledge Capture** skill: mounting it on an assistant guides structured formatting (title, conclusion, key points, source, and date) before saving so raw chat blocks are not dumped straight into your knowledge base. ## Organizing with tags Add multiple tags in a knowledge base's details—such as "Project A", "Product Docs", or "To Organize." Tags appear in the knowledge base list for quick filtering and grouping. ## Semantic indexing and background keep-alive To enable semantic retrieval, tap **Build index for all documents** on the details summary card, or trigger indexing on a single file card. If no embedding model is configured yet, a model picker pops up and indexing continues automatically once you choose one. Indexing can keep running in the background (via continuous task keep-alive) so you do not have to stay on the page; any failures show the exact count with a Retry button. Import-time text optimization also supports continuing in the background. ## How to mount to assistants Choose either of two entry points depending on your workflow: - **Batch mount from a knowledge base**: Open knowledge base details and tap **Mount to assistants** on the summary card, or open **Enabled for** in knowledge base settings to open the assistant picker, check multiple assistants at once (supports Select All and Invert), and close to save differences automatically. Assistants already mounted with this base keep their existing load mode, injection position, and depth settings; newly mounted assistants use defaults (**On-demand** if a semantic index exists, otherwise **Full inject**). - **Configure per assistant**: Go to **Assistants → Edit assistant → KB**, turn on the knowledge bases you want, or mount/unmount a group by tag, and fine-tune load mode and injection position for that assistant. Mounting works at the whole knowledge base level (all files inside take effect together), with two load modes: - **Full inject**: Aggregates all file text in the knowledge base and injects it into the request context. Best for short docs and rulebooks. - **On-demand**: Does not pre-fill the context; when needed, the model calls `search_knowledge_base` to fetch relevant excerpts. Best for long documents and multi-document collections. ## Hybrid search (keyword + semantic) In On-demand mode, the system runs both keyword search and semantic vector search and fuses the top excerpts (the semantic channel activates only when an Embedding model is configured). Without an Embedding model, it falls back automatically to pure keyword search without interrupting chat. Configure the global Embedding model in **Settings → Models & usage → Default Models → Knowledge embedding**, or override it with a different Embedding model inside a specific knowledge base's details. After switching a knowledge base's embedding model, old indexes become invalid—tap **Build index for all documents** manually to rebuild (it does not auto-rerun everything). ## System vs. @Depth When using Full inject, choose the injection position: - **System**: Merged into the system prompt—more stable and better suited to long-term rules. - **@Depth**: Inserts material closer to recent messages. Depths closer to the end draw stronger attention from the model, ideal for more temporary or focus-critical reference material. ## How it differs from Skills Skills act like "how-to methods + multi-file reference guides loaded on demand," ideal for workflows, standards, and tool instructions. Knowledge Bases act like "searchable or injectable reference text," ideal for attaching documentation for long-term assistant reference. ## Notes and limits Full injection increases context length and token consumption. All full-injected knowledge bases combined in a single chat are capped at 1,000,000 characters and no more than half of the active model's context window (by estimated tokens; character cap only if the model's context window is unset). Any overflow is truncated in mount order and file order, and the model receives a truncation notice along with the skipped file count. Documents over 200,000 characters can still be imported—use On-demand search with a vector index to save context space. Knowledge base text and vector indexes are stored in local app directories; deleting a knowledge base automatically unmounts it from all assistants. Backup and restore preserve both multi-file contents and vector indexes so restored vectors work right away without recomputing. Legacy single-file knowledge bases auto-migrate on upgrade with all mount relationships intact. ## List sorting, original PDF page jump, and Markdown edge scrollbar - **List sorting**: The top of both Knowledge Base and World Books lists lets you sort by newest created, oldest created, recently updated, name ascending/descending, and file count (entry count for World Books), remembering your chosen preference. - **Original PDF quick page jump**: When viewing a preserved original PDF inside a knowledge base, the bottom toolbar includes **First / Last page** shortcuts; tap the page counter (such as `3 / 506`) to enter a target page number directly without scrolling page by page. - **Markdown right-edge scrollbar**: When viewing a knowledge base Markdown document, a theme-adaptive edge scrollbar on the right lets you drag the thumb to jump quickly through long documents while automatically avoiding the bottom gesture bar and edit button. ## Merging knowledge bases From the Knowledge Base list, you can merge multiple knowledge bases into one—handy for consolidating duplicate or related collections. Merging gathers files from selected bases into the target base and transfers all existing assistant mounts over. If any individual file fails to migrate, its source base is kept intact to prevent data loss, and a summary displays exact migrated, failed, and kept counts. ## Best practices - Make sure the target knowledge base has a clear name before merging so sources stay easy to distinguish afterward. - Merging does not build indexes automatically; tap **Build index** afterward to jump straight to the target base and tap **Build index for all documents** on the summary card. - Merging consolidates source bases into the target—back up important material before starting. --- # What does building a semantic index do? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/knowledge_indexing/ ## Bottom line Building a semantic index splits your knowledge base text into chunks and uses an Embedding model to generate vectors so on-demand search can match questions with similar meaning even when the wording differs. **It does not modify the original text of your knowledge base.** ## Can I still use a knowledge base without building an index? Yes: - With **Full inject**, the assistant still reads the knowledge base text directly and does not depend on a semantic index. - With **On-demand search**, retrieval falls back to keyword search. - The difference is that semantic vector search is unavailable. When a question uses different wording and does not share exact keywords with the source text, relevant passages are more likely to be missed. ## How is this different from "Optimize text as Markdown"? - **Optimize text as Markdown** is available during import preview or via single-file and multi-select actions in knowledge base details. A chat model cleans up paragraphs, headings, lists, and tables. During import preview, the original text is saved first and a background task is created so processing continues even if you leave the page. The optimized result first creates a review draft and only replaces the body after you confirm; you can preview, retry, or restore the original text. - **Build semantic index** can be run for all knowledge bases at once from the top of the Knowledge Base list, or inside an individual knowledge base's details page. It only generates chunk and vector files used for retrieval and never modifies the original text. ## When should you build or rebuild the index? - Recommended when a knowledge base is large and uses on-demand search. - After importing new files or modifying document text, you need to build the index for the affected files. - After switching Embedding models, old vectors no longer match the new model and must be rebuilt. When you change the global default embedding model, knowledge bases that follow the default are marked as having an outdated index, while knowledge bases configured with a dedicated override model are unaffected by the default switch. This only marks the index as outdated—it does not automatically delete original text or rebuild the index immediately. - If you only use short reference materials with full inject, you can skip indexing for now. ## Build indexes for all knowledge bases at once When there are files that have not been indexed yet, the top of the Knowledge Base list displays the pending count. Tap **Build all** to process every unindexed, previously failed, or interrupted file across all knowledge bases in list order: - The progress ring on the card shows progress for the current run, with the active knowledge base and file shown below. Processing continues even if you leave the page; when switched to the background it tries to stay running, and if the system interrupts it, tap again to resume. - You can tap **Stop** at any time. Completed files are preserved; partially processed files resume from their saved chunks next time, without re-requesting chunks that were already saved. - If the embedding service encounters authentication, quota, or rate-limit errors, indexing pauses automatically and stops sending requests for remaining knowledge bases using the same model. Once resolved, tap **Continue** to resume. - Individual file failures do not affect other files; you can inspect the failure reason on the corresponding file inside its knowledge base. ## What you need Semantic indexing requires a configured, working Embedding model. Configure it at **Settings → Models & usage → Default Models → Knowledge embedding**, or specify an override model inside an individual knowledge base's details. If no model is configured yet, tapping build index opens the model picker first; once you select a model from the top of the Knowledge Base list, indexing begins automatically for all knowledge bases. --- # How do I let AI work on webpages? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/agent_browser/ ## Before you start The in-chat browser requires **Pro, a device running API 23 or higher, and a chat model that supports tool calling**. In a regular chat, check **Web actions** under **Tools**, then describe your task directly—for example: > Open Baidu, search for DeepSeek, go to the official website, find the API documentation, check the latest changelog entry, and save the page logo to the current chat's workspace. The browser can be opened automatically by the AI as needed, or opened manually via **Tools → Web actions → Open browser** in the current chat. You can enter a URL and sign in to frequently used websites first before letting the AI take over; manual browsing itself does not trigger model calls. The AI actually visits pages, types, clicks, and paginates—this is a different tool from web search (which returns summaries) and webpage fetching (which extracts page text). Browsing tasks use your current model's call quota and do not include unlimited model usage. The AI waits until target elements are visible, stable, and interactive before clicking or typing; key presses and scrolling use real input events, supporting rich-text editors and embedded frames. When a task requires heavy repetitive clicking or pagination, the AI can write a script in **Code Workbench** to drive the current webpage continuously; the run card displays progress, and taking over the webpage interrupts the script. The AI can also take full-page scrolling screenshots or capture a single element on the page. Code Workbench also provides a **Playwright script entry**: import `cube_browser.playwright` in a Python cell and pass an async JavaScript function body using `Page` / `Locator`. It supports locating by role or label, auto-waiting, iframes, and batch operations; use the app-provided `browser` helper methods to create, switch, and close tabs and handle dialogs. Takeover, cancellation, or timeout terminates the script, while the legacy `cube_browser` Python API remains compatible. Ask the AI to read the Code Workbench guide for concrete examples. ## Where to watch progress After a webpage is opened manually or by the AI, a **Browser** entry appears in the current chat toolbar; while the AI browses, messages also show the current page and progress. Tap to expand the live webpage, and collapse it to keep watching progress in chat. The tab the AI is actively controlling displays your accent color, the Cube working animation, and an "AI working" label. To share the current webpage, tap **Copy link** on the right side of the address bar. This copies the address of the tab you are currently viewing; you can copy it even while the AI is operating, and the browsing task will continue uninterrupted. **Viewing does not pause the task.** Expanding or collapsing the browser lets the AI keep running, and switching to inspect another tab does not change which tab the AI is operating. New tabs opened by a webpage are captured by the current chat's browser so the AI can continue working on them. You can open new tabs as needed with no fixed limit; use the four-dot menu to close the current tab or other tabs. Closing the tab the AI is actively operating interrupts the current task. These are browser tabs inside the chat rather than separate standalone app windows. To conserve memory, across all chats at most 3 idle tabs that are neither visible on screen nor used by an active task are kept alive, and older idle tabs hibernate automatically; when device memory runs low, all idle tabs are released. Hibernated tabs remain in the tab list and reload their original URL when you view them again or when the AI needs to interact with them, though unsaved form input and scroll position are not preserved. Tabs actively used by an ongoing AI task (including while you have taken over or while waiting for your reply) will not hibernate. ## Page compatibility and reading long pages When a webpage responds slowly, a single-step timeout does not automatically pause the entire turn. The AI can wait, inspect tabs and page state, and proceed; when the result of a click or submission is uncertain, it verifies first to avoid duplicate submissions. Taking over or stopping generation cancels pending waits—even if the element becomes clickable later, a canceled click will not be replayed. **Page version** in the browser's four-dot menu switches between Auto, Mobile, and Desktop for the current tab, reloads it, and stores the selection as the default for new tabs; it cannot be switched while the AI is actively operating. You can also ask the AI to switch the current tab's desktop/mobile User-Agent (UA), go back or forward, refresh, stop loading, wait for page content to appear, or read long body text in segments. UA is a website compatibility setting rather than complete phone or desktop emulation. Switching UA reloads the page, so handle any unsaved form drafts first. Reading page text does not bypass website logins or access restrictions. While the AI is browsing, page navigations remain inside the in-app browser and will not launch installed external apps on your phone; when you browse manually, system default behavior applies. ## Taking over manually At the top of the browser, the left button is **Back to chat**, and the right button lets you take over the webpage, continue the task, or answer the current question; the input area expands only when needed so it does not occupy webpage space during normal viewing. Only one side controls the page at a time: tap **AI in control** at the top to switch to manual control, wait for the handoff to finish, and then interact with the real webpage directly; when done, tap **Keep running** to hand control back to the AI. To add more instructions, choose **Additional instructions** from the four-dot menu. When you open the browser manually with no active task yet, tap **Let AI operate** at the top to enter your first task—the message is added to the current chat. You can collapse the input area at any time and unsent drafts are kept. When waiting on a login, CAPTCHA, or other question, tap **Answer & continue** to answer the original question directly inside the webpage without returning to chat; skipping the question will not resume the task. The **Take over** entry on the chat preview card remains available as well. Once a task finishes, you can browse the webpage freely, and new browser tasks start automatically—**you do not need to release control first, nor confirm routine navigation, searches, or resource downloads one by one.** ## Handling logins, QR codes, and CAPTCHAs Complete these steps directly on the real webpage—you never need to paste account names or passwords into chat. When **Ask User** is enabled for the assistant, you can still open the current chat's **Browser** from the chat toolbar while the model waits for your reply. After completing the step on the webpage, tap **Answer & continue**, or go back to chat and reply "Done" on the original question card. The AI re-examines the page and resumes the original task. Both places answer the same question. Skipping or canceling the question does not automatically continue the task. If **Ask User** is not enabled, tap **Keep running** at the top or send instructions from **Additional instructions** in the four-dot menu. ## Saving images and files Simply say "Save this image to the current chat's workspace," and the AI will try to save the original accessible resource from the webpage. On success, a file card appears in chat so you can view and export it from this conversation's workspace. What gets saved is the underlying web resource, not a webpage screenshot; if a site only provides a thumbnail, the saved file may still be a thumbnail. For small raster images, open the native image preview and tap **Enhance** (super resolution)—see "How do I enhance an image in preview?" for details. Account permissions, hotlink protection, or site restrictions may still cause downloads to fail. ## Switching chats, background execution, and site data When you switch to another chat or send the app to the background, running tasks keep trying to execute and you can return to the chat to check progress; however, system battery saving, process reclamation, or network interruptions can still affect tasks, and indefinite background execution is not guaranteed. After exiting or restarting the app, current tabs are not restored automatically. Cookies, login status, and site storage stay on your device according to each website's rules—closing a tab or deleting a chat does not sign you out of websites. There is currently no per-chat account isolation, multi-account profile switcher, or per-site clearing entry; sign out directly inside the website when needed. **This browser is not enabled in Incognito Chat.** ## Opening local HTML files With **Web actions** enabled, you can ask the AI to open HTML files from the current session's workspace or sent attachments—for example, `/workspace/outputs/site/index.html`. Linked CSS, JavaScript, images, and JSON files must retain their relative directory structure; for multi-file pages, import them into the workspace first. The AI can continue to read, click, type, and refresh; refreshing after editing files loads the updated content. This capability is intended for static files in the current session—it does not provide a backend server and does not permit access to arbitrary device paths outside the workspace. It is separate from the inline HTML code preview inside messages and follows the same Pro and API 23 requirements as **Web actions**. --- # What if built-in models cannot connect in my region? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/builtin_network/ Cube's built-in models and free trial gateway automatically check DNS resolution and connectivity on your current network. When abnormal DNS responses (such as loopback or private IP addresses) are detected, or when a direct connection fails, the app can automatically fall back to **encrypted DNS (DoH)** and retry the original HTTPS domain—there is no need to enter US server IPs manually or enable an extra toggle. DoH only queries a DNS resolver for the domain address and never sends your API key or conversation content to the DNS service; model requests still go to the original gateway with full HTTPS certificate verification preserved. This mainly resolves DNS anomalies in certain Mainland China regions (such as Hubei) and does not guarantee bypassing TLS/SNI interference, server outages, or all network restrictions. Tencent relay is not enabled in this release. (Your own API key providers—such as OpenAI, Claude, Gemini, OpenRouter, or local Ollama—connect directly via their own configured endpoints and proxy settings.) Active in-app proxies, system proxies, PAC scripts, or VPNs are respected. Once a streaming reply begins, the app will not switch resolution routes mid-stream; and for timeouts or receive failures where it is uncertain whether the request has already executed, it will not automatically switch routes and resend. **Model routes** on the **About** page can help with troubleshooting; when submitting feedback, simply include your region, network carrier, and error message—never share API keys. --- # Tools Center and web search > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/tools/ ## What is Tool Services? Tool Services (Tools Center) lists built-in tools that models can invoke. When enabled, a model can call tools as needed to gather additional information or perform actions. ## Web search Web search comes in two types: - **External search services**: Choose and configure a search service in Tool Services first with its corresponding API key or parameters. Once configured, models that support tool calling can invoke search tools when needed to retrieve information before answering. - **Built-in search**: Provided directly by the model provider without using external search services like Exa or Tavily configured in Tool Services. "Built-in search" appears in the chat input's web search menu only when both the current provider API and the current model support built-in web search. You can also adjust a model's "Built-in web search" capability toggle on the model edit page. ## Available external search services - **Exa**: An AI-focused search API suited for supplying webpage results and summaries to models. Website: [https://exa.ai](https://exa.ai) - **Tavily**: A search API built for AI agents—simple to configure and well-suited for general web retrieval. Website: [https://www.tavily.com](https://www.tavily.com) - **DeepSeek**: Uses a DeepSeek API key to provide web search and Markdown page extraction, with support for configuring a separate search API key and Base URL. Docs: [https://api-docs.deepseek.com/zh-cn/guides/search/](https://api-docs.deepseek.com/zh-cn/guides/search/) - **Firecrawl**: Focused on webpage crawling, parsing, and content extraction—ideal for tasks that require reading full webpage text. Website: [https://www.firecrawl.dev](https://www.firecrawl.dev) - **Parallel**: A web search and content extraction API built for AI agents, supporting dense excerpts and webpage Markdown extraction. Website: [https://parallel.ai](https://parallel.ai) - **Metaso**: Tailored for Chinese web search scenarios (Mainland China ecosystem); request keys and monitor usage in the search API console. Portal: [https://metaso.cn/search-api/playground](https://metaso.cn/search-api/playground) Most of these services offer a free tier that is usually sufficient for light personal use. Exact quotas, reset cycles, and billing terms may change—check each provider's console and latest pricing page. ## MCP tools Trailing slashes in service URLs are preserved—for some servers, `/mcp/` and `/mcp` are different endpoints. If an older app version trimmed the trailing slash when saving, restore the exact URL given by the service provider and refresh tools. Zero discovered tools, authentication failures, and invalid responses produce distinct messages; an HTTP success status does not guarantee usable tools were found. Open **Settings → Assistant capabilities → Tool Services → MCP → Add** to enter the service URL, authentication method, and request headers manually. If you already have a configuration, tap the **Import configuration** icon in the top-right corner and paste it. Select a service, tap **Fill form**, review the fields, and tap the checkmark in the top-right corner to save. JSON import supports both root-level `mcpServers` (Claude, etc.) and `servers` (Cursor / VS Code Copilot, etc.); common aliases such as `type=http`, `sse`, and `streamable-http` are recognized; you can also omit `type` and let the app infer the transport from `url` or `command`. Standard remote MCP configurations (such as Huawei's) can generally be pasted and imported directly. Three connection modes are supported: - **Streamable HTTP**: Most remote services, typically ending with `/mcp`. - **Legacy SSE**: URLs ending with `/sse` connect via SSE automatically—SSE endpoints from MCP hubs such as ModelScope and Alibaba Cloud Bailian work directly. - **Local execution (stdio)**: Enter launch commands such as `uvx mcp-server-time` or `npx -y @` in the address field, or paste JSON containing `command`, `args`, and `env`. Downloading packages for the first time requires internet access, and API keys needed by the service go in **Environment variables**. Services that depend on desktop apps, Docker, or OS subprocesses must run on a computer or server. Services that only offer a desktop connector or pairing flow should be used on a computer as instructed by the provider. Inside an MCP Server's details page, the top overflow menu provides refresh, edit, and delete actions. The tool list supports searching by name or description. On the right side of each tool, **Ask | Allow** decides whether the app asks before invoking it, while the toggle switch controls whether the tool is enabled. Tapping **Always Allow** for a tool in chat takes effect immediately without leaving and reopening the page. Permissions for all MCP services and tools can also be reviewed and changed together under **Tool Services → Permissions**. Enabling MCP per conversation in chat: open **Tools → Choose Tools** in the input toolbar and toggle a service on under **MCP services · This chat only**. The app connects immediately and fetches its tool list, showing **Connected · N tools** on the card; if connecting fails, the card shows the reason along with buttons such as **Retry connection**. Only services enabled for the current chat are connected, and enabled services appear at the top. To prevent oversized tool lists from slowing down rendering, persistence, or request payloads, a single MCP Server retains at most 256 tools; among newly discovered tools, only the first 64 are enabled by default, and the rest can be enabled manually on the details page. ## OAuth authorization and connection recovery When a service requires web sign-in authorization, select OAuth as the authentication method, fill in Client ID, scopes, and other fields required by the provider, and start the authorization flow from the app. A pre-registered Client ID and a client metadata URL are separate settings: if both are entered, the pre-registered ID takes precedence; if both are blank, availability depends on whether the service supports dynamic client registration. Do not guess these values. After authorization completes, the app reuses valid tokens; when permissions are insufficient or authorization expires, re-authorize as prompted. Connection failures retain your service configuration so you can correct the URL, authentication, or network and retry. Successful authorization does not automatically grant permission to run all tools—you still configure tool switches and **Ask | Allow** permissions. Optional MCP extensions such as tasks, sampling, or interactive forms are not guaranteed to be supported. ## Common built-in tools and what they do - **File operations**: Directly create, read, precisely edit, append, merge, copy, move, and delete workspace files, and list or extract ZIP archives on demand. TXT/Markdown files can be merged locally in a specified order without making the model output the full text again. Use edit when changing just one passage, and copy files without reading and rewriting all content. Model tool name: `file_operations`. - **Code Workbench**: Runs Python by default—ideal for generating and modifying Word / Excel / PowerPoint / PDF files, filtering and summarizing spreadsheets, data analysis, plotting charts, and batch file processing; common document libraries are built in and work offline. Command lines written in skills (such as `python scripts/x.py` or `pip install`) run in Bash. JavaScript is used only when host-managed provider keys are required or inside Incognito Chat. Model tool name: `run_code` (legacy `eval_javascript` configs remain compatible). - **Network requests**: Access web services and upload or download files; model tool name: `http_request`. Prefer it for single network calls; use JavaScript only when multi-step orchestration is needed. External hosts, LAN targets, or credential usage are confirmed per operation. - **Generate Image**: Create or edit images with your selected image model; images appear directly in chat and save to the conversation's `outputs/` folder so subsequent web or document tasks can reference them directly. Switch image models via **Switch model** on this row—this shares the same setting as the Image Generation workspace. - **Ask User**: When the AI needs a decision or more info from you, a question card takes over the input area directly, supporting single or multiple questions (swipe left/right to navigate). Submit anytime once answered, and filled answers are preserved if you leave the chat. Question types cover single-choice, multi-choice, dropdown (for longer option lists), sliders (for duration, quantity, ratio, etc.), and free-text input; you can answer partially or skip the entire round. Slider responses also inform the AI whether you adjusted the default value. Model tool name: `ask_user`. ## Workspace and file delivery The current session accesses files through the `/workspace` virtual workspace, and outputs written to `outputs/` appear as attachments you can open and save. Input attachments and enabled Skill resources are read-only; other conversations, the app database, and internal configuration are outside script access scope. Shared files can be read on demand; letting AI delete shared files is free and reuses File operations' Allow Once or Always Allow permission without extra confirmation once authorized. Saving into, creating directories in, or moving shared files requires Pro and user authorization; the shared root directory, input attachments, and Skill resources remain protected. Creating a file only requires passing the body content and target path—the model does not need to repeat the full body in its chat reply first. After writing succeeds, it usually does not need to reread the file or re-list the directory to verify; it reads back only when validation or structural inspection is genuinely needed. ## Inspecting tool call details Expand any tool call to switch between **Changes / Content / Result / Arguments** views as needed: common operations show structured summaries, code diffs, or error causes by default, and tapping **JSON** in the top-right corner switches to the full raw payload with sensitive fields automatically redacted. Viewing details or copying does not re-run the tool or create extra calls. In follow-up turns, operations such as file writes are automatically condensed into concise receipts (preserving status, relative path, changes, and key errors) to save context window usage, while complete records and output attachments remain stored locally. ## Code Workbench capabilities and limits The app bundles Python 3.12 with `pandas`, `numpy`, `openpyxl`, `matplotlib` (with CJK fonts configured), `Pillow`, and other common libraries. Document libraries like `python-docx`, `python-pptx`, and `pypdf` ship with the app, and other compatible libraries can be installed online. View installed packages under **Settings → Connections & advanced → Runtimes**. Code Workbench's Bash supports `node`, `npm install`, and `npx`, enabling pure JavaScript CLIs such as Prettier and TypeScript. `npm install` skips lifecycle scripts. Packages needing native extensions, WebAssembly, or external processes should be run in another environment. Bash is not a system shell—it simulates common commands inside the app: `python`, `pip`, `git`, `ls`, `cat`, `grep`, `find`, `cp`, `mv`, `zip`, `curl`, and more. Command substitution `$(...)`, heredocs, and background jobs are not supported; unsupported commands prompt to use Python instead. `git` supports cloning, committing, switching branches, merging, and pushing over HTTPS URLs only (SSH is not supported). Private repositories or pushes require embedding an access token in the URL (such as `https://@github.com//.git`), and the token is saved in that repository's config. Symlinks in a repository become ordinary files containing the symlink target path. JavaScript uses QuickJS with no web DOM or Node.js runtime; it is primarily for host-managed provider key API calls and computations inside Incognito Chat. **Word / Excel / PowerPoint generation** does not require Pro. Enable **Code Workbench** in the current chat's tool picker and ask in natural language to create or modify files—`python-docx`, `openpyxl`, and `python-pptx` are pre-installed. For complete steps, examples, and limits, see "How do I generate Word, Excel and PowerPoint files?". ## Networking, downloads, and cancellation If a script returns **E_JS_TIMEOUT**, first verify whether a loop is making progress rather than retrying unchanged or simply increasing the timeout. If Office file generation fails, check whether a complete output file already exists in the workspace before editing and retrying the script to avoid duplicate generation; diagnostic info helps the model pinpoint slow steps. JavaScript outbound network targets require explicit authorization; **Network requests** and **Code Workbench** share file and network checks. TLS verification is enforced and redirects are not followed automatically; if a redirect URL is returned, the new destination must be confirmed separately. Save large responses to a file first and read by range instead of downloading repeatedly to inspect details. Code execution enforces time, memory, and output limits. Tapping Stop cancels the current execution, and uncommitted files do not overwrite existing originals; check which files changed before retrying. ## Delegate to Expert: connect model services right from normal chat Expert delegation is off by default. Enable **Delegate to Expert** under **Tools → Choose Tools → Basics** in the input bar (applies to the current chat only), or enable it for an assistant under **Assistants → Edit assistant → Tools → Built-in tools → Advanced management**. Once enabled, you can simply say in regular chat: "Connect service X for me," "Configure this image API as a usable model," or "Set up balance queries for this provider." The main assistant hands the job to a built-in expert: the **Provider Management Expert** adds and edits providers, models, and balance queries, while the **Image Recipe Expert** turns image APIs into selectable models in the workspace. When done, the expert passes results back to the main assistant, which explains how to use them. A task card appears in chat showing what the expert is doing; tap it to inspect the full process, or tap **Stop** while running to stop only that expert. The expert uses the current chat's model, and usage is counted toward this conversation. When it asks for confirmation: - **Brand-new setup runs uninterrupted**: Creating a new provider—and adding models, saving an image recipe, or setting up balance queries on that newly created provider—completes directly. - **Modifying existing configs asks first**: Editing or deleting existing providers, models, or recipes, or saving a recipe or balance query onto an existing provider, displays a confirmation panel detailing every change (highlighting old and new URLs when an API address changes). - **Live test image generation needs your consent**: Only when you say in chat that testing is okay will the expert generate a real test image, limited to one successful test image per task. Configurations already saved by an expert are not undone if you stop the task, regenerate, or delete messages; to remove them, go to **Settings → Models & usage → Provider Management**. Expert delegation is not available in Incognito Chat. When keys are passed to an expert as local references, the expert never sees plaintext values; however, if you pasted a key directly in chat or the assistant read it from a webpage, it has already been sent to your active model's provider—reset that key on the provider's platform afterward. ## Assistant configuration and per-chat tool switches Tool availability depends on both assistant defaults and current session selections. Set an assistant's default tool baseline for new chats under **Assistants → Edit assistant → Tools**; **Tools → Choose Tools** in the chat toolbar mirrors the assistant's built-in tool catalog exactly, allowing you to toggle built-in tools and MCP Servers freely for the current chat without overwriting assistant defaults. **Code Workbench** must be explicitly checked in the current chat—enabling a skill does not automatically turn it on. In the assistant editor, you can switch between **Built-in tools**, **MCP services**, and **Mounted folders**. Built-in tools are grouped into **Everyday tools**, **Creative & web**, **Location & calendar**, and **Advanced management**, with **Everyday tools** expanded by default. MCP counts the servers enabled on this assistant and displays each server's tool count beneath it. **Everyday tools** includes Get time, Ask User, View images, Resource catalog, File operations, and Code Workbench. New assistants enable this group by default, and you can tap **Enable recommended** anytime to complete this group while keeping any other enabled tools intact. The **Edits** badge indicates a tool may modify files, calendar events, or other data. Browser and Remote Connections require Pro. The chat page groups tools into **Basics**, **Files**, **Create**, **Web & device**, and **Advanced**, mapping 1-to-1 with assistant tools (including **Get time**, **Ask User**, **Find skills**, **Manage Skills**, and **Manage Knowledge Bases**). **Find skills** (`find_skills`) is enabled by default only in the built-in Cube App Guide and is no longer forced onto regular chats—check it whenever needed; turning off all tools for a turn omits all built-in tool definitions and tool-usage rules. Once all recommended tools are enabled, the quick-enable entry collapses in chat. Tapping a tool's description opens the corresponding image model settings, browser login, or server management screen. With **Manage Skills** or **Manage Knowledge Bases** enabled, the model can create/update skills or maintain knowledge base notes directly in chat: Manage Skills writes still require confirming a draft card; Knowledge Base writes ask by default and can be configured per operation with global defaults and per-assistant overrides under **Tool Services → Permissions**. Unless Always Allow is granted, you can edit content or cancel on the draft card. Read-only actions in **Manage Knowledge Bases** (listing knowledge bases, reading notes) never interrupt you. For asynchronous parallel subagents, named assistant delegation, and the toolbar **Subagents** chip, see the next article, "How do parallel subagents and assistant delegation work?". ## API keys and assistant environment variables After saving values under **Assistants → Edit assistant → Prompt → Variables**, **Network requests** can request authorized host-side injection of specified variables, or request using a provider's stored credentials. Credentials are bound to the current target and attached to the request by the app—never given to scripts or the model in plaintext. JavaScript's `process.env` is empty by default, discontinuing legacy direct secret reads. Never paste credentials into message text, scripts, output files, or logs. ## Notes Whether external search services, MCP tools, and Code Workbench are usable depends on whether the active model supports tool calling, your tool configuration, and the current session's selections. Built-in search does not require general tool-calling support, but requires the model's "Built-in web search" capability to be enabled and supported by the provider's API itself. --- # How do parallel subagents and assistant delegation work? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/subagents/ ## Overview When tackling multi-step or parallelizable complex work, the main assistant can split subtasks across multiple **asynchronous parallel subagents** running concurrently—avoiding serial waiting in the main chat and preventing bulky intermediate steps from polluting the main conversation context. Subagents can be temporary ad-hoc subtasks dispatched for the current job, or delegated to: - **Built-in experts**: such as the Provider Management Expert and Image Recipe Expert; - **Temporary cross-model subagents (optional toggle)**: Once enabled under **Settings → General → Input & interaction → Sending & replies → Allow cross-model subagents**, the main assistant can assign any configured bring-your-own-key provider model or enabled built-in model to a temporary subagent on demand without pre-creating separate assistants (for example, DeepSeek for code, a vision model for reading images, or a small model for lightweight sorting), with the actual model clearly displayed in the subagent drawer and task details page; - **Per-task reasoning effort (`reasoning_effort`)**: Whether running on the same model or dispatching cross-model, the main assistant can set thinking depth per subagent according to task complexity (such as off, low/medium/high/xhigh, or auto); if the target model does not support extended thinking, it automatically falls back to off and transparently discloses this in the receipt; - **Per-task search engine (`search_engine`)**: When web search is enabled in the main chat, the main assistant can switch a subagent to another enabled external search engine in **Tool Services**, or explicitly set it to `none` (no web search) to control search costs during concurrent batch research; when omitted, the subagent inherits the main chat's active search engine; - **Your configured named assistants**: The main assistant can list available assistants first and delegate via `assistant:`. Named assistant delegation prefers that assistant's own default model (falling back to the main chat model if unset or unavailable), preserves its system prompt, enabled skills, tools, and environment variables, and transparently reports the effective model and tool list in the receipt. Each subagent's internal transcript is saved in a hidden sub-session that does not clutter your regular chat list and is cleaned up automatically when the parent chat is deleted. ## How many can run at once? Do they stop in the background? - **Concurrency limits**: Pro users can run up to **8** subagents concurrently per chat (up to **16** across all chats); free users can run up to **4** concurrently per chat (up to **6** total). - **Automatic queueing**: Dispatching more than the limit automatically queues the overflow (up to **16** queued per chat for Pro, **8** for free). As earlier subagents finish, queued ones pick up automatically—queued tasks consume no quota while waiting. - **Runs in the background and with the screen off**: Switching to another app or locking your screen lets active subagents and post-completion auto-summarization continue running in the background; execution pauses only if you manually swipe away the background notification or the OS halts background work, and resumes when you return to the app. ## File visibility, mounted folders, and output handoff - **Read-only parent input sharing and default read-only file access**: Even with default `read_only` access, subagents can use read-only file tools (`list` / `read` / `zip_list`) to inspect the main chat's attachments (`inputs/`), files already generated by the main chat (`inputs/parent_outputs/`), and read-only mounted folders without re-sending files. Note that parent and child `tmp/` directories are not visible to each other—place intermediate files meant for subagents into the main chat's `outputs/` so subagents can read them from `inputs/parent_outputs/`. - **Mounted folder permissions**: Local folders mounted in the main chat are inherited as **read-only (`ro`)** by default (allowing even default `read_only` subagents to list and read them); when needed, the main assistant can explicitly grant read-write (`rw`, requiring `inherit` access and still protected by write confirmations) or disable mounts (`none`). - **Output isolation, lossless promotion, and source attribution**: Files written by a subagent are staged in its own isolated workspace first (marked as staged rather than directly delivered). After reviewing them, the main assistant can promote them byte-for-byte (verified via SHA-256) into the main chat's **Generated files**, automatically retaining source subagent attribution. The main assistant sees source attribution when listing workspace files, and the conversation files panel shows source badges and lets you filter by main chat or individual subagent. You can also tap into any task details page anytime to preview or save staged files directly. ## Visual identities and concurrent timelines - **Dual-style visual badges (128 distinct slots)**: Every parallel subagent automatically receives a unique shape and high-contrast color badge that stays consistent across the chat timeline, toolbar drawer, task details, and Web UI—so you can tell who is working on what at a glance even with many running at once; named assistants also incorporate their accent color or avatar. The default style is **Prism**; if you want a different look, switch to **Pixel Cube** under **Settings → Appearance → Interface** (or **Settings → General → Appearance** on Web), automatically synced across both clients. - **Batched concurrent timeline**: Multiple subagents dispatched in the same turn collapse into one grouped entry to avoid flooding the chat with a long stack of tool cards; tap to expand live status, elapsed time, and details for each subagent, or tap any individual item to open its full step log. ## Notification batching and auto-wakeup When background subagents complete, their results, evidence, and staged file lists automatically return to the main assistant. Whenever the main assistant is idle, a unified built-in auto-wakeup handles follow-up with no manual setup required: - **Automatic batch summary**: Once all normal subagents in a parallel batch finish, after a brief debounce pause the main assistant wakes up automatically and continues reporting inside the same reply bubble, separated by a thin timestamp divider; - **Immediate alert on failures or needed input**: If any subagent fails, needs you to answer a question, or needs webpage login takeover, the main assistant wakes up immediately instead of waiting for the entire batch to finish; - **No spurious wakeup on manual stop**: When you tap **Stop** or **Stop all** to cancel subagents manually, the main assistant is not falsely triggered to auto-continue. ## How to use 1. **Enable the capability**: Turn on **Subagent collaboration** or **Delegate to Expert** under **Tools → Choose Tools** in the chat input bar (or in the assistant editor's tool settings). If the current chat has session-level tool overrides, enable it directly in the bottom **Tools** menu. 2. **Collaboration style, model scope, `@` mentions, and built-in templates**: In the in-chat subagent preferences sheet or **Settings → General → Input & interaction → Sending & replies**, switch **Subagent collaboration style** between **Balanced** (default, dispatches on demand) and **Proactive** (more actively splits complex research, multi-file analysis, or engineering tasks across multiple parallel subagents). After enabling **Allow cross-model subagents**, open **Allowed subagent models** below it to exclude models by provider group that you do not want subagents to call (without affecting manual model switching in main chat). Typing **@** in the input box lets you summon other configured assistants or assign follow-up work to existing subagents in this chat—in addition to referencing files and servers. The prompt library also includes two built-in multi-role collaboration templates: **Roundtable Decision** and **Parallel Deep Research**. 3. **Toolbar "Subagents" chip**: Once a chat has spawned a subagent, a persistent **Subagents** chip appears in the input toolbar. While the main assistant waits on background subagents, the chip glows with an animated border and shows the active count; you can adjust its position under **Settings → General → Toolbar order**. When you **Create branch** from a chat that has subagents, the new branch keeps a read-only entry in the bottom bar (labeled "Original chat"), strictly isolated from the original session's ownership. 4. **"Subagents" drawer and step view**: Tap the **Subagents** chip to inspect task progress, open full step histories and staged output files, or individually **Stop** any running or queued subagent. 5. **Open multiple webpages concurrently without crashing**: When multiple subagents use the browser at once, default concurrency limits allow up to **6 pages on phones / 8 on tablets / 10 on PCs (2-in-1)**, queueing additional pages automatically. When device memory tightens, the app automatically lowers concurrent open pages and hibernates idle background pages first to prevent crashes. If a page needs login or a CAPTCHA, tap in anytime to complete it yourself without affecting other subagents. ## Best practices and notes - **Clearer division of labor gets better results**: Tell the main assistant which tasks can be investigated in parallel, which configured assistant should take which role, and what final delivery format you expect so subagent outputs stay focused. - **Branching blocked while running**: While background subagents are still running or queued in the current chat, **Create branch** (splitting into a separate chat) is temporarily unavailable to prevent ownership confusion between old and new sessions; wait until subagents complete or tap **Stop all** first. - **Configuration changes still confirm first**: Before a delegated expert modifies existing providers, models, balance settings, or image recipes, a confirmation panel still opens; already-saved configurations are not undone by stopping subagents or deleting messages. - **Usage and scope**: Subagents send requests using whichever model configuration actually runs, billed to the current conversation and Usage Stats; subagents and expert delegation are not enabled in Incognito Chat. --- # How do I use built-in Node.js, npm and npx MCP? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/node_runtime/ ## Overview Node.js 24.2.0 and npm 11.4.2 are installed with the app. **Code Workbench** can run compatible Node scripts and pure JavaScript CLI tools through Bash. In **Tool Services**, you can launch compatible local stdio MCP servers via `npx`; both built-in Node and `npx` MCP workers provide global `fetch` support so pure JavaScript packages can make network requests directly. Tools that depend on desktop software or OS subprocesses require an appropriate external environment. Note that the JavaScript tool interface used for host-managed API keys runs on QuickJS. ## How to use 1. In the chat input bar, go to **Tools → Choose Tools** and enable **Code Workbench**. Add your files to **Conversation files** and reference them with **@**. 2. Tell the AI what to do—for example, "Use Node to read this JSON file, clean it up, and save it to `outputs`." You can also ask it to install compatible npm packages and run scripts. 3. In an MCP service's address field, enter a launch command with a pinned version, such as `npx -y @modelcontextprotocol/server-sequential-thinking@2025.7.1`, save, and connect. An internet connection is required for the first package download. 4. Go to **Settings → Connections & advanced → Runtimes** to inspect runtimes and packages, switch default pip / npm mirrors (Chinese-locale setups default to Mainland China mirrors, and you can switch to the official registries or a custom URL at any time), and clear the npm cache. After connecting, remember to enable the corresponding MCP tools on the current assistant or chat. ## Best practices - Prefer version-pinned pure JavaScript packages, such as the verified Sequential Thinking `2025.7.1` package. - Project dependencies are saved inside the session workspace, while MCP server installations are managed in a separate directory. Use explicit absolute paths when working with files. - In-app `npm install` skips lifecycle scripts. Tools that require native extensions, WebAssembly, or system subprocesses should be run on a computer or server instead. - Write generated files to `outputs` so they can be previewed, saved, or shared directly in chat. Never write API keys into scripts or output files. --- # How does the AI run Python on my phone? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/python_runtime/ ## Overview Python 3.12 is installed with the app. With **Code Workbench** enabled, the AI can use built-in or compatible libraries directly on your phone to process spreadsheets, analyze data, batch-process files, or generate Word, PowerPoint, and PDF documents. Scripts that depend on desktop software such as LibreOffice require an appropriate external environment. - Comes pre-installed with common libraries including `pandas`, `numpy`, `openpyxl`, `matplotlib` (with CJK fonts configured), `Pillow`, and `lxml`. - Document libraries such as `python-docx`, `python-pptx`, and `pypdf` are pre-bundled; other compatible pure-Python libraries can be installed online on first use and are kept afterward. - Variables and computed data persist within the same conversation so you can build on them in follow-up turns. - Command lines written in skill instructions (such as `python scripts/x.py` or `pip install`) run in the app's simulated Bash environment. - MCP services can use `uvx`, `pipx run`, `python -m`, or `npx -y @` launch commands to start inside the built-in runtime. ## How to use 1. In the input bar, go to **Tools → Choose Tools** and enable **Code Workbench** (already included in the recommended set). 2. Bring the files you want processed into the chat: reference them with **@** or import them in **Conversation files**. Putting spreadsheets and data files in the workspace for Python to process saves far more context than sending entire raw files to the AI. 3. Simply describe your goal—for example, "Calculate the average score per department in this spreadsheet and plot a bar chart," or "Crop all 20 of these images to 1:1." 4. Code cards in replies show what each code block did and how long it took; expand a card to inspect the code and output. Generated files appear in the **Generated files** card where you can preview, save, or share them; charts saved to `outputs/` can also be displayed inline in the reply body. 5. Go to **Settings → Connections & advanced → Runtimes** to check Python and Node.js versions, view installed packages, configure default pip / npm mirrors, and clear the npm cache. Chinese-locale setups default to Mainland China mirrors, and you can switch to the official registries or a custom mirror URL at any time. The built-in runtime includes memory protection that automatically interrupts oversized computations and reclaims memory to prevent unexpected app exits. ## Best practices - When you need exact calculations, statistics, or batch processing, explicitly tell the AI to "calculate this with Python"—the results are far more reliable than having the model estimate in text. - To use Skill Market skills for PDF, Excel, Word, PowerPoint, poster design, animated GIFs, and more, install them and enable them on your assistant, or specify one in the input bar with **/**. Skill details list detected commands and packages. - For tasks requiring LibreOffice or compiled native Python packages, switch to pure-Python libraries instead. For MCP services requiring Docker, native Node extensions, or system subprocesses, connect to a remote server URL. - First-time automatic package installation requires an internet connection and may be slower on weak networks; if installation fails, the AI sees the error reason and switches to an alternative approach. --- # How do I generate Word, Excel and PowerPoint files? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/office_generation/ ## Is Pro required? **Generating Word, Excel, and PowerPoint files, saving them locally, and sharing them via the system share sheet do not require Pro.** Files are generated locally on your device, while AI content drafting still uses your selected model and its quota. Adding files to cross-session Shared Files or publishing to the public web are separate Pro features and do not affect regular generation and export. ## Getting started 1. Open a regular chat and select a model that supports **tool calling**. 2. Tap **Tools → Choose Tools** in the input toolbar and turn on **File operations** and **Code Workbench** (already included in the recommended set). You can also set them as defaults for an assistant under **Assistants → Edit assistant → Tools**. 3. Provide your text, data, or attachments, specify the desired filename, purpose, and format, and wait for the generated file card. When editing an existing file, add it to **Conversation files** first—see "PowerPoint and editing existing documents" below. No extra skill needs to be enabled. ## Example prompts - "Turn the discussion above into a Word weekly project report with this week's progress, an action-item list, and a task table, and generate `weekly-report.docx`." - "Create Word meeting minutes from these notes, listing decisions, owners, and due dates." - "Generate `project-budget.xlsx`: Design 3000, Development 12000, Testing 2500. Format currency to two decimal places, add a total formula, and freeze the header row." ## What is supported - **Word (.docx)**: Headings, body text, lists, tables, images, headers and footers, and page setup. Output files can be edited further in Microsoft Word or WPS Office. - **Excel (.xlsx)**: Multiple worksheets, values, formulas, merged cells, column widths, number formats, borders, freeze panes, filters, and charts. Legacy `.xls` files can also be read and saved as `.xlsx`. - **PowerPoint (.pptx)**: Titles, body text, images, tables, and charts. Animations and slide transitions are not supported. - **PDF**: Merging, splitting, rotating, extracting text, and generating new PDF files directly. Excel formulas are recalculated when opened in spreadsheet software, so previews after modifying a workbook may display "pending recalculation." If you need totals visible before opening in Excel, ask the AI to compute the values first and write the results as static numbers. IDs, numbers with leading zeros, and long numbers exceeding 15 digits should be stored as text to prevent precision loss. ## PowerPoint and editing existing documents You can ask: "Create a two-slide project presentation covering this week's progress and next week's plan, and deliver `project-update.pptx`," or "Change cell B2 in `budget.xlsx` to 15000, keep everything else intact, and save a new copy." **For editing existing documents, adding them to Conversation files works best**: After adding a Word, Excel, or PowerPoint file as an input attachment, a prompt appears above the attachment—tap **Add to Conversation Files** to convert the original into a conversation file, automatically reference it in the input box (shown as `@filename`), and turn on **File operations** and **Code Workbench** for this chat; then simply describe your changes. You can also open **Conversation files → Import file** from the top-right chat menu and type `@` in the input box to pick the file. When referenced this way, only the opening snippet is attached to your message while the AI reads the rest on demand, edits based on the original file, and saves a new copy—making it much easier to preserve formatting, styles, and formulas. Legacy `.xls` files are read and saved as `.xlsx`; legacy `.doc` and `.ppt` files only support reading text—to modify them, save them in a modern format using Office or WPS first. Sending files directly as attachments also works, but the document text is parsed into plain text and sent along with the message—great for reading and summarizing, though less effective than **Conversation files** for modifying the original file. When modifying an existing file, the original is preserved and the revised copy is delivered upon success. If a PowerPoint slide contains too much text, split it across multiple slides and inspect line wrapping and image layout after generation. ## Where to find generated files Once the reply finishes, expand the **Generated files** card below the message to open, save, or share via the system share sheet. You can also open the current session's workspace from the chat menu to locate files. Preview support depends on your device; if a file cannot be previewed directly, save it first and open it with Word, Excel, or WPS. ## Turning an existing reply into Word If the content is already in a reply, you do not need the AI to regenerate it. Open **More → Share** on the message and choose **More → Word** in the share panel to export the reply directly; it supports body text, headings, lists, tables, code, and formulas (converted into native editable Word equations). Use **Code Workbench** when you need a specific template, modifications to an existing file, or a PowerPoint presentation. ## Troubleshooting when no file is generated - Verify that your model supports tool calling and that **Code Workbench** is enabled in the current chat. Showing text or tables inside the reply does not mean a downloadable file was created—explicitly ask to "generate and deliver a `.docx` / `.xlsx` / `.pptx` file." - Incognito Chat does not create a persistent workspace; use a regular chat to generate files. - Phones do not include an Office or WPS engine, so Word and PowerPoint files cannot be converted to PDF; if you need a PDF, ask the AI to generate a PDF directly. --- # Skill Center and assistant skills > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/skills/ ## What is Skill Center? A skill is a bundle of specialized instructions and reference files that a model can load on demand. It is ideal for capturing repeatable workflows, writing standards, project background, and tool instructions so you do not have to paste them into every chat manually. ## Understand scope first Skills have two layers—**content** and **enablement**: a single Skill installed in Skill Center is shared across assistants in the app, but **installing a skill does not automatically activate it for every assistant**. Each assistant can toggle the same Skill on or off independently on its own Skills tab; only Skills enabled on the current assistant are exposed to the model. You can also configure enablement in bulk from the skill's side: in the Skill Center list, tap **Enable** or the assistant count on the right side of a skill—or open the skill's **Overview → Enable for assistants**—to check multiple assistants at once, with Select all and Invert selection supported; closing the panel saves automatically. The details page of an installed skill in Skill Market and the success card after creating a skill in chat provide the same entry. Turning off a skill on one assistant affects only that assistant—it neither deletes the skill nor affects other assistants. Conversely, editing, updating, or deleting the skill itself affects every assistant that has it enabled; if you need different rules, create or duplicate it as a separate skill. ## Where to manage skills Open **Settings → Assistant capabilities → Skill Center** to create, edit, or delete skills. Tap **Skill Market** at the top of the list to browse skills; use the top filters to show only enabled, disabled, or updatable skills, and use header search to find skills by name or trigger description. Tap **+** in the header to create a skill or group, import a `.zip` archive or a `SKILL.md` text file with frontmatter, or install from GitHub (paste a public repository URL, skill subdirectory URL, or `SKILL.md` link). When importing from GitHub, the app first discovers skills; if a repository holds multiple skills, select the items you want and review the source, attachments, and runtime requirements before installing. Installation includes the entire selected skill folder and its attachments—not just the `SKILL.md` body. Overwriting a skill with the same name requires explicit confirmation, and failed items can be retried individually. After installation, you can pick assistants to enable it on; if launched from the assistant editor, enabling only updates your open edit draft, so remember to save the assistant. ## Preview before installing and complete missing info On a SkillHub skill details page or an in-chat skill card, tap **View contents** to inspect the skill body, file manifest, and text attachments first. Single text file previews are capped at 1 MB. Assistants with **Find skills** enabled can also read candidate skills before making recommendations based on their body and files. Previewing is read-only and never installs or runs a skill. When importing a local ZIP or `SKILL.md`, or fetching a SkillHub skill, if the app prompts that name, trigger description, or other details are missing, fill them in on the **Complete skill information** panel to continue. Write one concise sentence clearly describing what the skill does and when to use it. ## Runtime requirements for external skills **Code Workbench** can execute Python scripts and compatible pure JavaScript CLI tools. Skill details and GitHub import previews list detected commands, packages, and executables missing on your device. Steps that depend on programs such as LibreOffice or Docker should be run on a computer or server that has them installed. If a skill needs an MCP server, add the corresponding server in **Tool Services**. Deleting a skill simultaneously clears its enabled references across all assistants and cannot currently be undone. Deleted preset skills are not automatically restored on the next launch or version upgrade; to preserve a copy, export a ZIP from Skill Details first so you can re-import it later. Both standard and large skill packages can be imported for free; downloading and updating from Skill Market also requires no Pro, though signing in and connecting to online services is required. Packages with more than 1,000 files or over 50 MiB uncompressed are recognized as "large skill packages," supporting segmented reading and path-based resource lookup across large knowledge sets. GitHub imports display file counts and size prior to installation. Packages exceeding safety limits or containing overly long paths that the device cannot handle reliably are rejected with advice to trim folders, shorten filenames, or split the package. ## Preset skills The app provides multiple preset skills that you can enable, edit, or delete as needed. For example, `app-help` can read the Help Center as well as release notes for your installed version and past versions to answer usage or version-change questions or guide skill updates; `grilling` helps clarify plans step by step; "Document to Markdown" converts documents; and "ZIP File Processing" works with Code Workbench to process archives. Word, Excel, and PowerPoint creation and editing are handled directly in Code Workbench with pre-installed document libraries. These built-in document and spreadsheet capabilities do not require Pro—simply turn on **Code Workbench** in the current chat. Legacy official document and spreadsheet skills have been replaced by Code Workbench, while any versions you customized yourself are retained. See "How do I generate Word, Excel and PowerPoint files?" for exact steps. ## What a skill contains - **Overview**: Basic details such as skill name and trigger description. The trigger description corresponds to `description` in `SKILL.md` frontmatter, which the model uses to decide whether to load the skill. - **Body**: The main instructions of the skill, read when the model calls `use_skill`. - **Files**: Attached reference materials for the skill. You can upload text and document files; documents have their text extracted before being saved into skill files. A skill package may include `cube-extension.json` declaring version, source, runtime environment, tool dependencies, and required assets, displayed under **Extension requirements** in Overview. The source field is filled in by the author and does not indicate verification or certification. The app checks the manifest and assets; installing never automatically enables tools, connects MCP servers, or installs runtimes. When the model loads a skill, it receives the names of dependencies actually available in the current turn. Python and Node.js are provided by the app's built-in runtimes; skills depending on native extensions, OS subprocesses, or other unadapted capabilities still require a remote environment. Deleting a skill does not delete independently configured MCP connections. ## How to enable a skill for an assistant Go to **Assistants → Edit assistant → Skills** and turn on the skills you need. The same Skill can be enabled in Assistant A and disabled in Assistant B without duplicating it; you can also tap **Manage** in that area to jump straight to Skill Center. ## Creating or editing skills in chat First enable **Manage Skills** under **Assistants → Edit assistant → Tools**. Once enabled there, you do not need to check it again in the chat tool picker—simply ask the assistant to "Create a Skill," "Optimize and update Skill X," or "Restore the previous version." The model generates a structured draft card displaying the name, trigger description, body diff, and text attachment changes. The Skill name is a display name accepting any text up to 64 characters; the app generates an internal folder ID automatically without affecting the display name. When editing an existing skill, if the trigger description has not changed, the model can omit that field in its tool call and the draft inherits the saved value. Before confirming, you can edit the trigger description, body, and attachments directly on the card. **Edit only what needs changing**: For example, say "Change the paragraph in this skill that asks for a table into bullet points, and leave everything else untouched." The assistant can locate the target passage by keywords and submit only the replacement text; editing reads return segments by default so it does not have to read and rewrite the entire skill just to change one sentence. Updating only the trigger description likewise avoids resubmitting an unchanged body. This reduces token consumption during edits, though actual usage still depends on how the model calls the tool and the scope of changes. Partial replacement applies to the main skill body; updates to skill attachments are still handled per file. **Adjust skills after app updates**: After enabling `app-help` on the current assistant's **Skills** tab and enabling **Manage Skills** on its **Tools** tab, you can say "Read the current version's release notes, check what adjustments my X skill needs, and generate an edit draft." The assistant can search or read in segments the exact same release notes found in **Settings → About Cube Agent → What's New**, cross-referencing help topics and actually available tools. Reading never modifies a skill automatically—all edits still require your draft confirmation. **Ask about version changes**: With `app-help` enabled, you can also ask "What changed compared to the last version?" or "Which version added this feature?" The assistant reads the same bundled notes shown in **Settings → About Cube Agent → Version History** and quotes the relevant version directly; bundled history covers only up to your currently installed version and does not include newer uninstalled releases. Confirming a draft saves it directly to Skill Center and allows enabling it for the current assistant; canceling writes nothing. Before every overwrite, the existing content is automatically backed up as the "previous version," and newer confirmed updates overwrite older backups. Restoring the previous version swaps the two versions, so you can switch back if you restored accidentally. Updating or restoring an existing Skill internally checks whether the underlying content changed meanwhile. If the original file changed during editing, overwriting is halted and the draft card lets you retry based on the latest version. Inside chat, you can add, edit, or delete small text attachments, but you cannot delete an entire Skill or access the internal `.cubeagent` directory—deleting an entire Skill still requires going to Skill Center. **Manage Skills** is controlled exclusively by the current assistant's tool switch. It governs permission to create, update, or restore shared Skill content—not whether an individual Skill is active. When disabled, even if the assistant has other Skills enabled, it cannot create, update, or restore Skills, and past tool selections in chat history cannot bypass it. Rejecting or canceling a draft never alters any files. Only skills enabled on the current assistant are exposed to the model. During conversation, the model first sees skill summaries and then calls `use_skill` on demand to read the full body or file contents. Large files are read in segments, and large reference skills can search resources by path keywords first to avoid loading the entire resource directory at once. ## Connecting skill accounts (e.g., ima Knowledge Base) Some skills require your own account on an external service, such as ima Knowledge Base & Notes. These skills show a connection entry under **Skill Details → Account connection**, and the first time they are used in chat, a **Connect** card also appears beneath the result. Open it, follow the prompt to open the credential page, paste your Client ID, API Key, or other values, and save the connection. To use **Yuanbao Search · Standard** (a Mainland China search skill), install it under **Search & Research** in Skill Market, open **Account connection** in Skill Details, enter your own Tencent Cloud API Key, and tap **Save and connect**. Once enabled, you can ask the assistant "Use Yuanbao Search to find materials published this week and list the original links." Available sources, quotas, and pricing are governed by the service provider. - You only enter credentials once. All assistants with that skill enabled share the same connection; when rotating a key, update it once in Skill Details. - Saved credentials are filled in automatically by the app only when requesting websites declared by that skill (explicitly shown on the card, such as `ima.qq.com`). Neither the AI nor scripts can see the values, and you never need to paste keys into chat. - Once connected, the conversation resumes automatically. If a key expires or is reset, the AI shows the Connect card again so you can paste the new key. - If a skill update changes its destination website, the status displays **Confirm again**, and credentials will not be sent automatically until you re-confirm. - Tapping **Disconnect** on the connection screen removes the global credential for that connection, and all assistants using that skill will need to reconnect before using it again. ## API keys inside skills When a Skill needs to call an external API, save the token under **Assistants → Edit assistant → Prompt → Variables**, and record only the variable name and authentication format inside the Skill. When the same Skill is shared across multiple assistants, each assistant uses its own variables. When calling the API, enable **Network requests** and use `http_request` with `credential_env` specifying the variable name and `url` specifying the real HTTPS endpoint; the app reads the current assistant's variable and attaches it to the request header. `credential_header` defaults to `Authorization` and `credential_prefix` defaults to `"Bearer "` (with a trailing space); adjust according to the API specification, and set the prefix to an empty string when passing a raw key in a custom header. Never write tokens into a Skill, chat text, or script. ## What if a legacy skill says `process.env` is empty? Code Workbench does not inject assistant environment variables. When a legacy skill expects to read variables such as `process.env.ZHIHU_ACCESS_SECRET`, migrate its request step to the host-side credential injection method above; you can run `assistant_env list` first to verify variable names without calling `get` to return secret values to the model or re-entering credentials in chat. Toggling the environment variable tool does not change `process.env` inside scripts. `getLocalSecret` is not used to read assistant variables—do not attempt to guess `CUBEKEY` numbers. If an API requires using a secret for signature computation or placing it inside the request body, header-based host injection cannot directly replace that, and the skill author will need to adapt to a supported authentication flow. ## Targeting a skill for a single turn When you have many skills or similarly named ones, type **/** or tap **+ → Skills** in the input box to target a specific skill for that message—see "How do I point AI at a specific file or skill?". ## Notes Skill reliability depends on the active model's tool-calling capability and instruction adherence. When no skill is explicitly targeted, the model must call `use_skill` first to read the skill body; skills with similar descriptions may be misselected, in which case target the exact skill using the method above. --- # Assistant and global memories > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Models & AI. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/assistant_memory/ ## What is Memory? Memories store long-term user preferences, project background, and other stable facts. Memories serve strictly as historical background—whenever a memory conflicts with the current system prompt or your instructions in the current turn, the current system prompt and current turn take precedence. ## Enabling memory and the memory tool Toggling **Enable Memory** is the sole master switch. When the active model supports tool calling, the app automatically attaches the built-in `memory_tool` on every send; there is no separate switch in assistant tools or the chat tool picker, and you do not need to check anything manually. When a model does not support tool calling, the app automatically falls back to syncing memories into the system prompt so memory continues working. Incognito Chat is the exception: it never reads, injects, or modifies long-term memories. ## Assistant-local vs. Global Memories - **Assistant memory**: Belongs exclusively to the current assistant—ideal for project-specific assistants. - **Global Memories**: Shared across all assistants set to **Global only** or **Use both**—ideal for lasting preferences, preferred name, and general work background. - **Use both**: Reads both Global Memories and the current assistant's memories simultaneously, letting the model see which scope each entry belongs to. New entries default to assistant memory and are written to global memory only when you explicitly ask to share them across assistants; updates and deletions follow each entry's original scope. Editing global memory affects every other assistant that uses it. Single-group scope remains the default, and existing assistants keep their previous choice without automatically turning on **Use both**. Switching scope neither moves nor deletes existing memories. In **Use both** mode, the management page lets you toggle between both groups; adding, importing, refining, and Recent Changes apply to whichever group is currently selected. ## Memory write modes Memory writing has three modes, configured per assistant and shared across native and Web chat: - **Manual**: The AI can read existing memories but cannot add, edit, or delete them. - **Confirm**: The AI proposes the complete change, and you review its scope and before/after content on a confirmation card where you can edit before saving or reject it; nothing is written to active memory before you confirm. Global memory changes affect other assistants using it. - **Automatic**: The AI can add, edit, or delete memories directly, with undo and Recent Changes preserved. Upgrades preserve previous behavior: disabling auto-maintenance maps to **Manual**, enabling it maps to **Automatic**, and new assistants continue defaulting to **Manual**. On Web, you can switch the current assistant's write mode from the top assistant menu, while enabling Memory itself is still configured in the app. Confirmation is designed to control memory quality and does not guarantee reduced token usage. ## Memory reading modes - **Auto sync**: Freezes the current memory baseline into the system prompt on the first turn so the system prompt prefix stays unchanged across subsequent turns, reliably protecting prompt prefix cache hits. Memories added or updated mid-conversation are appended to the end of the current user message as an incremental `` block; the baseline refreshes only when an existing baseline memory is deleted or when context is compressed or reset. - **On-demand**: Keeps the system prompt completely static without preloading memory bodies. Models with tool support search on demand using `memory_tool`'s `read` action with `query` keywords (up to 8 entries and 6,000 characters combined per read). Models without tool support perform local keyword retrieval against your current message and attach matching memories as `` on the current user message—without altering the system prompt prefix, injecting nothing when there are no matches, and never falling back to full injection. After a memory is modified, only that action's result refreshes the affected entry rather than attaching a full memory snapshot. Neither mode rewrites historical messages. Past `read` results retain the snapshot from when they were invoked; after a memory changes, the next `read` returns the latest state from the database, which takes precedence. ## Manual management After saving memory settings under **Assistants → Edit assistant → Basic → Memory**, open the dedicated memory management page to manually add, edit, disable, or delete records. Tap a row to edit; swipe right to promote/demote or edit; swipe left to delete. Turning off **Enable Memory** does not erase saved memories—it only pauses reading, injection, and automatic maintenance. ## Recent Changes (Recycle Bin) Before any memory is modified, deleted, or bulk-replaced by AI refinement, its prior content is automatically saved to **Recent Changes**, accessible from the top-right menu on the memory management page. Snapshots are kept for 30 days and can be restored in one tap: if the original entry still exists, the old content overwrites it; if deleted, a new entry is recreated with the old content. Restoring also creates a snapshot, so you can roll back again anytime. Whenever the AI automatically remembers or modifies a memory during chat, a **View** toast appears—tap it to open that assistant's memory list (or Global Memories) directly to inspect the change, and go back to return to chat; open **Recent Changes** from there whenever you want to restore an earlier version. ## Moving memories between Global and Assistant scope Individual records can be moved or copied between assistant-private memory and Global Memories: - On an assistant's private memory page, promote a single memory to Global Memories. - On the Global Memories page, demote a single memory to any assistant with local memory enabled. - Moving relocates the original record; copying creates a new record at the target while keeping the source intact. ## Move or clone between assistants **Move or clone memories** performs batch operations on local memories between assistants via **Assistants → Edit assistant → Basic → Memory → Move or clone memories** (shown only for assistants with local memory enabled). Moving transfers the source assistant's local memories to the target assistant; cloning copies them to the target while keeping the originals on the source. Both the source and target assistants must have local memory enabled. ## When deleting an assistant Deleting an assistant never silently discards non-empty local memories. If the assistant holds local memories, you are first asked either to move them to another assistant with local memory enabled or to explicitly delete them. Associated conversations still move to the Default Assistant following assistant deletion rules. ## Provide time info Located on the **Chat Behavior** card under **Assistants → Edit assistant → Basic**, disabled by default. When turned on, the app supplies a time reminder directly from existing message timestamps on the first turn, across day boundaries, or whenever at least one hour has passed since the last reminder—without saving extra environment snapshots or attaching UI language metadata. Search, webpage fetching, and Memory do not automatically enable this setting. When disabled, no time reminder is injected, while memory injection and automatic maintenance remain unaffected. ## Pro Memory AI Pro members have access to two AI capabilities on the memory management page: - **Bulk import**: Copy the **extraction prompt** provided on the page → paste it into another AI platform so it compiles your memories → paste the result back so the AI parses, previews, deduplicates, and imports records in bulk. Great for migrating large memory collections from other tools in one step. If you already have a `.md` or `.txt` memory file (such as a desktop agent's `CLAUDE.md`), tap **Import from file** to read it directly without copy-pasting. - **Desktop agent migration**: Desktop agents such as Claude Code and Codex can write memories directly through the Web Server—see "Desktop Agent Migration". - **Smart refinement**: Lets the AI automatically deduplicate, merge, and distill existing memories into a cleaner set. You can refine everything, or **long-press to enter multi-select and check specific entries to refine only the selected items**, leaving unselected items untouched—ideal for polishing one category without touching the rest. ## Best practices - For bulk import, copy the extraction prompt provided on the page first and generate structured output on the other platform before pasting back for the highest recognition accuracy. - Smart refinement modifies and merges existing entries; after confirming replacement, original entries remain in **Recent Changes** and can be recovered for 30 days. - When you only want to clean up one category of memories, use multi-select **Refine** so unselected entries remain untouched instead of modifying everything. - Both features are Pro exclusives; non-Pro users will be guided to unlock Pro when tapping them. --- # How do message edits, regeneration, and conversation branches work? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/chat_message_branches/ ## Two branching methods — choose what fits best - **In-window branches (Edit / Regenerate)**: Edit an earlier prompt or regenerate a reply directly inside the current conversation. The previous answer and all follow-up turns after it stay preserved on the original branch instead of disappearing; tap the left/right arrows below the message (such as `1/2` ↔ `2/2`) at any time to switch back to the original branch and its follow-up history. - **Create branch (fork into a separate conversation)**: Open a message's **More → Create branch** to copy that node and all preceding context into a standalone new conversation without affecting the original chat. The new branch automatically inherits and remaps the original conversation's context compression checkpoints, context-clear dividers, and session settings; if the original chat contains finished subagent records, the new branch's bottom bar also keeps a read-only entry to view them. This works well for turning a side path into a long-running task or assigning different models, tools, and workspaces. ## Editing earlier messages: “Save” vs. “Save & Send” - **Editing an earlier user message**: - **Save & Send** (the send icon on the right side of the input bar in the native app; **Save & Send** in the message editor on Cube Agent Web, or `Ctrl/Cmd + Enter`): Saves your edit as a new branch version, tucks away the old follow-ups after the previous version, and immediately asks the model to generate a reply on the new branch. - **Save / Save Only** (the **Save** icon next to the send button in the native app; **Save Only** on Cube Agent Web): Saves your edit as a new branch version and tucks away the old follow-ups without automatically calling the model; you can tap the message's regenerate button later whenever you are ready. - **Editing an earlier AI reply**: Only offers **Save**, which creates a new version of that reply and tucks away the follow-up turns after the previous version. You can continue asking questions directly below the new version, or use the left/right arrows to switch back to the old version and its original follow-ups. ## Does regenerating delete later messages? - **Normal persistent chats do not delete them**: Whether you tap **Regenerate** on an earlier prompt or on a middle or final AI reply, the old reply together with all subsequent turns stays preserved on the original branch, and the new reply starts generating as a new version. If you stop or cancel generation before any content is produced, the view automatically restores the original branch; if partial content was already produced when stopped, it is kept as the new version, and you can still tap the left/right arrows to switch back to the old branch. - **Exception for Incognito Chat**: Incognito chats do not persist version history, so regenerating an earlier prompt still clears later messages as prompted. - **Native and Cube Agent Web sync**: Phones, tablets, PCs, and Cube Agent Web share the same branching rules, so switching branches or saving edits syncs in real time across both. ## Deletion and things to keep in mind - **Branch protection**: To prevent accidentally deleting history stored on the original branch or other branches, **messages that still have follow-up turns cannot be deleted individually**. To delete a contiguous trailing section of the current branch, delete backward from the last message, or use **Select** to choose contiguous trailing messages and delete them together (provided none of those nodes have unselected follow-up branches under their other hidden versions). - **Cannot create a branch while subagents are running**: While background subagents in the current conversation are still running or queued, wait for them to finish or tap **Stop All** before using **Create branch**, so subagent ownership does not become mixed between the old and new chats. - **Switches chat history only, not local files**: Switching branches only switches the chat log and the context sent to the model; it does not revert files or configurations that AI has already modified in the session workspace, shared files, or remote servers. - **Backup and merge**: Regular chats that have never branched continue to support cross-device backup merging; when importing a multi-branch conversation with a conflict, choose **Keep both** to avoid overwriting local branches. --- # How do I customize conversation avatars and model labels? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/session_avatar_and_model_badges/ Open avatar editing from a conversation's action menu in the conversation list to choose a gallery image (GIF animations supported), emoji, text, and background color, or restore the global style. This changes only the current conversation, and the avatar image is preserved in backups, exports, and migrations that include that conversation. In **Settings → Appearance → Interface → Conversation list**, adjust chat icons and model name display. A live preview sits at the top of the conversation list section, and you can also jump straight there via Search Settings. **Chat icon** can be set to title initial, model icon, or the owning assistant's avatar; when no matching model icon exists, the text initial is kept, and a custom conversation avatar always takes priority. When **Color assistant names** is enabled, the All chats view shows a dot in that assistant's color before its name. The model name updates automatically as the conversation's active model changes. Under **Assistant list** on the same page, you can configure whether tapping an assistant card's avatar and name opens **Edit assistant** or **Open chats**. Tapping the description area always opens the editor, and the preview card highlights the tap behavior for both areas. --- # How does automatic chat retry work? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/chat_retry_policy/ Adjust the three retry categories separately in **Settings → General → Input & interaction → Sending & replies**: - **Retry after network errors**: Off by default. Retries when a connection drops or times out, which may replace a partial reply already streamed during this turn. - **Retry after service errors**: Off by default. Only retries 502/503/504 service errors when no content has been output yet. - **Retry after rate limits**: On by default. When no content has been output yet, temporary rate limits or upstream queuing errors returned by the provider are retried after waiting. If your quota or balance is exhausted, resolve your account quota first. All three error types share a combined limit of at most 3 retries per turn — not 3 retries per type. While waiting, the input area shows the reason and a countdown, and you can stop at any time. Automatic retry stops if the server requests a wait longer than 60 seconds, and user cancellations, authentication errors, or invalid requests are never resent repeatedly. Requests involving tools or images that cannot be safely replayed may also stop automatic retry. Retries may incur additional model calls and charges, and seamless continuation of a previous partial answer is not guaranteed. These settings apply to chat retries; retry behavior for failed image generation tasks is configured separately in Task Center. --- # How do I edit drafts and queued messages? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/composer_and_queue/ Tap the expand button on the right side of the chat input box to enter fullscreen editing. Your edits sync with the draft in real time; tapping Done or using system Back keeps the full text without sending it automatically. While AI is replying, you can add follow-up messages to the send queue. Tap the edit button on a queued item to bring its text and attachments back into the input area; revise the text, add or remove attachments, and save. Finishing or canceling an edit restores your previous draft. If the message has already started executing or the queue state has changed, saving may not succeed — follow the prompt to re-check. Once pre-send validation passes, the on-screen keyboard hides promptly; if an attachment is still parsing or fails validation, address the prompt first. The input area collapsing does not mean the model has already received the request — refer to the message and task status instead. --- # How do I use voice input? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/voice_input/ ## Overview The chat input box supports built-in dictation and DeepSeek speech recognition, which you can select with the switcher in **Settings → Voice → Voice input**. Built-in dictation transcribes live as you speak and sends, queues, or keeps the draft when you release based on the current chat state; DeepSeek transcribes after recording ends and inserts the recognized text into the input box so you can review or edit before sending manually. You can cancel while waiting for recognition. ## How to use - **Hold to talk**: When the input box is empty and the keyboard is closed, it displays “Message or hold to talk...”. Press and hold the input area (including the blank space along the button row below) to start speaking. Live dictation sends or queues as prompted when you release; DeepSeek transcribes after release and places the text into your draft without auto-sending or queuing. Slide your finger up into the cancel area and release to cancel. Recording stops automatically at 60 seconds, with a countdown during the last 10 seconds. - **Tap to dictate**: Tap the waveform icon on the right side of the input box to start dictating. Spoken words appear directly in the input box so you can edit before sending; tap again to stop. When the input box already contains text, tap the icon beside the send button to keep dictating — new text appends after the existing text. - **While a reply is generating**: If you hold to talk while AI is still replying, releasing leaves the text in the input box or adds it to the send queue as prompted. - **First-time use**: Your first long-press explains that voice audio will be uploaded to the cloud for recognition; tap Continue to grant microphone permission. Recording does not start on that first press — once ready, press and hold again. ## Best practices - When the keyboard is open, long-pressing the text field keeps the system paste menu, so only the waveform icon supports hold-to-talk; close the keyboard first if you want to hold anywhere on the input area. On phones and tablets, entering a new chat leaves the keyboard closed by default for quick hold-to-talk. - If you only use hold-to-talk and want to reduce accidental taps near the send button, turn off **Show voice input button** in **Settings → Voice → Voice input** or **General → Input & interaction**. This hides the waveform icon while preserving hold-to-talk across the input area. - If the network drops or the app goes to the background mid-recording, any text already recognized is placed back into the input box so nothing is lost. If no speech is detected or the recording is too short, the app shows a prompt and will not send an empty message. - Voice input is not available in Incognito Chat, when editing messages, or in AI Provider Management chats. Recognition quality depends on network conditions and ambient noise; use tap-to-dictate when you want to review before sending. --- # How do I point AI at a specific file or skill? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/chat_mention_files_skills/ ## Overview No need to describe “go read file X” or “use skill Y”: point directly to them in the input box so their contents travel with that message. This skips extra lookup and read round trips and prevents AI from picking a similarly named skill by mistake. - **@ to mention files**: Files generated or imported in the current conversation's workspace, plus files in local folders or network storage selected for this conversation. - **@ to pick an SSH server (Pro)**: SSH servers you have allowed AI to access; selecting one makes it the target for this message. - **@ to summon collaborator assistants & existing subagents**: When subagent collaboration is enabled, you can directly mention another configured assistant to join in, or mention an existing subagent in the current chat to assign follow-up work. - **/ to specify skills**: Skills enabled on the current assistant. ## How to use - **Mention files (multi-select supported)**: Type **@** at the end of the input box to list mentionable files (network storage lists only its root directory), and continue typing the filename to filter. The popup supports **multi-select mode** — check multiple files and batch-insert them as `@filename` in one tap, with a live display of selected count and remaining quota (already-mentioned items are grayed out automatically). Up to 8 files can be attached per message; any single file longer than ~24,000 characters sends only its opening portion, with a total cap of ~60,000 characters per message. Documents such as PDF and Word have their text extracted first; non-text files such as images are not attached via `@`. Cube Agent Web now also supports `@` multi-select mentions for conversation files and shared files. - **Pick an SSH server (Pro)**: Type **@** as well, filter by server name or address, and pick it — it appears in the input box as `@servername`. Before sending, the app verifies the server is still available; commands run by AI still follow your SSH approval rules (ask or auto-run), and the Web workbench works the same way. - **Specify skills**: Type **/** at the start of the input box or after a space, then filter by words from a skill's name or description and pick it; you can also tap **+ → Skills** to open the full list for searching and multi-select. You can also enable a **Skills** button in the toolbar via toolbar settings. Up to 3 skills can be attached per message; selected skills appear above the input box and can be removed with `×`. The list only shows skills enabled for the current assistant — tap **Manage skills for this assistant** at the bottom of the list to enable more. - After sending, a line such as “Referenced files: …” or “Using skills: …” appears below the message. Tap it to check whether each item was attached in full, truncated to its opening portion, or reused from earlier context. ## Best practices - Mentioned files and skill bodies are saved on the message as they were when sent and carried verbatim on later turns, making prompt cache hits easier. Subsequent changes to the file or skill do not affect already-sent messages; mention it again if you need the updated version. If the same content was already attached earlier in the chat, AI is simply reminded to reuse it without consuming duplicate context. - Mention only the files truly needed for the current turn; for long documents, letting AI read sections on demand saves context. - If a skill body is especially long, only its opening portion is sent and AI reads the rest on demand. Changing the skills enabled for an assistant causes the prompt cache to rebuild once on the next request. - `@` mentions are not available in Incognito Chat or AI Provider Management sessions. How reliably AI uses referenced files and skills still depends on the model's instruction-following ability. --- # How do I see which files AI changed? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/chat_turn_changes/ ## Overview When AI creates, modifies, deletes, or moves files (in the session workspace, mounted local folders, or network storage) during a reply, a **Changes** card appears at the end of the reply listing each affected file along with the number of lines added and removed. ## How to use - Tap a file to expand and inspect the exact line-level changes: added lines appear in green and deleted lines appear in red. - For large files, extensive edits, or non-text files, only summary counts are displayed. - When a turn only creates new deliverable files, they are shown in the **Generated Files** card instead of duplicating them here. ## Best practices - After asking AI to edit important files, review the scope of changes in this card before moving on; if anything looks off, tell AI directly which change to revert or adjust. - Diff details are for display only — they are never sent back to AI and do not consume token quota. --- # How do I filter the conversation list by assistant? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/conversation_assistant_filter/ ## What it is The title card at the top of the Chats tab shows your current browsing scope: **All chats**, or a specific assistant's name and avatar. It is the single entry point for switching the browsing scope. ## How to use 1. Tap the title card to open the assistant picker dialog with a search box, organized into **All chats**, **Recent**, and **Other assistants**. If you have many assistants, search by name directly. 2. Tap **All chats** to view conversations across all assistants, or pick a specific assistant to show only chats belonging to it. 3. After selecting, the dialog closes and the list switches to the new scope. Switching scopes exits any active multi-select session. ## Remembers your last scope - The last assistant you viewed is remembered across app restarts and placed first under **Recent**; even after switching back to **All chats**, you can jump right back in one tap. - If the last viewed assistant is deleted, the scope returns to **All chats**. - Assistants that require authentication must pass identity verification before you can select them; after restarting the app, it will not land directly inside a locked assistant and returns to **All chats** instead. ## New chats and the default assistant - Starting a new chat while viewing a specific assistant uses that assistant for that chat only, without changing your global default. - Tap **More → New chat** in the title bar or the floating `+` button to start a conversation. - Under **All chats**, new conversations use your current default assistant for new chats; the menu's **New chat** item displays “Using: Assistant Name” underneath (truncated if long). When viewing a specific assistant, it simply shows “New chat” without repeating the assistant name. - Tapping **New chat** from inside an existing conversation's chat screen prefers that conversation's owning assistant. - To change the default assistant for new chats, go to the **Assistants** tab and choose **Set as default for new chats** from the target assistant's More menu. This changes only which assistant new chats use by default and does not change the conversation list's browsing scope. ## Custom categories, date filtering, and a cleaner Assistants tab - **Custom chat categories**: Manage custom categories in the conversation list and tag conversations to organize them; when no categories exist, the category bar hides automatically so it takes no extra list space. - **Search date range filter**: Conversation search lets you narrow results by date range, combining with keywords and favorite/assistant filters to locate past chats quickly. - **Hide the “Continue recent chat” card**: For a cleaner top area on the Assistants tab, turn off the **Continue recent chat card** toggle in General preferences. --- # How do I select multiple conversations? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/conversation_multi_select/ Open batch selection from **Conversation list title menu → Select chats** on the home screen; entering this way does not pre-select any conversations. The entry is disabled when no selectable conversations exist. You can also use **Select** from an individual conversation's menu, which starts with that conversation selected. Once in multi-select mode, check items individually or use **Select all / Deselect all** in the title menu — Select all applies to the currently filtered list. Tap **Cancel** to exit multi-select mode. While selecting, tap any time-group header (Today, Yesterday, Last 7 days, Earlier) to select the entire group, and tap it again to deselect. To clear old chats and keep only recent ones, tap **Earlier** and delete; or select all first, then tap **Today** to exclude recent chats. ## Available batch actions The bottom action bar provides **Archive**, **Move** (tooltip: “Move Chat”), **Share** (available only when 1 conversation is selected), and **Delete**. Exact buttons depend on the current screen — double-check your selection before acting. - **Batch move**: Tap **Move** and choose the destination assistant from the list to transfer all selected conversations under it. Existing messages stay untouched; future regenerations and follow-up turns use the new assistant's settings. If some conversations fail to move, a summary shows the succeeded and failed counts while failed items stay selected so you can check the target assistant and retry. - **Batch delete**: Favorited conversations are skipped and will not be deleted. When deleting a large batch, Cube Agent uses adaptive batching and displays a live progress bar at the bottom. If any conversations fail to delete (for example, due to a timeout), they remain intact and stay selected with the count noted in the prompt so you can tap Delete again to retry. Deleting a single regular conversation shows a confirmation dialog to prevent accidental loss; deleting a single favorited conversation requires two-step confirmation to protect important chats. --- # How do I enhance a prompt and restore the original? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/chat_prompt_enhancement/ ## Enable and configure Turn this on in **Settings → General → Prompt enhancement** (off by default). You can specify an enhancement model, write custom rewrite instructions, and choose styles such as general, formal document, report, or code — or maintain your own custom styles. Your configuration is saved, and temporary choices can be saved as the new default separately. Prompt enhancement also has its own independent reasoning effort: set the default under **Default settings** (initially “Default”); each time you enhance, you can adjust **Reasoning effort for this enhancement** in the panel for that draft only, and check **Save as default** when you want to persist it. ## Preview before replacing Write your draft in the chat input box, then tap the **Prompt enhancement** button on the same row as the send button. Once generated, you can edit the result and compare it against your original text; confirming replaces the input box content without auto-sending. You can cancel while generating; if you switch conversations or your draft changes in the meantime, run enhancement again to avoid overwriting new text. When your draft includes images, enhancement takes those images into account — make sure to choose an enhancement model that supports image input (when **Reference conversation** is enabled, the current chat model is used instead). If an image is not ready, fails to load, or the model does not support image input, a notice appears and enhancement stops. Replacing the prompt updates only the text and keeps your draft images. You can edit the **Original** text directly inside the panel and tap **Enhance again**. With **Reference conversation** enabled, enhancement draws on prior turns in the current chat to complete your draft without flagging already-provided details as missing; in this mode it uses the current conversation's model and reasoning settings, reuses the conversation's prompt cache, and does not allow picking a separate model. The toggle state is remembered for the next time you open the panel. After replacing, you can undo using the restore-original action in the panel; if you have edited the text again since replacing, Cube Agent asks before overwriting your later edits. Do not rely on the previous undo state after clearing the input box, switching conversations, or leaving the page. Enhancement requests send your draft to the selected model and may consume quota. Review the enhanced result to verify it preserves your intent and has no missing placeholders before sending. --- # Why is pasted long text converted to an attachment? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/chat_long_text_paste/ Both native apps and Cube Agent Web automatically convert a single paste of **more than 1,000 characters** into a full text attachment; pastes equal to the threshold remain in the input box. Each paste creates a separate attachment so you can keep typing your question alongside it without auto-sending. Tap a **Pasted text** attachment to preview it. Before sending, you can undo the conversion or choose **Put back in input box**: if the draft is unchanged, the text returns to its original insertion point; if you have typed new text, the full text is appended so your newer input is preserved. Sent attachments only offer viewing and settings. Previews of very long text show up to the first 100,000 characters, while the saved file and restored text are never truncated. Tap **Auto-convert settings** in the attachment details, or go to **Settings → General → Input & interaction**, to disable auto-conversion or set the threshold to any integer between 100 and 10,000 (changes apply only to future pastes). On Cube Agent Web, configure this under **Settings → Chat → Long text attachments** — the preference is stored in the current browser and does not sync with native settings. If saving fails, or if attachment count or upload size limits are reached, the text remains in the input box. Switching conversations or continuing to edit during conversion will not overwrite your new draft. Pasting files and images keeps its existing behavior. --- # How do I read a reply’s cache hit rate? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/chat_cache_hit_rate/ In a single reply's usage details, you can view the cached token count and cache hit rate directly under Input tokens. The hit rate is calculated as **Cached tokens ÷ Input tokens**, displayed to one decimal place. This metric appears only when the provider returns valid usage data where both input tokens and cached tokens are greater than zero and cached tokens do not exceed input tokens. Missing, zero, or anomalous data is hidden, so its absence does not necessarily mean caching was not used. The figure shown here reflects usage for that individual reply only — it does not equal your billing discount or the overall session cache ratio. Actual billing and caching behavior are governed by your provider. To learn how to boost hit rates and cut API costs, search the Help Center for “How do I improve cache hit rates and lower API costs?”. --- # How do I improve cache hit rates and lower API costs? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/chat_prompt_cache_efficiency/ ## What do providers reuse? Every turn can carry your assistant prompt, tool definitions, reference materials, and prior messages. When a provider matches a cached prefix at the start of your request, it can reuse the computation for that portion of the input — typically reducing input token costs and helping replies start sooner. The model still generates a fresh answer, and cached input tokens still count toward the context window length. The official DeepSeek API enables context caching by default, so you can apply the steps below right away. Whether a request hits the cache depends on the model's caching rules, how long the matching prefix is, and whether the cache entry is still alive. [DeepSeek Context Caching](https://api-docs.deepseek.com/zh-cn/guides/kv_cache/) · [OpenAI Prompt Caching](https://developers.openai.com/api/docs/guides/prompt-caching) · [Claude Prompt Caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) · [Gemini Context Caching](https://ai.google.dev/gemini-api/docs/caching/) ## What to do in Cube 1. **Stay in the same chat for the same task.** Use the same provider, model, and assistant on the same source material, keeping your web search, tool, and skill settings steady. Wait for the current reply to finish, then ask related follow-ups in the same conversation to reuse earlier context while the cache is still warm. Start a new conversation when switching to an unrelated project or topic to avoid dragging irrelevant history along. 2. **Put stable rules and shared material first, and per-turn changes last.** Store long-term roles, formatting, and rules in **Assistants → Edit assistant → Prompt**. Provide shared materials once near the start of the chat, then send only new questions and new details afterward — for example, share a contract once, then ask “What risks are in the payment terms?” followed by “How should we revise the termination clause?”. When correcting something said earlier, add the correction in a new message; editing an earlier message shortens the reusable prefix. 3. **Avoid churn at the start of requests.** Try not to place minute-by-minute variables like `{{current_clock}}` in your assistant prompt; put per-turn dates, project IDs, or temporary rules in the current user message instead. Assistant memories keep the system prompt completely static under **On-demand** reading, and under **Auto sync** they freeze the first-turn baseline and append new or edited memories at the tail — only deleting a memory or compressing context refreshes the prefix. 4. **Trim long chats down to what the task actually needs.** Open **Compress context** from the top-right More menu of the chat screen, and enter start/end message numbers, pick a preset, or drag the two handles to decide which range becomes a summary. Keeping the original opening messages intact helps continue reusing the prefix cache, though actual hits depend on the provider. For long materials, you can also reference only the relevant sections and let the model read the rest on demand. The highest hit rates happen when most of the current turn's input is cached history and the new question is short. For quick one-off tasks, just send a short prompt directly — padding extra text only increases token usage. ## Which in-chat changes invalidate the cache? Within the same conversation, the actions below change the request sent to the model and may cause the next turn to lose part or all of its cache hit: - **Enabling or disabling tools.** For example, toggling file tools or an MCP server in the **Tools** menu can change the tool list sent to the model. - **Switching reasoning effort.** For example, changing from Default to High, or turning thinking on or off. Some models include reasoning configuration in cache matching. - **Switching web search mode.** For example, turning on **Built-in search** from off, or switching between built-in search and an external search service. The search tools or prompt injected for the model may change. The next turn may have to reprocess part or all of the conversation history, temporarily increasing input costs and time to first token. The exact impact depends on the provider and model. When working continuously on a single task, pick your tools, reasoning level, and web search mode before starting; if you need to change them midway, adjust once and continue asking under the new configuration so subsequent turns can warm the cache again. [Claude's cache invalidation rules](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#what-invalidates-the-cache) ## How do I verify cost savings? Test three turns of a real task on your usual model — for instance, send a document with a first question, then ask two follow-ups. After each turn, tap the **AI** badge in the bottom-right corner of the reply bubble to check the cached token count and hit rate under **Input**, while noting total input and output usage. When tools trigger multiple model calls, a single reply accumulates usage across all of those requests. Open **Session Stats** from the chat's top-right More menu to see cumulative usage for the entire conversation. To pinpoint which exact section changed and broke the cache, enable **Request debug mode** in **Settings → Connections & advanced → Diagnostics & Crash Logs**, then inspect cross-turn cache-break diagnostics via **More → Request details** on an assistant message. A brand-new first turn, a prefix shorter than the model's minimum threshold, or too long a gap between turns can all leave the cache row hidden. Some providers or relays do not return cache metrics at all — check your provider dashboard in that case. Compare total costs across similar tasks before and after tuning, and always treat your provider's actual billing statement as authoritative. --- # How do I use the prompt library? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/chat_prompt_library/ Tap **+ → Prompts** in the chat input box. The Prompt Library includes both built-in and custom entries; search by name or purpose, and switch between All, Favorites, and Recent. Tapping an entry appends its text to the input box so you can edit before sending — it does not send automatically. The edit button at the end of each row lets you view, edit, or delete an item, and built-in entries can be copied as custom ones; saving or deleting refreshes the list as soon as you return. Favorites and Recent are shared across assistants, Incognito chats are excluded from Recent, and your library is included in app backups. In Settings under **Export Data** or **Nearby Transfer**, open the **Prompt Library** category to search, select one or more prompts, preview their text, and export. On the receiving device, choose which prompts to restore from the import checklist; duplicate entries can be skipped, replaced, or kept as copies without affecting unselected items. Name, purpose, body, category, and favorite status are restored together, new items append to the local list, and built-in prompts import as editable custom copies. When **Cloud sync** is enabled, the Prompt Library syncs name, purpose, body, category, favorite status, sort order, and recent history per item — including prompts restored from imports. Changes to different items merge independently, while concurrent edits or deletions on the same item follow the prompts on the sync screen. Sync preserves original item identity so built-in prompts stay built-in rather than becoming custom copies, and deleted built-in prompts do not reappear when you reopen the library. Favorited entries appear first and can be moved up or down within their group with the order saved. Search **Toolbar order** or **Show prompts** in Settings to open chat toolbar settings, turn on **Show Prompts in toolbar**, adjust its position, and tap Save in the top-right corner. The shortcut is hidden by default and remains accessible via the `+` panel when disabled. Prompts inserted here apply to your current draft only rather than auto-injecting on every turn. For persistent rules across an entire conversation, configure the assistant's **Prompt** settings instead. --- # Incognito Chat > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/incognito_chat/ ## Overview Incognito Chat is a conversation that exists only in the moment: it never enters your chat history, never writes to assistant memories, never syncs or backs up, and is destroyed permanently when you leave. It is ideal for sensitive one-off questions. ## How to start There are three ways to enter: 1. Tap the dashed chat-bubble icon in the top bar of the conversation list (to the left of Search). 2. Long-press the bottom-right **New chat** button for about 1.2 seconds. While holding, Cube appears with a progress ring — **Incognito Chat opens once the progress ring completes**; release early to cancel. 3. Open the chat screen's top-right menu → **Incognito Chat**. If an Incognito Chat is already in progress, tapping any entry returns to it rather than starting a second one. ## What is turned off in Incognito - History: sessions and messages are never written to the database. - Assistant memories: neither read nor written. - Drafts, automatic titles, and suggested follow-ups: all disabled (which also avoids sending full text twice extra to the provider). - Token usage accounting: excluded from usage stats. - Cloud sync and backups: nothing is written to local storage, so nothing is synced. ## What works as usual Model switching, web search, Knowledge Base search, context compression, and the message map still work, while tools follow each tool's session-scope rules. Incognito sessions do not create a persistent workspace, so they cannot generate Word, Excel, or other deliverable workspace files — switch to a regular conversation when you need output files. Attachments and AI-generated images use temporary cache and are deleted automatically when you exit. ## Exit and destruction - Leaving an empty session destroys it silently. - Leaving a session with messages prompts once for confirmation; after confirming, the page dissolves and wipes everything cleanly. - Open the **Incognito Status** panel to verify on the spot which protections are active, check how many files are in temporary cache, or tap **End and destroy** in one step. Two entries: chat screen top-right menu → **Incognito Status**, or tap **View status** on the right side of the incognito banner. ## Things to keep in mind - Messages are still sent to your configured model provider (as well as enabled search and tools) and handled under their respective policies — Incognito is a local guarantee, not one on the provider's servers. - Screenshot protection and background screen masking are enabled by default and can be toggled off temporarily inside the Incognito Status panel. - If the operating system terminates the app, the incognito session is wiped as well — this is by design, not a bug. --- # Assistants That Require Authentication > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/private_assistant/ ## Overview Add an authentication lock to a specific assistant. Once enabled, switching to that assistant requires passing system authentication (lock screen password, fingerprint, or face recognition) via the unified system authentication component — the app never accesses your password or biometric data. Unlike Incognito Chat, which leaves no trace, this **keeps chat history as usual while requiring verification to enter**. It is well suited for personal journals, health consultations, finances, and other conversations you want to preserve long term without letting someone casually browse them. ## How to enable Open **Assistants → Edit assistant → Basic**, and turn on **Require authentication** under **Chat Behavior**. This switch is unavailable if your device has no lock screen password — set a lock screen password in system settings first. ## When verification happens - Verification is required **once** the first time you switch to that assistant after launching the app; after passing, switching back does not prompt again as long as the app has not been terminated by the system. - If the app is fully closed or terminated by the system, entering again requires re-verification. - If you were on that assistant when leaving the app, the next launch automatically returns to the default assistant instead of landing directly inside it, and the conversation list browsing scope resets to **All chats**. - Selecting the assistant from the conversation list's assistant picker also requires passing verification first; if verification fails or is canceled, the picker remains open. - If a desktop card is bound to that assistant, tapping the card also requires verification first, as does opening one of its conversations from a notification. ## Additional protections - Conversations belonging to this assistant do not appear in the **Favorites** hub. - Its conversation list is hidden until verification succeeds. ## Things to keep in mind - This acts as an entry gate — chat content inside the local database is not encrypted separately. It protects against casual snooping, does not replace device-level encryption, and cannot prevent forensic extraction. - If verification fails or is canceled, you stay on your current assistant without switching. - Backups and restores include this toggle, so protection stays active after restoring on a new device. - If you later remove your device lock screen password, the assistant cannot be opened; setting a lock screen password again restores access without losing any data. --- # Suggested follow-up questions > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/suggestions/ ## Overview When enabled, AI displays up to 3 suggested follow-up questions above the input box after each completed reply. ## How to enable Open **Settings → App Settings → General**, and turn on **Suggested follow-up questions** under **Chat interaction**. ## Model source The model used to generate suggestions is configured under **Default Models → Suggested Questions**. Tap any suggested question to follow up right away. ## Generation rules Suggested questions follow the current app language. Generated output is cleaned of numbering, Markdown, quotation marks, thinking tags, and other extra formatting, displaying at most 3 items. --- # Move chat to assistant > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/move_assistant/ ## What it can do Move the current conversation under another assistant to organize chat ownership or continue a thread with a better-suited assistant. ## How to use In the conversation list, long-press a conversation (or tap its More button) and choose **Move Chat**, or open the chat screen's top-right More menu → **Move Chat**, then select the destination assistant. To move multiple conversations at once, open **Select chats** from the conversation list title menu, select them, and tap **Move** at the bottom. ## What happens after moving - Only the conversation's ownership changes. - Existing messages are not rewritten; earlier replies stay exactly as originally generated. - Subsequent regenerations and follow-up turns use the new assistant's system prompt, default model, tools, and memories. - Memories do not move along with individual chats. To transfer assistant-local memories, go to **Assistants → Edit assistant → Basic → Memory → Migrate or clone memories**. ## Viewing chats from the Assistants tab Tapping an assistant card on the Assistants tab opens that assistant's conversation list so you can quickly review and continue its history. Tap the circular `+` button on the right side of the card to start a new chat directly; to adjust assistant settings, tap the circular edit button on the right or long-press the card. The top “Continue chatting” strip lets you jump back to your current assistant quickly. ## Automatic identity icons The Assistants tab and conversation list automatically generate identity icons (initial characters with consistent colors, etc.) so items are easy to tell apart at a glance. You can still set a custom avatar in the assistant editor to override the automatic icon: choose from a gallery image, an image link, or a QQ Avatar. All three options support animated GIFs (for QQ, that account itself must use an animated avatar; when picking an animated image from Gallery, select the original image to preserve animation). ## Per-assistant reasoning display While thinking is in progress, only a single line (“Deep thinking” followed by the latest sentence) is shown by default; tap that line to expand full reasoning, and once thinking finishes it collapses automatically into “Thought for [duration]” plus the first summary sentence. Under **Assistants → Edit assistant → Basic**, turn on **Expand reasoning by default** so that assistant automatically expands its full reasoning stream while thinking and still collapses automatically once finished. This setting applies only to that assistant and is off by default. --- # How do I use speech and custom voices? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/speech_readaloud/ ## Open read-aloud settings Configure read-aloud in **Settings → Voice → Read aloud** (or search “read aloud”, “TTS”, or “MiMo” in Search Settings). System read-aloud uses on-device speech synthesis; Xiaomi MiMo, DeepSeek, and custom voices are open to all users using their own API keys. Once enabled, select Read aloud from any assistant reply's message actions. Turn on **Read new replies automatically** to have every completed reply read aloud without tapping manually. Auto-read runs only while that chat screen is open and the app is in the foreground; replies stopped mid-generation are skipped. Once the master Read aloud switch is on, tap **⋯ → Auto read aloud** in the top-right corner of the chat screen to toggle auto-read at any time. Turning off the quick switch stops the current automatic playback; you can still play any single reply manually from its message action menu. ## Configure MiMo Switch to **MiMo** and enter your official Xiaomi MiMo API key in service settings (note: MiMo is a Mainland China cloud service; the app uses its official endpoint automatically, with no need to add a chat provider or pick a model). Text to be read aloud is sent to the cloud and billed according to Xiaomi's platform pricing. - **Preset voices**: Choose MiMo Default, Bingtang, Moli, Suda, Baihua, Mia, Chloe, Milo, or Dean. - **Voice design**: Describe the voice you want in plain text. - **Voice cloning**: Provide your own voice sample or one you are authorized to use; this mode uploads the sample to Xiaomi MiMo. You can adjust tone and speaking style, preview first, and then save. The app automatically selects the matching speech endpoint for your chosen voice mode. Changing settings or leaving the preview screen ends the current preview. ## Configure DeepSeek Switch to **DeepSeek** and choose **Stella** (female) or **Tide** (male). If you have already configured and connected an official DeepSeek API key under Provider Management, both Read aloud and Voice input automatically reuse it without re-entering; if you want separate billing, enter an independent key in Voice settings to override it. Streaming playback is used by default, and speech rate adjustment, voice design, and voice cloning are not available. Independent keys are stored in local secure storage. ## Voice input In **Settings → Voice**, use the top segmented switcher to toggle between **Voice input** and **Read aloud**. Switch the input engine between built-in dictation and DeepSeek; input and read-aloud configurations and API keys remain managed independently, so turning off read-aloud does not affect voice recording. DeepSeek inserts transcribed text back into the input box without auto-sending or queuing; you can cancel while waiting, re-record unmodified results, and send manually after checking. ## Playback and caching During MiMo or DeepSeek playback, a compact player bar appears above the chat input area. Tap to expand it to skip backward or forward 10 seconds, scrub the progress bar, or switch voices; closing the expanded panel keeps audio playing, whereas tapping the close button on the player bar stops playback. The progress bar covers audio generated so far and displays the full duration once generation finishes. Switching voices regenerates audio from the beginning and may incur new service charges. System read-aloud uses the system playback panel. Once playback starts in a conversation, both system read-aloud and cloud engines (MiMo and DeepSeek) continue playing in the background or after the screen turns off, and can be paused or resumed from the system media controls. Leaving the current conversation, switching chats, or closing a settings preview stops playback. If you prefer to keep the screen awake while listening to long replies, you can also turn on **Keep screen on** under **Settings → General preferences → Reading experience**. Long replies are split into segments automatically, and enabling streaming playback lets audio start playing as it arrives. Replaying identical text with identical settings within the current session reuses cached audio; changing the text or speech configuration may trigger regeneration. Cached audio is not a permanent backup and is not guaranteed to remain playable after restarting the app. If there is no sound, check system media volume, the read-aloud switch, and your selected service settings first, then verify connectivity with a preview. If the service reports an error, check your quota, model, and credentials as prompted. --- # How do I pin frequent conversations? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/conversation_pin/ ## Overview By default, the conversation list groups chats by recent activity into “Today”, “Yesterday”, “Last 7 days”, and “Earlier”. If an important conversation needs to be checked repeatedly over several days, **Pin** it so it stays anchored in the **Pinned** section at the very top instead of sinking down over time. ## How to use - **Pin from the conversation list**: Swipe right on a conversation card and tap **Pin** (shows **Unpin** when already pinned), or long-press the card or tap its **···** More menu and choose **Pin / Unpin**. Pinned cards display a small pin icon to the right of the title. - **Pin from the chat screen**: Open the conversation, tap the top-right **···** More menu, and select **Pin chat** (or **Unpin**). - **Multiple pinned chats and ordering**: You can pin multiple conversations at once. Within **Pinned**, conversations are sorted in reverse chronological order by pin time and latest message activity — a newly pinned older conversation jumps straight to the top, and an already-pinned conversation with a new message automatically floats to the top of the Pinned section. - **All chats and individual assistants**: Both the All chats view, per-assistant filtered views, and Cube Agent Web support the Pinned group with real-time sync. ## Relationship with Favorites, Archive, and Backup - **Independent from Favorites**: Favorites are for marking and protecting important conversations (guarding against accidental deletion and gathering them in Favorites), while Pin simply fixes frequent conversations to the top of the list. Both can coexist and neither replaces the other. - **Automatically unpinned on archive or delete**: Archiving or deleting a pinned conversation automatically removes its pin status; renaming, sharing, or moving it to another assistant keeps it pinned. - **Backup and migration**: Full app backups and selective export/import preserve pinned status; Incognito chats cannot be pinned. --- # How do I archive and restore conversations or assistants? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/conversation_archive/ ## Where to archive Select **Archive chat** from the chat screen's More menu, or enter multi-select in the conversation list and archive selected chats. Archiving keeps all chat history while tucking temporarily unused sessions out of sight; if a chat was pinned, archiving automatically unpins it. ## View and restore Switch the conversation list's archive filter to view archived conversations, then choose Restore; you can also tap Undo on the toast right after archiving. Restored conversations reappear in their respective lists. Batch actions also work in the Archived list: tap the multi-select button on the right side of the filter bar, check items individually, select all, or tap a group header to select an entire time group, then choose **Restore** or **Delete** at the bottom. Favorited conversations are skipped during batch delete. Opening an archived conversation to continue chatting leaves it archived until you manually restore it. Archiving does not delete messages or compress context — to reduce history sent in future requests, use **Compress context** or **Clear context**. Deleting removes the conversation permanently, so verify the confirmation prompt carefully. ## Archive an entire assistant Open the target assistant's menu in the Assistants list and tap **Archive assistant**. The assistant and its conversations are tucked away from daily lists. When you want to use it again, go to **Assistants → More → Archived assistants** and choose **Restore assistant**. Conversations you archived individually earlier remain accessible in the archived conversations list. --- # How do I compress context? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/context_compression/ ## How to compress context Open the chat screen's top-right More menu and select **Compress context**, or enter from the **Context usage** panel. The selected middle span of messages is turned into a summary, while original messages on both sides continue entering subsequent requests in their original order; all original messages and images remain fully viewable in your chat history. Three synchronized ways to pick the compression range: - **Exact message numbers and fine-tuning**: Type message numbers directly into **Start message** / **End message**, or tap the **− / +** buttons beside them to adjust one message at a time without dragging handles in long chats. When a “Context cleared” divider exists, numbering aligns automatically to actual message positions after the divider. - **Quick range presets**: Switch in one tap between **Smart pick**, **Keep last 10**, **Keep last 20**, and **All**. Conversations with 6 or more messages also offer **First half** (which automatically changes to **Continue first half** once an earlier summary exists, selecting the first half of the remaining uncompressed range in one tap). - **Dual-slider drag**: Drag the two handles below to fine-tune the span; the track endpoints show the earliest and latest compressible message numbers. Below the card, single-line previews of the selected start and end messages (**Start #N** / **End #M**) and **Estimated post-compression usage** update live so you can double-check boundaries without leaving the panel. **Estimated post-compression usage** includes uncompressed messages on both sides, the summary, and fixed prompts; actual usage still depends on summary length, attachments, and the provider's tokenization. Very long chats support **segmented compression**: even if compressing one segment leaves total usage above the trigger threshold, it completes and saves immediately; when you later select further forward or tap **Continue first half**, Cube automatically reuses and merges the existing summary and sends only newly added messages to the model rather than resending already-compressed content. If compression fails, narrow the range and compress in stages; if the selected range still exceeds the compression model's window, pick a larger-window model under **Advanced** for that run. Whenever the assistant needs to verify details, it can search and read the compressed original messages on demand. ## Clear context To continue chatting from a specific point in the current conversation, open that message's More menu and choose **Clear up to here**. A “Context cleared” divider appears beneath it, and subsequent sends include only turns below that divider. To start fresh from the end of the session, select **Clear context** from the chat screen's top-right More menu. Messages above the divider remain readable, searchable, and copyable. You can clear multiple times; the latest divider determines the active starting point. Tap **Undo** on the divider to restore prior context. If messages already exist below the divider, Cube asks to confirm before undoing; when the divider sits at the end, you can also undo directly from the top-right More menu. Regenerating an older reply above the divider still uses its original context at that time; regenerating a user message above the divider restarts the chat from that message and removes the divider along with later messages. Compressing after clearing applies only to messages below the divider. ## Auto-compression and trigger thresholds Turn on **Auto-compress context** in **Settings → App Settings → General** (off by default); each conversation can also toggle it individually in the **Context usage** panel. When enabled, Cube compresses automatically near the trigger threshold before sending or between tool steps, then continues without redoing already-executed actions. During pre-send compression you can tap **Skip and send now** to skip just once. Tapping Stop halts the entire send while keeping your message in the input box. If auto-compression does not complete, the send proceeds with the original context and will not auto-compress again for that turn. Auto-compression thresholds support two levels of control — **global default** and **per-model override**: - **Global compression trigger**: In **Settings → App Settings → General → Compression trigger**, choose **Auto** (~80% of the model's real context window), **By percentage (%)** (30%–95%, scaled dynamically to each model's window and bounded automatically by usable capacity), or **By usage (K)** (32K–2000K — e.g. 200K or 500K — triggering when context reaches that size and keeping post-compression usage below it; falls back to Auto if set higher than the model's automatic trigger point). - **Per-model trigger threshold (optional)**: Open **Settings → Models & usage → Provider Management → choose provider → edit chat model → Auto-compression trigger threshold**, or tap the **Trigger threshold** row in the chat's **Context usage** panel to jump straight to that model's editor. Three modes are available: **Follow global** (default, keeps existing behavior), **By percentage (%)** (30%–95%, with quick presets at 60%/70%/80%/85%/90% calculated against the model's actual context window), or **By tokens** (at least 8K; supports values like 64K, 200K, 800K, 1M, or exact integers, along with recommended presets for the current window). - **Priority and safety ceiling**: When a per-model trigger threshold is set, that model follows its own setting first instead of the global trigger. Whether set by percentage or tokens, the actual trigger is automatically capped within the model's usable capacity after reserving reply space and a safety margin, with a live preview bar in the model editor. If system prompts, Knowledge Bases, and tool definitions already occupy a large share of the window, setting the trigger too low may prevent meaningful reduction — raise the threshold in that case. - **Inspect the active value**: Check the active trigger threshold and its source badge (**Model override** / **Global ratio** / **Global cap** / **Window default**) inside the auto-compression section of **Context usage**; when auto-compression is enabled, the window progress bar also marks the trigger position. When auto-compression is off, Cube only reminds you: suggesting compression at 70% usage and reminding again when approaching the space needed to run compression. Models without a reliable context window do not auto-compress — fill in the window size in model settings or compress manually. ## Context usage and token units In the **Context usage** panel, see how much of the window is currently estimated for conversation turns, tools, images, and attachments. Any portion of actual input usage that cannot yet be categorized is shown separately. When one reply runs multiple tool-calling rounds, each round's usage counts toward actual consumption. Check current window usage to gauge how much more content fits. Context window capacity in the model editor accepts exact integers as well as K/M units: **1K = 1,000 and 1M = 1,000,000 tokens** (such as 272K, 1M, or 1.048576M). The exact integer is stored — an existing `1,048,576` will not change into another number just because it displays as `1.05M`, and editing other fields like the model name will not overwrite capacity. Enter the provider's real total window rather than the max output limit. The Context usage panel also displays the last request's complete JSON payload size, image count, and inline encoded image size (failed requests included). This differs from the token window and updates on the next send after compression. When a request payload is too large (HTTP 413 or exceeding the local single-request size cap), the app automatically runs a silent two-step recovery so you do not have to manually pick images to delete: first, it omits pixel data from earlier historical images in this request (keeping the current turn's new images while leaving original images and chat history untouched; if the **Read image** tool is enabled, placeholders include resource references so the model can view them again on demand) and retries while tightening the future historical image budget for this conversation; if no earlier historical images remain to drop and the request is still over the limit, the second step automatically reduces the resolution and size of current images and retries once more. When a compression request itself hits HTTP 413 or a size limit, Cube performs bounded convergence within a single request (retrying first with text-only history without images; if default or auto compression still exceeds the limit, retrying once with only the target span to compress — never silently splitting into multiple uncached background requests). If it still exceeds the provider's limit, tap **Compress context** right on the error card and compress in stages using **First half / Continue first half** or smaller start/end ranges so every step stays a single controlled request; alternatively, open a new conversation to process in batches. Changing models under the same provider does not necessarily raise its payload size limit. ## Per-conversation compression instructions Expand **Compression instructions** in the compression panel (optional; leave blank to use default rules) to note details that should be preserved first — such as character relationships, emotional shifts, or code specifics — up to 2,000 characters. Tap **Save instructions** to save separately; tapping **Start compression** also saves first. Closing the panel without saving discards unsubmitted edits. Instructions apply only to the current conversation, remain intact after switching models under **Advanced**, and carry forward to later compressions; clearing and saving restores defaults. Edits affect only the next compression — they do not rewrite existing summaries and cannot recover details omitted from previous summaries. Custom instructions add preservation priorities without replacing foundational rules like staying faithful to original messages and never fabricating facts. ## Viewing summaries and interruptions While compression is running, progress appears above the input box and you are free to chat elsewhere; once complete, tap **View summary** in the prompt, or open **top-right More menu → View context summary** anytime later. The summary condenses prior context for subsequent turns and may omit fine details — if you need to verify something, simply ask the assistant and it can inspect the original messages on demand. If most context usage sits outside chat history (for example, large mounted Knowledge Bases or many tools) and compression frees little space, Cube lets you choose **Keep anyway** or **Discard this summary**. Discarding leaves context untouched, though token usage from the attempt still counts. Failures or cancellations never overwrite existing context with an incomplete summary; check the error prompt and retry. If the OS terminates the app process, an in-flight cloud request is not guaranteed to be canceled, and background execution is governed by OS limits. ## Models and costs By default, compression uses the current chat's model and reasoning effort to maximize provider cache reuse. Switch to **Custom model** in **Settings → Default Models → Context compression** to pick a specific provider and model; the **Context usage** panel displays the active configuration. The custom model receives the history to summarize plus any existing summary, so configure it with a sufficiently large context window. Once a custom model is selected, you can turn on **Retry with chat model if compression fails** below (off by default). If the custom model is unavailable, runs out of window, or fails, Cube retries once with the current chat model — sending the history to the chat model's provider and incurring actual request charges there. Total compression wait time is capped at **15 minutes**; when retry is enabled, the first attempt gets up to 12 minutes so time remains for the retry. Tapping Stop or Skip ends the attempt immediately, and existing chat data stays stored locally. ## History message count limit If you set a **Context message count** cap in assistant settings, outgoing turns (including tool-calling chats) truncate older history to that cap; auto-compression will not re-include earlier messages already excluded by the cap, respecting the sending scope you configured. For manual compression, expand **Advanced** at the bottom of the panel to pick a different model and reasoning effort for that run only. Using another model follows that provider's pricing and caching behavior. Compression always keeps original messages intact. The manual entry may be unavailable while a reply is generating, another compression job is active, or there is nothing eligible to compress. --- # Attachments and on-demand reading > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/attachments/ ## Upload as usual and tell AI what you want Tap the **plus (`+`)** button next to the input box to add images or documents, then ask as usual. You can also drag and drop text or images from the transit station, gallery, or web pages: images become attachments and text fills the input box. ## How uploaded attachments are processed Parseable documents attached in the input box are parsed by default and their extracted text is sent with the message; vision models receive images directly, while non-vision models fall back to your configured auxiliary vision model or on-device OCR. Whether file tools are enabled does not alter this behavior. Documents that are parsing, failed, or encrypted display their status — wait for parsing to finish before sending, and resolve any error if full extraction failed. ## Are camera photos saved to the system gallery? Go to **Settings → General → Input & interaction → Camera** and toggle **Save camera photos to system gallery** (off by default). When off, photos taken in chat are kept only as in-app attachments and temporary capture files are cleaned up after processing; when on, the system camera flow saves them to your gallery. This setting affects only future photos taken inside chat — it does not remove existing gallery photos or change picking images from the album. ## Edit and annotate images before sending After adding an image to the input bar, long-press its thumbnail and choose **Edit** (or open fullscreen preview and tap Edit on the bottom bar) to open the unified image editor for freeform cropping, common aspect ratios, 90° rotation, freehand brush drawing, and box annotations in one place; confirming replaces the pending image. The original image is preserved so you can **Revert** when editing again, and navigating back discards the current edit. You can also turn on **Edit photos right after capture** under **Settings → General → Input & interaction → Camera** to open the editor automatically right after taking a photo in chat for quick cropping and markup; this toggle does not affect **Save camera photos to system gallery**. ## File formats, ZIP archives, and legacy PPT The file picker lets you attach any raw file, though attaching a file does not mean the model can interpret every format. Both legacy **.ppt** and **.pptx** presentations support text extraction for summarization and Q&A, though extracted text does not preserve slide layouts or animations. PDF, Office, EPUB, and similar files remain subject to parser capabilities, file size limits, and model context limits. ZIP archives are saved as raw original attachments. With **File operations** enabled, you can ask AI directly to list files inside a ZIP or extract it; you can also tap **Add to conversation files** from the input box and select **Extract to folder** from the ZIP's More menu. Unknown or non-extractable binary formats are also kept as raw files. Sent files can be browsed read-only under the input files section of the current conversation's workspace, where they can be previewed or exported by format. ## How files in the workspace are read **Image sources and upload**: Tapping **Photos** opens your local gallery by default. On devices that support cross-device import, **long-press Photos (or right-click) → Import from another device** to use system-provided remote gallery, camera, or scanner sources (available devices and actions are determined by the OS). When sending images through the official DeepSeek API, Cube uploads new images and reuses still-valid uploaded images. Whether the model understands images depends on the selected model. Images under Generated Files show only filename and size — tap the row to preview — while workspace images embedded in reply text still render inline. Explicitly enable the tools you need in the chat's **Tools** panel: **File operations** lists the workspace, reads documents, and edits files; **Read image** inspects images at known paths; **List resources** discovers items in mounted Knowledge Bases and historical image records (it does not list workspace files or raw session attachments). When you already know a path or resource ID, AI can read it directly without listing first. Documents in the workspace are parsed only when actually read, and images are analyzed only when called. Uploading attachments never auto-enables tools; enabling a mounted folder in the current chat automatically turns on **File operations** and notifies you. Folders you already authorized still need to be enabled under **Mounted Folders** on the toolbar — disabled folders are never exposed to the model. You can also adjust them from **+ → Folders**; folder authorization applies only to the current device. Reading via tools still consumes context and tool-call turns depending on the task and file. Normal attachment parsing, image recognition, and history handling retain their original workflow, with no separate attachment-loading mode toggle. What you can customize are **recognition and parsing methods**: - **Images**: Open **Settings → Models & usage → Default Models → OCR** to configure an auxiliary vision model and the “Prefer vision LLM” preference. When a model delegates to the auxiliary vision model, it can specify what to inspect based on your question; this is not an attachment-loading mode switch. - **PDF**: Open an attachment's parsed text preview and choose **Change parsing method**. Once you verify and adopt the new text, subsequent reads use the updated version — this also works on already-sent PDFs (wait for an active reply to finish first). - **Document parsing service**: Manage services in **Settings → Models & usage → Default Models → Document parsing**. Picking a service does not upload files immediately; what gets uploaded is stated right below the selected service. ## Will this change existing workflows? - **Regular chat**: Type and send as usual with no extra steps. - **Images**: Vision-capable models see attached images directly with your message and can re-inspect full images or details on follow-ups. Non-vision models use your configured auxiliary vision model or on-device OCR, with accuracy depending on the chosen method. - **Documents**: Uploaded attachments parse by default and travel with the message; documents inside the workspace parse only when an enabled tool reads them. Oversized, corrupted, or unparseable files report the reason instead of silently sending incomplete text as the full document. - **Incognito / temporary sessions**: Documents and images continue preparing content directly, respecting existing OCR and parsing settings. - **Video**: The dedicated gallery video picker and timestamp frame extraction have been retired. Videos attached via the file picker are saved only as raw files without visual or audio understanding — share screenshots or text descriptions when you need AI to interpret video content. Legacy dedicated video attachments are filtered out on load or import. ## What happens when reading or sending many images over time? Image input is constrained by model vision capability, context capacity, image count, and request payload size. A small number of historical images are sent in full without hurting normal chat or prefix caching. When accumulated historical user images (including long-image slices) grow large in size or count, Cube automatically replaces earlier turns' images with text placeholders before sending — prioritizing the current turn's new images and the most recent historical images to avoid payload-too-large errors. If the actual send still hits HTTP 413, Cube automatically omits remaining older historical images and optimizes current image resolution before retrying, with no manual pruning required. This omission affects only outgoing API payloads — original images and chat history stay completely intact locally and are never deleted. With the **Read image** tool enabled, the model can use resource references inside placeholders to inspect earlier images again on demand; without the tool enabled, you can keep discussing from prior context or re-attach a specific image whenever fine details matter. Reading images and auxiliary OCR still consume model calls and context; exact pricing and limits depend on your chosen provider. ## Swipe through images in a chat and jump to the source message - Tap any image in chat history (generated images, attached images, or tool output images) to open fullscreen preview, where you can swipe left or right to browse every image across the entire conversation without backing out one by one. - Tap **Locate message** at the bottom of the preview to exit and scroll straight to the message containing that image (highlighted briefly), making it easy to jump back into context. ## Preview original files - **Before sending**: Tap a pending file attachment to open its text preview panel, then tap **Preview original file** to open the source file. Having no extracted text yet before parsing finishes does not necessarily mean the attachment cannot be sent. - **In chat history**: PDFs open their parsed text preview first, where you can change the parsing method or tap **Preview original file**; other files open directly in their supported viewer. While multi-selecting messages, tapping selects the message instead. - Markdown, plain text, and supported code files preview in-app; PDF, Office, and similar formats use system preview or “Open with”, depending on device support and installed apps. Opening an original file is only for your own viewing — it does not mean the model has read it and does not send it automatically. If the app reports that the original file is missing or inaccessible, add it again; legacy entries that retained only extracted text cannot restore the original file. --- # Where should large files and materials go? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/where_to_put_files/ ## Know the differences first - **Input box attachments**: Parsed immediately on upload, with the full extracted text sent alongside your message and carried through subsequent turns. Best for concise documents you want AI to read from cover to cover, with no tools required. - **Conversation files**: Stored in the current conversation's File Space so AI reads them only when needed — and only the relevant sections — instead of stuffing the whole file into context. Ideal for large spreadsheets, long reports, and full project ZIP archives; importing is free. - **Mounted folders (Pro)**: Point directly to existing directories on your device without copying files into the app; AI likewise reads on demand. Best for continuously updated reference folders. - **Knowledge Base**: Stored long term and reusable across multiple chats and assistants, retrieving relevant snippets by query. Best for frequently referenced materials. ## Put large files in Conversation files 1. Open **Conversation files** from the chat screen's top-right menu and tap **Import file**. ZIP files stay intact as archives; when you need to unpack one, choose **Extract to folder** from the ZIP's More menu. 2. Enable **File operations** for this conversation via **Tools → Choose tools** in the input bar. 3. Tell AI directly which file to work on — for example, “Read the second sheet of sales_data.xlsx and summarize by month.” AI opens files on demand, and PDF, Word, Excel, and PowerPoint documents are parsed only when read. ## Notes - Conversation files require a model that supports tool calling; without **File operations** enabled, AI cannot see these files. - When you need spreadsheet calculations, cell- or formula-level processing, or creating/editing Office documents, enable **Code Workbench** as well. To edit existing Word, Excel, or PowerPoint files, importing the original file into Conversation files works best. - Conversation files belong only to the current conversation. To share files across chats, use **Shared Files** (adding new files requires Pro) or a Knowledge Base. - Files already sent as input attachments continue carrying their full text in the chat; if context is filling up, compress context or start a new chat using Conversation files instead. --- # Document parsing and OCR > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/documents_ocr/ ## Where to parse PDFs In chat, tap a pending or sent PDF attachment to open its text preview, then select **Change parsing method**; **Preview original file** inside the text preview lets you compare against the source PDF. Once a sent PDF adopts a new result, AI uses the updated text on future reads without rewriting earlier replies (wait for an active reply to finish first). Knowledge Base import previews and documents that kept their original PDF can also open the **Document parsing** page. Legacy documents that saved only extracted text need the PDF provided again before re-recognizing. Each of the three methods appears as a card; the method used for the current text is labeled **Current**, and the next stronger tier is selected by default: - **Re-extract text**: Best for digital PDFs; extracts the embedded text layer locally without going online. - **On-device OCR**: Best for scanned or photographed PDFs; renders pages and recognizes text offline on device for free. - **Parsing service**: Choose a configured MinerU, PaddleOCR, or DeepSeek OCR official cloud service, or a compatible service/vision model, for better accuracy on tables, formulas, and complex layouts. ## Configure document parsing services **DeepSeek OCR**: Select DeepSeek OCR and enter your open-platform API key — no chat model needs to be added. This version supports full PDFs up to 100 MiB and 1,000 pages per file. Review results page by page after recognition finishes; layout control markers are not written directly into the body text, and any truncated page displays an incomplete notice. Stopping the wait or losing connection does not guarantee server billing stops, unsaved results cannot be queried later, and the app does not re-upload automatically. ## MinerU or PaddleOCR Open **Settings → Models & usage → Default Models → Document parsing**, enter service management, and tap **Add document service**. Choose an official service (MinerU and PaddleOCR official cloud services primarily serve Mainland China; compatible APIs or your own vision models work anywhere), enter your API Token or AI Studio Access Token, pick a model, tap **Save service**, and set it as default if desired. You can also select **Parsing service** on the Document parsing page and tap **Manage services** or **Add service**. Selecting or saving a service does not upload documents. Once a service is selected, the line below clearly states where files will be uploaded, whether the entire PDF or page images are sent, and whether charges may apply; tapping **Start parsing** starts immediately with no extra confirmation screen. Official cloud services accept the original PDF directly — even if you select only certain pages, the entire original file is uploaded. Unencrypted (`HTTP`) endpoints are flagged in red. Cloud services may incur charges, with quotas and availability determined by the provider. ## Review and adopt results After new text is generated, check page counts, content, and completeness notices — comparing against the original if needed — before tapping **Use this result**. Partial extraction does not guarantee full coverage; failures or cancellations never automatically overwrite old text. After adopting updated text in a Knowledge Base, rebuild the document's semantic index. ## Switch parsing methods Tap **Switch method** on the result page to pick Re-extract text, On-device OCR, or Parsing service again. The new job replaces the old job only after preparing successfully; if preparation fails, the old job and results remain intact. Replacement validates post-replacement job counts and PDF capacity so the old job is not double-counted against your quota. If the previous job is still running, stop it first; if the prompt says it is stopping and releasing resources, wait until released before tapping **Start parsing**. Check the upload notice underneath after switching parsing services, as a new request may incur fresh charges. ## Manage parsing jobs - Tap **Parsing jobs** in the top-right corner of the Document parsing page to view jobs for this document and jump back to results. Navigating back does not stop or discard running jobs. - You can also open **Task Center** from the **top-right corner of Settings**; enabling **Task Center entry** in **Settings → Appearance → Interface** also adds shortcuts on the Assistants, Chats, and Knowledge tabs. View jobs under the **Document parsing** group: **Active** shows jobs still needing attention, **Recent** shows adopted or cleaned-up records, and **All** shows both. - Tap a job row to inspect status, error details, and any extracted text preview; tap **More actions** on the right to **Stop job** or **Discard job**. If a job still holds resources, stop it and wait for release before discarding. - **Pending confirmation** means results are saved but not yet adopted. **How to confirm results** in Task Center explains where to return: open the original PDF attachment in chat → **Change parsing method**, or return to the original Knowledge Base document's parsing entry. The page restores saved results — review them and tap the pinned bottom button **Use this result** (partial results ask for a second confirmation). Opening and adopting saved results never triggers a new parsing request, so there is no need to re-upload or switch methods. Navigating back merely leaves the page without adopting. - If you started parsing via **Add document** in a Knowledge Base and left preview before saving, the Knowledge Base may still show **0 documents**. Find that document's **Pending confirmation** job in Task Center, tap **Resume import & save**, inspect the saved text, pick the target Knowledge Base, and tap **Save to Knowledge Base**. Resuming and saving does not re-call the parsing service; once saved, the job is marked adopted and the original PDF is saved along with it. Closing the recovery page or failing to save keeps the job intact for later retries — do not discard it first. - **Discard job** deletes unadopted results and the parsing copy while preserving the original document, after confirmation. To recognize again or adopt later, return to **Document parsing** from the original chat attachment or Knowledge Base document. Restarting the app never automatically resumes paid cloud requests. ## What if you hit local job limits? - **This document already has a running or queued job**: Tap **View current document job** to check progress or stop the old job; retry shortly if it is still preparing files, cleaning up originals, or releasing resources after stopping. - **4 running and queued jobs reached**: Wait for jobs to finish, or stop unneeded ones in **Manage parsing jobs / Task Center**. - **16 pending jobs reached**: Discard unneeded jobs or return to original documents to adopt results. Failed, stopped, and pending-confirmation jobs still count — closing the panel does not release slots. - **Retained parsing PDFs plus this file exceed 400 MiB**: Discard unneeded parsing jobs and retry. This counts parsing copies only and does not indicate your device storage is full. - **Parsing jobs have not loaded yet**: Tap **Reload parsing jobs**; if loading the job list failed, tap **Reload**. ## Interruptions, retries, and errors Retrying an existing remote job continues polling that original job or fetching its results without automatically creating a new job. If submission outcome is uncertain, the app alerts you and does not assume the provider never received the file. Stopping the wait does not guarantee the provider cancels the job or stops billing; background execution is constrained by the OS. Retry later if the service is busy or rate-limited; check your provider account if quota is low; verify the chosen service and token if authentication fails. PaddleOCR error `10010` means the submission queue is full, which is separate from your remaining daily page quota. ## Other documents and images Chat and Knowledge Bases also support DOCX, XLS/XLSX, OFD, PPT/PPTX, EPUB, and similar documents; parsing, preview, and model context each enforce their own limits, so saving an original file does not guarantee every method can process it completely. Standalone image OCR settings remain managed under **Default Models → OCR**, independent of document parsing services. --- # Output and usage stats > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/usage_stats/ ## Single-message output stats Tap the AI badge in the bottom-right corner of an assistant reply bubble to inspect that reply's input tokens, output tokens, cached tokens, total tokens, generation speed, elapsed time, and model info. ## Session Stats Open the chat screen's top-right More menu and select **Session Stats** to view usage totals and trait tags for the current conversation. ## Global Usage Stats Open **Settings → Models & usage → Usage Stats** to view global usage (the Settings row also displays a compact period summary and recap badge). It defaults to the last 30 days; tap the range picker in the top-left corner of the hero card to switch between Last 7 days, Last 12 months, or All time. - **Hero card and everyday analogies**: Shows period token usage, comparison with the previous period, daily/monthly trends, and relatable real-world volume comparisons; tap any bar for exact numbers. - **Interactive Cube and fun records**: Below the hero card, poke the interactive Cube and browse your **Fun Bests**, **Agent Superpowers**, and **Local Milestones**. “Days together” automatically excludes conversations imported from external platforms, counting only days you genuinely chatted in Cube. - **Usage rhythm and desktop card**: Displays a calendar heatmap, active streak, and peak hours of day; you can also add a 2×2 or 2×4 **Cube Daily Rhythm** card to your home screen to check at a glance. - **Model stats with automatic and manual merging**: Ranked by tokens, Cube automatically applies conservative normalization to merge similarly named variants of the same model. Tap any model to inspect input, cache hit rate, output breakdown, and variant details — you can also manually **merge** same-name or variant models from different channels together, or **split** them anytime. Merge rules are saved persistently and apply consistently everywhere. - **Token destinations**: Shows input cache hit rate and usage breakdown by task purpose. - **Most token-heavy chats**: Tap to jump straight into a conversation; private assistants and private chats are anonymized at the data layer and appear simply as “Private chat”. Per-message usage details are retained for 90 days, so this ranking covers up to the past 90 days. ## Period Recap & Share Studio The banner beneath the hero card generates your personalized **Cube Persona** based on your usage patterns (expanded to 10 bilingual personas and 4 behavioral traits, such as “Late-Night Model Collector”). Tap it to open the Recap Share Studio: - **Multiple poster styles**: Alongside the classic card, try the thermal-paper **Inspiration Receipt** poster; poke Cube directly on the poster and tap surrounding stat stickers to swap them. - **Privacy controls**: Freely toggle whether to hide token counts and message counts (strictly redacted when hidden). Posters never include conversation titles or content and export at 2× resolution for saving or sharing. - **AI Roast in 5 styles**: Tap “Write a line” to have AI write a playful roast in Cube's voice from your period summary (**5 styles** you can switch between, cached per style), signed simply as “Cube Roast”. Uses your Title model from Default Models by default (falling back to the chat model if unset), or tap **Model** to pick a livelier model. Only summary numbers and model names are sent — zero chat content — and it runs only when you tap, logged as “Recap commentary” in Usage Stats. ## Notes Global **Usage sources** distinguish chat, conversation titles, context compression, suggested questions, translation, memory organization and import, OCR, Knowledge Base optimization, prompt enhancement, recap commentary, and connection tests. Helper tasks may also call models and consume tokens; older records from before source tracking cannot be backfilled and may show under Other or uncategorized. Context usage estimates how much of the context window the current request occupies, whereas Usage Stats totals every request including multi-round tool calls — it is neither current context length nor a direct proxy for billing amounts. Token usage depends on whether the provider API returns `usage`. Older messages, abnormally interrupted requests, or endpoints that omit usage fields may have no recorded statistics. --- # Two image generation paths > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/image_paths/ ## Cube Agent offers multiple image generation paths - **In-chat image generation**: Turn on **Generate image** in **Tools**, and the assistant calls your image model automatically whenever needed, showing results directly inside the chat. To edit an image, simply say “Change this to a night scene.” Uses the model set in **Default Models → Image Generation** and can be triggered by any chat model that supports tool calling. - **Image Generation Workspace**: The standalone text-to-image, image-to-image, and gallery workspace under **Settings → Assistant capabilities → Image Generation**, using the model set in **Default Models → Image Generation**. - **Web Workbench image generation (Pro)**: Generate images in batches inside the built-in Web Server browser panel with configurable model, aspect ratio, and count. ## Switch image models inside chat - In the input bar's **Tools** panel, the **Generate image** row shows the current image model — tap **Switch model** on the right to change it. - If no model is selected yet or the current one becomes unavailable, a **Choose image model** button appears right where generation failed — pick one and ask the assistant to draw again. - Switching updates **Default Models → Image Generation**, so the Image Generation Workspace uses the same model next time you open it. The in-chat picker only lists models already connected; to connect a new image service, use **Add Model via AI** inside the workspace's model picker. ## How to choose Use in-chat image generation when you want to converse and generate side by side. Use the Image Generation Workspace when you want centralized prompt templates, reference images, and image history. ## Notes In-chat image generation and the Image Generation Workspace share the same image model and inherit the workspace's resolution, render quality, output format, and image recipe parameters; in chat, aspect ratio is selected by the assistant based on your request. Images generated in chat are stored in that conversation's files (or temporary cache in Incognito Chat, auto-deleted on exit) and do not enter the workspace gallery. The workspace offers fuller generation settings and batch tasks. --- # How do I share content from another app to Cube? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/system_share/ ## Enter from the system share sheet 1. Select text, links, images, or files in another app, open the system share sheet, and choose **Cube**. Supported files include PDF, Word, Excel, PowerPoint (PPT), WPS, e-books, plain text and code files, ZIP archives, and more. 2. Cube opens directly into a new chat: text and links are placed into the input box (links include the webpage title), while images and files are added as attachments. 3. You can send right away or add your own question first. Cube does not invoke a model automatically. New chats use the **current assistant** by default; assistants that require authentication must be unlocked first. ## Share preferences Go to **Settings → General → Input & interaction → Incoming shares → Share preferences**: - **Use a fixed share assistant**: When enabled, new chats opened from shares always use the selected assistant; when disabled, they use the current assistant. This only affects new chats and does not change the assistant of existing conversations. - **Open new chats by default**: Enabled by default. When disabled, if you are currently viewing a chat when sharing, the shared content is appended to that chat's input box while preserving any existing draft; if no chat is open, a new chat is still created. If you are currently viewing an Incognito Chat, the shared content uses that session's temporary storage. If sharing fails or file access authorization expires, return to the source app and share the content again. ## Content limits Each share supports up to 100,000 characters of text, 50 files, and 20 images, with a limit of 64 MiB per file and 256 MiB total attachments. Actually parseable formats follow standard chat attachment capabilities; regular ZIP archives are unpacked and filtered for parseable content using existing rules, and an error is shown if any limit is exceeded. Cube transfer packages go through the separate data import review flow rather than chat attachments—do not mix them with regular files in the same share. To share a conversation from Cube with others, see the **Share conversations** and **Sharing conversations** help topics. --- # Share conversations > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/share/ ## Overview You can export one or more messages as an Image, Word document, PDF, Web Page, Markdown, or Plain Text. Images are convenient for sending directly to messaging apps, PDF and Web Page exports work well for archiving, and Markdown or Plain Text make it easy to continue editing. Exported Web Pages and cloud shares preserve structured content from the conversation—including math formulas, Mermaid diagrams, and code blocks—so recipients can view them directly without installing Cube Agent. ## How to use Tap the **More** button in the toolbar beneath a message and choose **Share** to open the share preview. In multi-select mode, you can also use the bottom **Share** button to export multiple messages at once. At the top of the share screen, you can switch between **Image**, **PDF**, **Web Page**, and **Link**; **Word**, **Markdown**, and **Plain Text** are available under the **More** menu. **Link** is the entry point for cloud conversation sharing. ## Export replies to Word In the share panel, choose **More → Word**, confirm the selected messages and content filter options, and export a `.docx` file. Headings, body text, lists, tables, code, and formulas are preserved so you can keep editing in Word or WPS after saving. Formulas are converted to native Word equations that you can edit directly; the few formulas that cannot be converted (for example, colored formulas) fall back to images, and any that still cannot be rendered retain their raw LaTeX text—none of these will block the full export. This entry converts existing replies directly without calling a model again or enabling the code workspace. Complex layouts and inline image placement may vary across office apps, so check the exported file before sharing or delivering it. ## Content filtering In the share preview, you can choose whether to include reasoning steps, tool calls, and similar details. Hide reasoning and tools when you only want to share the final conclusion, or keep them when archiving the complete workflow. ## Display settings (Pro) In Link, Web Page, and PDF modes, you can open **Display settings** in the share panel to hide the app footer introduction and QR code, keeping the focus on the conversation itself. Your choice is remembered across sessions; for cloud links, the choice active at publishing time applies, and changing it later does not affect links that have already been generated. ## Images and privacy The share preview displays image attachments from the conversation. When exporting HTML or PDF, embedded JPEG images have their EXIF metadata stripped; long-image shares are re-rendered as fresh screenshots rather than forwarding the original image files directly. --- # Sharing conversations > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/conversation_share/ ## Overview Publish an entire conversation as a cloud link or standalone HTML file so others can view it online. Cloud links become publicly accessible once they pass automated AI content moderation. ## Difference from message sharing - **Share conversations** (the previous topic): Exports selected messages as an image, PDF, HTML file, Word document, Markdown, or plain text—focused on exporting files. - **Sharing conversations (cloud)**: Publishes the entire conversation to the cloud to generate a link—focused on sharing online for others to read in a browser. ## How to use From the conversation's share entry, choose to generate a **Web Page** file or a **Cloud Link**. HTML files can be sent directly. Cloud links enter AI content moderation after submission and become publicly viewable once approved; while under review, the link can already be opened and displays an "Under review" status. ## My Shares Tap the membership account card at the top of **Settings** to open **Membership Center → Account & services → My Shares**, where you can manage published items across the **Conversation Sharing** and **Site Publishing** tabs. For shared conversations, you can check status, copy the link, or revoke the share; revoking immediately invalidates the link. Workspace static sites published by Pro users also appear here. ## Best practices - Before sharing, check whether the conversation contains reasoning steps, tool calls, or private information, and filter out anything unnecessary in the preview. - Once published, a cloud link can be accessed by anyone—do not share conversations containing personal data, API keys, or sensitive information. - Revoke shares you no longer need so links do not remain publicly accessible indefinitely. --- # Drag & Drop Input > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/drag_drop/ ## What it is Starting in version 1.5.0, you can drag and drop text and images directly from the system Transit Station, Gallery, browser webpages, and other sources into the chat input box, without copying and pasting item by item or opening the attachment picker. ## What happens when you drop content - **Drop images**: Added as attachments to the current message. - **Drop text**: Inserted into the input box so you can edit or send it directly. ## Multi-source support Supports dragging content from the system Gallery, browser webpages, Transit Station, and more. Images can be dropped into either the standard input area or the fullscreen editor; after releasing, wait for the receive indicator and then verify the attachments in your draft. --- # Formula Preview > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Chat. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/formula_preview/ ## What it is Math formulas in chat messages can be tapped to zoom in and view on a dedicated fullscreen preview page. ## When to use it Useful for reading complex or long formulas: in the normal message stream, limited horizontal space may cause long equations to wrap or become difficult to read. Enlarging them in fullscreen preview provides cleaner layout for line-by-line inspection. ## Relation to inline rendering Formulas in the message body still render inline as usual. Tapping a formula only opens the preview page and does not modify the original message content. --- # Text-to-image, image-to-image, gallery > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Image Generation. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/workspace/ ## Before you start First configure a model with image generation capability under **Settings → Models & usage → Default Models → Image Generation**. You can also confirm that the **Image Generation** capability is enabled on the model's edit page under your provider. ## Canvas-first workspace Starting in version 1.7.0, the Image Generation workspace puts generated results front and center as the main canvas, while prompts, reference images, model selection, and generation parameters sit in the bottom dock. When there are no results yet, a clean two-column inspiration gallery is shown—tap an example to quickly start with that creative direction. Inspiration items are maintained server-side and update automatically; when offline, built-in presets remain available so your workflow is uninterrupted. ## Generation modes & parameters - **Text-to-image**: Enter a text description to generate images directly. - **Image-to-image**: Add one or more reference images from your Gallery or files, then describe what you want to preserve or change. - **Prompt tools & Image Prompt Assistant**: Use the Image Prompt Assistant with a text model of your choice to generate or refine English prompt tags and insert them back with one tap. You can also optimize prompts with a model: when reference images are attached or you are iterating on an edit, the images are automatically sent to the vision-capable default chat model for visual reference (if the default model does not support vision, Cube automatically borrows an enabled Vision/OCR model; if no vision model is available, it safely falls back to text-only optimization). You can also open the fullscreen editor for long prompts, storyboards, or complex style instructions. - **Generation parameters**: Choose aspect ratio, image count, quality, output format, and resolution based on the active model's capabilities; some models support 1K / 2K / 4K—higher resolutions generally take longer. ## Are generation settings preserved? Image count, aspect ratio, resolution, custom size, quality, output format, compression, moderation options, and recipe parameters are saved when changed and restored after restarting the app. Actually available items depend on the active model; custom sizes and recipe parameters are validated against their provider/model, so switching models will not force an old model's configuration onto the new one. This restoration only applies to generation settings—it does not mean prompts, reference images, or running tasks will be restored. Unfinished tasks continue to be managed according to their status in Task Center. ## Generation stream & Task Center - The results area groups outputs by task into a generation stream: each task gets its own card so outputs from multiple tasks never overwrite each other. Failed cards keep the failure reason and support inline retry; succeeded cards offer **Generate again** (cloning and enqueueing the task with a snapshot of the original parameters). - **Tasks per submission (Pro)**: In the generation settings panel, choose to submit 1–4 independent tasks with identical parameters at once. This is separate from the image count within a single request; tasks beyond the simultaneous execution limit are queued, and each task is billed separately by your provider. - **Task Center** opens from the title bar menu (with a badge while tasks are running): **In progress** lets you cancel a task, move it to the front of the queue, or remove it; **History** groups records by date (succeeded / failed / cancelled / interrupted), showing a thumbnail of the first output on each card—tap the card to preview, tap the circular button on the right to **Generate again** with the original parameters, or long-press to generate again, copy the prompt, or delete the record. Swipe left on a history row to delete, or use the top-right actions for multi-select batch deletion or one-tap history clearing (clearing removes only task history records—running tasks and generated images are unaffected). Up to the latest 500 records are kept, and clearing the gallery does not affect task records. - Pro users can queue new tasks while generating and run multiple image generations concurrently, with concurrency and queue limits adjustable in Task Center; HTTP 429 rate limits are automatically rescheduled without losing your prompt. ## Auto-retry failed generation Go to **Task Center → Task & concurrency settings** and enable **Auto-retry failed generation**. This toggle is off by default; once enabled, you can set a retry limit (default 3 retries; `0` means unlimited retries, excluding the initial request). Network errors, timeouts, rate limits, service errors, or retryable task failures wait and try again with progressively longer intervals up to 60 seconds; authentication and invalid-parameter errors are not blindly retried. When enabled, rate-limit errors also follow this retry limit; when disabled, the original rate-limit retry toggle still retries up to 2 times. Retrying tasks show "Waiting for auto-retry" and the retry count, and can be cancelled manually. Existing asynchronous tasks continue polling the original task on recoverable polling failures; resubmitting generation may incur additional charges. If a result is received successfully but local saving fails, the app will not automatically regenerate. Once the app process exits, unfinished tasks are marked as interrupted—continuous retries after exiting are not guaranteed. Task cards and history display the completion time and duration of that attempt; auto-retry duration does not accumulate across all attempts. In General preferences, you can configure notifications for image generation success and failure separately. Prompts are cleared after successful submission while any new draft typed during submission is preserved; saved prompt presets can be deleted. ## Results & Gallery Generated images can be saved, shared, edited again, or added to Favorites. The Gallery retains past generations; tap the top-right view button to switch to **By task**, showing one card per task (image left / text right for single images, grid for multiple images). In any view, tap **Select** in the top-right (or long-press an image) to enter multi-select mode and batch-save or batch-delete selected images. Tap the heart icon on a gallery card or fullscreen preview to revisit it anytime in Favorites. You can enable **Images** under **Settings → App Settings → General → Home tabs** to add the workspace to home navigation. Disabling the home entry does not delete your generation history. ## Three image generation paths - **In-chat image generation**: Ideal for generating while chatting—enable **Generate Image** in chat **Tools** so the assistant invokes it on demand; shares the same image model as the workspace. - **Image Generation workspace**: Ideal for reference images, fine-grained parameters, prompt tools, and gallery management. - **Web Workbench image generation (Pro)**: Ideal for batch generation in a browser panel, with configurable model, aspect ratio, and image count. In-chat image generation and the native workspace share **Default Models → Image Generation**; the Web Workbench lets you select a model independently. --- # How do I enhance an image in preview? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Image Generation. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/image_super_resolution/ ## Which images are supported Small images saved from webpages by AI, images and attachments in chats, image-generation reference images, gallery items, and task outputs can all use the unified **Super-Resolution Enhance** feature in the native fullscreen image viewer. It improves the viewing clarity and usability of small images—it does not revisit source websites to locate originals and cannot guarantee faithful recovery of real text or fine details. ## How to use 1. Tap an image to open fullscreen preview, then tap **Super-Resolution Enhance** in the top-right corner. Enhancement only runs when you explicitly tap it and is never applied automatically to every image. When an image contains a QR code, a **QR Code** button also appears next to Super-Resolution Enhance in the top-right; by default no recognition box pops up to obscure the image—tap the button to expand or collapse the detection overlay and action entries. 2. While processing, a Cube animation and "Enhancing" indicator are shown. Enhancement requests across multiple images are processed sequentially, so there is no need to tap repeatedly. 3. Once complete, switch between **View original** and **View enhanced**, compare actual pixel dimensions, and save to Gallery or share through the system share sheet. The original image is always preserved. For ordinary images, the enhanced copy is only kept for the current preview—save or share it before closing the comparison panel. For generated artworks, the enhanced copy is saved separately in the Gallery without overwriting the original record. Switching images or exiting ensures an earlier task will not display its result over the next image. ## Do I need Pro, and why is the button missing? Super-Resolution Enhance does **not require Pro**, but requires HarmonyOS API 26 or later and a device that provides system image super-resolution capability. The entry is displayed only when these conditions are met—unlocking Pro cannot bypass hardware or system restrictions. According to Huawei's current capability documentation, this system feature is supported only in Mainland China (excluding Hong Kong, Macao, and Taiwan) and is not supported on emulators. When the button is not shown, standard image preview, saving, and sharing continue to work normally. ## Size & format limits - Supports static bitmaps only, with original width and height both between **17 and 2047 pixels**. SVG files and multi-frame animated images are not enhanced. - Images at or below 1024×1024 are best suited for enhancement; larger images may run more slowly or time out. The app will not silently downscale original images to meet the limit. - Ordinary preview images have an input file size limit of 32 MiB; remote images are also subject to existing download limits and network conditions. - If the device service is unavailable, the format is unsuitable, or dimensions exceed limits, a prompt is shown; failures never modify the original image. --- # Connect your own image model > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Image Generation. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/image_model_setup/ ## Have your own image API key? Here is how to connect it For models that use image APIs already built into Cube Agent, configure your API key under **Settings → Models & usage → Provider Management**, enable the model, turn on its **Image Generation** capability, and select it in the Image Generation workspace. For native non-standard APIs—such as Alibaba Cloud Bailian (Model Studio)—use **Add Model via AI** so the AI can build and test an image recipe directly from official documentation. A "recipe" is simply the declarative calling configuration for that model. You do not need to know how to write JSON beforehand—just provide the provider, exact model ID, region, and API documentation. **Simply enabling the "Image Generation" capability toggle only adds the model to the picker; it does not automatically convert a chat API into an image generation API.** ## Step 1: Prepare your provider and model Configure your API key in Provider Management; if it is already configured, reuse it directly without pasting it into chat again. If you have not set up the provider yet, you can also use **Save a Key** inside the AI onboarding session and let the AI create the provider for you. For Alibaba Cloud Bailian users, prepare: - Your model-calling **API Key** from the Bailian console—do not use an Alibaba Cloud AccessKey ID / Secret instead. See [Get an Alibaba Cloud Bailian API Key](https://help.aliyun.com/zh/model-studio/get-api-key). - The exact **Model ID**, such as `wan2.6-t2i`; make sure the model is enabled and callable in your region according to the console and model docs. - Your **region and API Host**. Your key, model, and endpoint URL must match; if a workspace domain in the docs contains `{WorkspaceId}`, replace it with your own workspace ID. Your existing Bailian chat configuration can stay as-is—the image endpoint lives inside that model's recipe. ## Step 2: Choose an AI model to assist with setup On first use, go to **Settings → Models & usage → Provider Management → Let AI help configure it**, select a working text chat model that supports tool calling, enter the management session, and then return. This is the "assistant AI that reads documentation and configures the API"—it can be completely different from the "image model that draws pictures." Image-only models cannot act as the setup assistant. ## Step 3: Open AI image onboarding, read docs, and build the recipe Open **Image Generation workspace → top model selector (shows "Image Model" when none is selected) → Add Model via AI**. The workspace can also be opened from **Settings → Assistant capabilities → Image Generation**. AI image onboarding enables web research by default, independent of your regular chat web search toggle. It prioritizes any configured search service and falls back to key-free basic search and webpage reading if none is configured. You can switch search services or disable web research from the input bar; turning it off is remembered. You can simply ask the AI to "look up the official Bailian documentation for this model," or paste documentation links directly. The AI should inspect the full request and response documentation before writing the recipe—search snippets alone are not reliable enough to confirm API fields. If a webpage cannot be fetched, paste the official request example, response example, and parameter reference into chat. Copy the template below into **AI Image Recipe onboarding** and fill in the bracketed fields: ```text Please connect my Alibaba Cloud Bailian image generation model to the Image Generation workspace. Provider name: [Provider name already configured in the app] Model ID: [Exact model ID] Region & API Host: [Region and actual endpoint URL from the console] Goal: Start with text-to-image, 1 image per request. First read my existing configuration, then look up and read the official API documentation for this model to confirm the endpoint URL, required headers, size parameters, and response format; if it is an asynchronous API, configure task polling as well. Test the recipe using the API key already configured on this provider—do not ask me to paste the key again. Show me the generated test image before asking me to confirm saving, and tell me how to select it back in the workspace. ``` Official Bailian references: [Qwen-Image](https://help.aliyun.com/zh/model-studio/qwen-image-api), [Wan Text-to-Image](https://help.aliyun.com/zh/model-studio/text-to-image-v2-api-reference). **Different models and versions may use different API formats**—never blindly reuse another model's endpoint, dimensions, or recipe. Bailian's `compatible-mode` chat endpoint cannot be used directly to call these native image generation APIs. ## Step 4: Confirm saving only after seeing a real test image The AI's recipe test runs locally on your device using the target provider's active API key; the plaintext key is never returned to the AI in tool output. Test images appear in an artifact card inside the session—getting a task ID, passing a connection check, or hearing the AI say "it's configured" is no substitute for seeing an actual generated image. After verifying the test image, check the provider and model in the recipe save confirmation panel. **Both the management model chat and the image test may consume quota on their respective providers**—start by testing 1 image, and scale up only after it succeeds. ## Step 5: Use it back in the workspace Return to the Image Generation workspace, open the model picker, choose your newly saved model under **Custom Recipes**, enter a prompt, and generate. You can refine it anytime via **Edit Recipe** in Generation Settings; if generation fails later, copy the error from the workspace and return to **AI Recipe Session History** to troubleshoot. ## Troubleshooting - **Tapping Add Model via AI opens the manual editor instead**: No usable AI management model has been selected yet. Complete Step 2 first, then return to the workspace. - **No web search tool or lookup fails**: Check the web search toggle in the input area; enable or switch search services, or paste the complete API documentation directly. Even with web research off, you can still test existing recipes using saved keys, but the AI should not guess fields when documentation is missing. - **Model does not appear in the workspace**: Verify that the recipe was actually saved to the target provider/model and that the model is enabled; saving a valid recipe automatically adds image-output capability. Saving only a provider API key does not complete image onboarding. - **Chat works, but image generation errors out**: Check the native image endpoint URL, model ID, region, and response extraction paths. Do not fix image generation by changing the entire provider's chat path. - **Error says synchronous calls are unsupported, or only a `task_id` is returned**: Ask the AI to check the model's async API docs. Recipes support non-auth request headers (such as `X-DashScope-Async: enable`) and task polling; the recipe must wait for task completion and extract the final image. - **Want to use reference images**: Confirm first that the specific model supports image editing, then ask the AI to configure reference image parameters; a text-to-image recipe does not automatically become an image-to-image recipe. Image-to-image recipes do not require Pro. Users familiar with the API can also edit recipes manually. The **DashScope** and **Async** templates in the editor are starting points—adjust the URL, parameters, headers, and extraction paths according to the actual model documentation and run a test before relying on them; they are not universal one-click presets for every Bailian model. --- # What is AI Image Recipe onboarding? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Image Generation. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/recipe_onboarding/ ## What it can do The Image Generation workspace includes built-in support for common image API paradigms such as OpenAI Images, Gemini, Imagen, and Grok, but image APIs vary widely across providers (parameter names, request body layouts, and where images live in responses all differ), making it impossible to hardcode every one. **AI Image Recipe onboarding** hands those non-standard models over to AI: paste the API docs or describe what you need in a dedicated management session, and the AI probes the endpoint, iterates on errors, verifies an actual generated image, and saves the result as a **recipe** so the model works in the workspace just like built-in models. Open it via **Image Generation workspace → top configuration pill → model picker → Add Model via AI**. Like AI Provider Management, it runs in a dedicated management session: the title bar clearly labels the active mode, and the session is saved automatically for resuming without cluttering your normal conversation list. ## What is a recipe A recipe is a declarative specification describing everything required to call an image generation API: - **Endpoint & authentication**: A URL template (`{{baseUrl}}` is replaced with the owning provider's Base URL) and auth scheme; API keys are always referenced from the owning provider and never stored inside the recipe. - **API request headers**: `requestHeaders` declares fixed non-auth headers required by the endpoint (such as Bailian's async header); auth headers are attached automatically from the provider key—never put keys inside a recipe. - **Request body template**: Any JSON structure with placeholders (`{{prompt}}`, `{{modelId}}`, `{{count}}`, `{{param.}}`), so platform-specific layouts (for example, `content` requiring an array structure) can be represented directly. - **Parameter schema**: Aspect ratio, size, style, seed, and other parameters with their valid values. The workspace's Generation Settings panel renders dynamically from this schema—undeclared parameters never appear, so each model's settings panel shows only options it genuinely supports. APIs that accept arbitrary pixel dimensions can also declare `customSize`, mapping the workspace's width × height inputs to a combined `size` parameter or separate `width` / `height` parameters with min/max bounds, pixel limits, and multiple constraints; when Custom Size is off, standard preset dimensions from the parameter table remain available. - **Extraction paths**: Declares where images live in the response (supporting array expansion and field filtering) as well as where error messages appear, backed by an automatic deep-scan fallback if extraction fails. Each recipe is attached to a specific model; once saved, that model is automatically tagged with image-output capability. ## Things you can say directly - "Help me connect SiliconFlow's Seedream; I've pasted the API docs below." - "This new relay uses the same API as Provider A—reuse Provider A's image recipe on the same model here." - "Image generation failed with: {paste the error copied from the workspace}. Please fix the recipe." The AI reads your real local configuration before taking action. If the target service is not yet configured as a provider, it creates the provider with its endpoint and key first before testing. **A real test image must be generated and verified before saving**—the test image appears right inside the session. Saving requires your explicit confirmation, and the AI will not claim setup is done beforehand. ## Reusing recipes across providers When multiple providers expose the same model at different endpoints, a recipe can be reused directly: tell the AI which provider's matching model to copy it to, and it will adapt the recipe, verify image output against the new provider, and save after confirmation. Only recipes whose URL template uses the relative `{{baseUrl}}` form can be reused across providers; recipes with hardcoded full URLs (such as native DashScope official endpoints) cannot be reused across different providers. ## Security & cleanup - API keys can be stored locally via the **Save a Key** button in the input bar (only a masked reference appears in chat—the model never sees plaintext keys), or reused directly from already configured providers. - Every recipe save and provider modification requires your confirmation; web search can be toggled and switched right in the input bar. - Test images generated during probing remain accessible inside that management session and are cleaned up automatically when you delete the session, leaving no stray files behind. ## Workspace integration & one-tap cloud recipes - **Cloud recipes & zero-config Bailian defaults**: The workspace includes built-in default image recipes for Alibaba Cloud Bailian pay-as-you-go and Token Plan (covering Qwen-Image 2.0/3.0/Plus/Max/Edit, Wan 2.6/2.7, Z-Image, and more)—just configure your provider key and start generating. It also matches cloud-adapted models for one-tap application and further tweaking anytime. Bailian, Gemini, and chat-based image models all support multi-image reference image-to-image. - Recipe-powered models display a gradient dot badge on the top configuration pill; at the bottom of Generation Settings, open **Request Preview** to inspect the exact request assembled from your current parameters (with keys redacted), making troubleshooting immediate. - When generation fails, the error row provides two shortcuts: **Copy** (copies full error context including provider and model details to bring into an AI session) and **Edit Recipe** (jumps straight into the recipe editor with the error attached for manual fixes). ## Manual editing You can also manage recipes without using AI: when a selected model has no recipe yet, Generation Settings shows **Set up a recipe for this model**; when a model already has a built-in adapter (gpt-image, Gemini Image, Imagen, Grok, etc.), the entry reads **Tweak recipe from the builtin preset**, automatically generating an equivalent starting recipe in the editor so you can adjust parameters and save without starting from scratch. The GPT Image preset supports up to 4 reference images and automatically switches to the file-upload edit endpoint once reference images are added; older GPT presets that retained their original name and structure are upgraded on load while keeping existing parameters and saved JSON intact. Gemini Image and chat-image presets support a single reference image. Models that already have a recipe show **Edit Recipe** in Generation Settings. The editor also includes several starter templates (OpenAI-compatible chat image / native DashScope / Images API / image-to-image / async task), complete with JSON validation, live test generation, and saving. Deleting a recipe in the editor clears only the recipe while keeping the model and API key (models with built-in adapters revert to their preset behavior). Switching the target provider or model before saving clones the recipe there. If you have not chosen an AI management model yet, tapping **Add Model via AI** opens the manual editor first; set a management model in Provider Management to enable AI onboarding. ## Best practices for first-try success 1. **Prepare source docs**: Official API documentation text or a working cURL example works best—endpoint URL, request body, and **response example** are all essential because the response example determines image extraction paths. Only fall back to verbal descriptions if no docs exist. 2. **Connect one model at a time**: Onboard and verify on the most reliable official endpoint first, then ask the AI to copy the recipe to relays offering the same model. Remember that only recipes using relative `{{baseUrl}}` templates can be reused across providers. 3. **Close the error loop**: When generation fails in the workspace, use **Copy** on the error row to pass full context to the AI—far more effective than saying "it failed"—or use **Edit Recipe** to fix it yourself. 4. **Verify before batching**: Always confirm a real test image before saving; after saving, inspect **Request Preview** at the bottom of Generation Settings to verify parameters before running batch generations. 5. **Never paste plaintext keys**: Use the **Save a Key** button in the input bar or reuse an already configured provider key. ## Current boundaries When text-to-image and image-to-image use different endpoints, you can declare `editRequest` (containing `urlTemplate`, `requestEncoding`, and `bodyTemplateJson`): this branch is used when reference images are attached, while the main template is used when no reference images are present; parameters, authentication, and response extraction rules are shared. Image parameters may also be referenced exclusively inside `editRequest`. The built-in GPT Image preset already uses this setup. Declaring an `image` parameter in the parameter schema unlocks reference images (image-to-image); pure text-to-image recipes without an `image` parameter do not support references. Reference images are injected inline as base64; optional image parameters (`required: false`) automatically omit their injection slot when no reference image is provided, allowing one recipe to cover both text-to-image and image-to-image. Single-image parameters also support `{{param..mime}}` and `{{param..base64}}` sub-keys (for endpoints like Gemini's native `inline_data` that separate MIME type and base64 payload). File-upload endpoints (such as OpenAI `images/edits`) can set `requestEncoding` to `multipart/form-data`: describe form fields as a flat top-level object in `bodyTemplateJson` (plain fields as strings, numbers, or booleans; image fields referencing `{{param.}}` directly under the required field name such as `image` or `image[]`). Multiple images upload under the same field name; nested objects, arrays, and `.mime` / `.base64` sub-keys are not supported in multipart mode. Omitting `requestEncoding` preserves standard JSON behavior. For APIs that submit a job and poll for results, use the recipe's `async` section (see **How do I design a good image recipe?**). --- # How do I design a good image recipe? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Image Generation. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/recipe_best_practice/ **What is AI Image Recipe onboarding?** covers the workflow for connecting a model to the workspace; this guide focuses on designing the recipe itself—how to declare clean parameters and when to use asynchronous tasks. It applies equally to AI-assisted onboarding and manual editing. ## Choosing among the three onboarding paths - **AI onboarding**: Best when you have official API documentation or a working cURL command. The AI reads the spec, runs real test generations, and saves after verification; if the provider is not configured yet, it creates the provider and saves the key securely first. - **Built-in preset starting point**: When a model already has a built-in adapter (gpt-image, Images API, Grok, Imagen, Gemini Image, chat image) and you only want to tweak or add parameters, choose **Built-in preset** in the recipe editor—the app generates an equivalent starting recipe using your provider's endpoint so you can make quick edits and save. - **Manual template**: When the API is unusual or you are comfortable editing JSON, start from the five starter templates (Chat Image / Native Bailian / Images API / Image-to-Image / Async Task) and rely on **Validate** and **Test** in the editor. ## Parameter panel: turn settings into taps Parameters declared in a recipe render directly as controls in the workspace. Pick the control type that matches each parameter's values: - Fixed enumerations (sizes, quality levels, style presets): use **selectable chips** so users do not have to type error-prone strings. - Bounded numbers: use a **stepper** or **slider**. - Yes/no options: use a **toggle switch**; freeform text (seeds, style notes): use a **text input**. - Parameters support **conditional visibility**: for instance, only showing a secondary option when a primary parameter has a specific value. For endpoints supporting arbitrary pixel dimensions, declare `customSize` with width/height mappings and constraints (multiples, min/max pixels) so the workspace can generate custom sizes freely without enumerating dozens of preset options. ## Reference images: one recipe for two modes An `image` parameter (up to 4 images) unlocks image-to-image in the workspace. Declaring it as optional (`required: false`) automatically omits the injection point in the request body whenever no image is attached—letting a single recipe handle text-to-image without images and image-to-image with images, without failing due to empty fields. For APIs that split MIME type and data into separate fields, use the `.mime` and `.base64` sub-keys. ## Async tasks: the fix for slow models If generations repeatedly fail after one or two minutes with a message like "gateway closed the connection early," an intermediate relay or proxy is likely cutting off long-lived HTTP connections—the image may already be finishing on the server even though the response never arrives. Switch to an async recipe to split a single long wait into two steps: 1. **Submit**: Send the initial request and extract the job ID (`taskIdPath`) from the response. 2. **Poll**: Query the job status periodically via `pollUrlTemplate`, and extract the final image once a success status is returned. The default polling budget is about 10 minutes with adaptive intervals and automatic backoff on rate limits (HTTP 429); if it times out, the app notes that the job may still be running server-side. Start from the **Async Task** template in the editor; any API that returns a task ID first and requires polling for results fits this pattern. ## Image count & queuing A recipe declares the maximum images per request (1–4 images). Pro users can additionally configure concurrency and queue length to keep queueing while generations run, with automatic rescheduling on HTTP 429 rate limits so prompts are never lost. ## FAQ - **Does saving a recipe break built-in adapters?** — A saved recipe takes over that model; deleting the recipe restores the app's built-in auto-detection while keeping the model and API key intact. - **Is image-to-image a Pro feature?** — Text-to-image, image-to-image, and recipe generation all require **no Pro**; free users can run 1 task at a time, while multi-task submission, queuing, and concurrency are Pro features. Model API usage is billed by your provider. - **Want to reuse a recipe across providers?** — Ask the AI to copy the recipe onto the same model under another provider; only recipes using the relative `{{baseUrl}}` URL template can be reused across providers. --- # How does experimental cloud sync differ from backup? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Data & Sync. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/cloud_sync_experimental/ **Settings → Data & Sync → Cloud sync** is an experimental entry that is off by default. Before enabling it, review its scope: it includes assistant and provider configurations with their associated credentials, skill instructions, scripts, and bundled resources, as well as body and code catalog font selections (restored on demand on target devices), text-to-speech and voice input settings (including voice cloning samples and credentials), PDF/document parsing settings, and WebDAV/SMB remote mount configurations. It does **not** include chat history, Knowledge Base document contents, or local folder authorizations, and cannot replace full data backups. Skill package sync requires both devices to be updated to a supported version. Assistant settings arrive first, and skill packages install automatically after downloading and verification while preserving their original IDs and assistant associations; differing content requires conflict resolution. Local execution authorizations, hidden configuration, execution history, and dependency caches are not copied. In this initial release, each skill supports up to 1,000 files, 16 MiB total raw content, and 10 MiB per file; incomplete downloads, exceeded limits, or verification failures are reported individually while other configurations continue syncing. Knowledge Base contents must still be transferred separately. Each individual configuration item is limited to 512 KB. Oversized items (commonly providers with very long model lists, or assistants with very long system prompts) are listed separately and temporarily excluded from sync while other items continue syncing normally; they remain on your local device and will neither be deleted nor overwritten by versions from other devices. After removing unused models or shortening prompts, they will automatically resume syncing. Once enabled, you can inspect sync status, trigger an immediate manual sync, and handle conflicts or pending image uploads. When multiple sync conflicts appear (including remote or local deletion records), you do not need to tap through them one by one—you can batch-resolve them by source on the conflict page after a single consolidated confirmation. The system automatically protects built-in assistants from bulk deletion and tries to fill in the names of remotely deleted items from local data (private assistants remain protected for privacy). When sync is paused, tap **Resume sync**—the app verifies your account before continuing, and shows on-screen guidance if an error occurs. Before switching devices, clearing data, or reinstalling, always keep a full backup via Data Backup. Production signing environments and complete two-device flows are still awaiting full verification. --- # Data backup > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Data & Sync. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/backup/ ## Confirm your data is actually backed up first Connecting to Cube Agent online services, signing in to your Huawei Account, or restoring purchases does **not** automatically back up your conversations or Knowledge Bases. Always run a dedicated data backup and confirm the upload succeeded; merely seeing Cloud Drive ready or Pending upload does not mean the backup is complete. Backups must currently be triggered manually and are not real-time sync. ## Local export / import You can bundle conversations, attachments, and settings into a single backup file. On a new device or after reinstalling the app, restore via **Settings → Data & Sync → Import Data**. For backups from third-party apps, see **Import third-party backups**. Open **Settings → Data & Sync → Export Data**. It defaults to **Back up or migrate** with exportable items selected—uncheck anything you do not need, review the summary, and save the file, share the file, or use experimental Nearby Transfer (Tap to share). File import and Nearby Transfer share the same review flow: conversations, memories, and usage stats merge by default (conflicting conversations are saved as recovery branches, and distinct memory entries are both kept), while configuration conflicts are skipped by default. You can also actively choose to skip, keep a full copy, or replace—replacing requires confirmation because local-only content may be lost. ## Credentials for selected settings are exported together Provider API keys, multi-key pools, custom headers, search keys, MCP auth credentials, SSH passwords / private keys / passphrases, voice service keys, document parsing credentials, WebDAV / SMB remote mount passwords, and assistant environment variables are all exported together with their parent configurations (along with online catalog font selections, speech read-aloud and voice cloning samples, voice input settings, document parsing settings, shared files, and WebDAV / SMB remote mount configurations; manually imported local non-catalog font files are not packaged). Choosing **Share content** does **not** strip these credentials automatically—if you do not want to transfer a configuration, uncheck it. Full data backups also include SMB backup connection settings and passwords (selective transfers currently exclude SMB backup connection settings). The review page states clearly that the file contains plaintext credentials, while item previews hide credential values. If any selected configuration or credential cannot be read completely, the entire export fails—resolve the error and retry, as the app will never produce a successful package with missing credentials. Save exported files only to trusted locations or give them only to trusted recipients, and never attach backup packages to feedback reports. If the manifest reports that certain skill or file names are unsupported, those entries are excluded from selection. Skills are checked as a whole rather than transferring partial scripts or configs—clean up those names and reload the manifest. All other selectable content can still be exported normally. Model names and IDs on historical messages are preserved on import; when an older backup lacks credentials, existing local keys are kept. Knowledge Base folders, assistant rules, and opening-message settings are exported with their corresponding data; after import, automatic model-generated openings are turned off and can be re-enabled when needed. Restore Knowledge Base folders on a version that supports folders, as saving again on an older version may lose folder hierarchy. Selective transfers still follow import rules, so some model connections or assistant tool bindings may need re-checking afterward; the Generated Images category is not equivalent to a complete image-generation task backup. Repeatedly importing and choosing to keep both copies continues creating duplicates and is not equivalent to automatic device sync. ## Data backup (Huawei Cloud Drive / WebDAV / SMB) Open **Settings → Data & Sync → Data Backup**. Use the top switcher on the same page to choose a channel; all channels share **Back Up Now** and backup history. Huawei Cloud Drive and SMB let you choose a folder from **Restore**, while WebDAV supports **Restore latest**: - **Huawei Cloud Drive**: Sign in to your Huawei Account and grant Cube Agent access to Cloud Drive in system Cloud settings; backup packages are stored in your own Huawei Cloud Drive. - **WebDAV**: Configure the WebDAV URL, directory, and login credentials for a cloud drive or NAS that provides WebDAV service. - **SMB Backup**: Connect to an SMB 2/3 share exposed by a NAS, home storage, or computer and save backups into a directory inside that share. Typically used on the same LAN; the app does not automatically expose your NAS to external networks. The SMB client requires server signing support, does not currently support SMB1, and does not auto-discover NAS devices—enter the device address and share details manually. All three channels share the same backup format: 1. Backup scope includes Knowledge Bases, conversations, attachments / generated images, assistants, provider keys, preferences, and more; to export only selected conversations, use **Settings → Data & Sync → Export Data**. 2. Your first **Back Up Now** generates a full backup as the baseline for subsequent incremental backups; filenames begin with `cubeagent_backup_`. 3. While the full backup and change log remain available, subsequent backups upload only changes using filenames starting with `cubeagent_incr_`; nothing is uploaded if there are no new changes. 4. **Restore latest** restores the selected source's full backup and continuous incremental backups (on Huawei Cloud Drive and SMB choose a folder first; on WebDAV with multiple sources choose a device first). Messages and memories merge item by item while preserving local-only content: one-sided continuations append to the original conversation, while two-sided continuations or conflicts on shared messages are saved as a "Recovery branch." Global and assistant memories preserve distinct entries from both sides, and deletion records in incremental backups never delete local data. 5. To inspect the manifest first, tap **Restore** on a specific entry under **Recent backups**. The app downloads and checks the file, displays counts for conversations, messages, attachments, and more, and writes data only after you tap **Restore** to confirm; tapping Cancel imports nothing. This entry restores only the selected package—a single incremental package contains only that backup's changes. History entries can also be deleted individually, though deleting one may break an incremental chain that depends on it; make sure a usable full backup remains before deleting. ## Huawei Cloud Drive: backup location & restore - **Backup location → Change**: Choose an existing folder or create a new one. Devices store backups separately by default; after switching locations, the next backup generates a full package. If your device identifier changes after an upgrade, a new full baseline is likewise created automatically without needing to delete old packages. - Backup location is stored only on the current device and does not migrate with backups. Device identifiers stay stable within the period permitted by the OS, but are not guaranteed to remain unchanged after uninstalling and reinstalling; after reinstalling, manually find your old folder in the Restore list. Backups created by an earlier installation may still appear as "Other device." - **Restore → Folder → Latest state**: Restores the usable full backup and consecutive incremental packages in that folder. **Choose a specific version → Restore** downloads first and displays a preview before writing upon confirmation. The app verifies the full baseline each incremental package depends on; if verification fails or the chain is broken, only successfully restored portions are kept with a notice—sequence numbers from different installations are never stitched directly into one chain. - Packages stored directly by older versions appear under **Legacy backups** and are not automatically migrated or deleted. Another device defaults to its own folder; to locate backups from another device, open **Restore** to browse the folder list rather than checking only "Recent backups" for the current location. ## Huawei Cloud Drive: cleanup & clearing At the bottom of the "Cloud content" card are two distinct actions, both requiring secondary confirmation: - **Clean history data**: Deletes legacy backups, abnormal residuals, or other listed historical entries. When items are checked, only the selected items are removed; when none are checked, all historical items listed at confirmation are removed. Selecting a directory includes all of its contents, and newly discovered items are not automatically added to the current cleanup. Check names and purposes carefully first so you do not treat a legacy backup you still need as junk. - **Clear this backup location**: Deletes all contents of the current backup folder and removes abnormal residuals; other backup folders and legacy root-level backups are untouched. If other devices also back up to this location, their files will also be deleted—stop backing up from those devices to this location first. After clearing, the next backup creates a new full backup. Neither action clears local chats on your device, but cloud deletions are irreversible. If an operation fails midway, some entries may already have been deleted—refresh and check before deciding whether to retry. Completing a directory rescan and sync does not lock out other devices, so files may reappear if another device writes to the folder afterward. ## Configure SMB backup Fill in the fields under **SMB Backup → Server settings → Edit**. Suppose your NAS address is `192.168.1.10`, it exposes a share named `backup`, and you want `CubeAgent/phone` inside it as the backup root: - **Address**: Enter `192.168.1.10` or a resolvable hostname—host portion only, without a share path or port. - **Share**: Enter `backup`—must match the share name opened under Network Neighborhood / SMB on your device; not the device name, local disk path, or multi-level directory. - **Subfolder**: Enter `CubeAgent/phone` for the directory inside the share; defaults to `CubeAgent`, or leave empty to start at the share root. When **Separate folder per device** is enabled, a per-device directory is appended beneath it. Missing directories are created during connection test or backup (requires write permission). Paths cannot contain `..`. - **Username & Password**: Enter a share account and password with read/write permission to the target directory. - **More settings**: Leave **Domain** blank unless your server requires it (for example, `WORKGROUP`); **Port** defaults to **445** (range 1–65535)—change it only if your server uses another SMB port, and never enter your NAS web admin port. For Huawei Home Storage, first enable **Network Neighborhood / SMB Sharing** in device management—commonly under **App Services → Network Neighborhood** on the Home Storage page in AI Life (exact names and placement vary by device and version). Use the **Network Neighborhood username and password, not your Huawei Account password**; verify the share name and current IP directly on the device page, and update the address if your router reassigns the IP. For step-by-step instructions, see the [Huawei Home Storage official guide](https://consumer.huawei.com/cn/support/content/zh-cn15927787/) (Chinese). For example, in `smb://192.168.1.10/backup/CubeAgent/phone`, `backup` is the **Share** and `CubeAgent/phone` is the **Subfolder**—they are not interchangeable paths. After filling in the fields, tap **Test Connection** first. The SMB test checks actual permissions in the target folder by creating, reading, renaming, and removing a temporary file. Once the test succeeds, tap **Save**, return to the backup page, and tap **Back Up Now**. A passing test does not mean settings are saved or a backup is done; re-test after changing any field. Targets cannot be changed while an operation is busy—wait for completion or cancel as prompted. Switching to a different server, port, share directory, or account uses that target's independent backup progress and creates a new full backup first rather than continuing the previous target's incremental chain. Each target maintains its own history; editing and saving SMB connection settings also triggers a new full package on the next backup so the latest settings and password are carried completely. When alternating among multiple channels, if a channel falls behind, required change logs have been pruned, or the remote full backup is missing, the app automatically creates a new full backup—larger package size and longer runtime are normal in that situation. SMB connection passwords are saved in local secure storage. If the device is locked or credentials are missing/unreadable, unlock the device and reopen settings, re-entering and saving the password if needed—the app will never silently treat an unreadable password as an empty password. Local secure storage does not mean backup archives are encrypted: full data backups carry SMB settings and passwords, and credentials for selected configurations enter backup or export packages according to the rules above while previews hide their values. If any configuration or credential slated for export cannot be read completely, the entire backup/export stops without producing a successful package missing credentials. ## SMB: per-device folders, restore & deletion - **Separate folder per device**: Enabled by default for new configurations. For example, with Share `backup` and Subfolder `CubeAgent`, the actual backup path is `CubeAgent/device-`. The main page shows the actual path; the directory identifier is hash-derived and does not contain the raw device identifier. - **Upgrading existing configurations**: Retains the original path without automatically enabling per-device folders, and does not move or delete old files. Enabling it manually generates a first full backup in the new folder; turning it off returns to the original folder. After a reinstall or system ID reset, the device folder may change, while the old folder remains accessible from Restore. - **Finding legacy or other-device backups**: Open **Restore**, choose **Legacy backups** in the original directory or one of the device folders beneath it, then pick a version. Browsing never changes your local backup location or sets another device's directory as your upload target. The list browses only the configured root directory and its immediate subdirectories; to restore from deeper historical subdirectories, point **Subfolder** to that path and turn off **Separate folder per device**. - **Restore latest state**: Merges full backups and consecutive incrementals from devices inside the selected folder and asks you to confirm before starting; matching local records may be updated. To inspect or restore a single backup, pick a specific version to download and preview before confirming. - **Delete backup**: The confirmation dialog shows the target folder and filename and deletes only that file without recursively emptying the folder. If settings change after confirmation, you must confirm again; deleting a full baseline may prevent dependent incrementals from restoring. The restore list does not provide delete buttons for other devices' folders. Directory isolation prevents multi-device write conflicts and does not replace server permissions. Anyone using the same SMB account can still access these directories with other tools; backups are also not real-time two-way multi-device sync. ## Troubleshooting SMB connections & restores - **Cannot connect or timed out**: Confirm the NAS is online, SMB sharing is enabled, and the phone can reach the server; check address, port, and router client-isolation settings. Using SMB from an external network requires an already reachable network—entering a home LAN IP alone cannot auto-connect remotely. - **Authentication failed**: Verify the share username, password, and whether the server requires a Domain; for Huawei Home Storage, check the Network Neighborhood account. - **Missing read/write permissions**: Check both share-level and directory-level permissions. Being able to browse a directory does not guarantee backup permission—creating, reading, renaming, and deleting temporary test files must all be allowed. - **Share, folder, or file not found**: Verify the share name and subfolder, then refresh the list; to find another device's backups, connect to the same configured root folder and select the source folder under **Restore**. - **Insufficient space or verification failed**: Check available storage on both the NAS and phone as well as network stability, resolve the issue, and retry. An error prompt or showing only transfer progress never means a backup succeeded. ## Backup scope & runtime behavior Full backups include Knowledge Base text, indexes, and original files already saved inside Knowledge Bases (excluding external files not yet imported into the app), plus AI-generated files in conversation workspaces and custom chat wallpapers used by assistants—all restored together on a new device. When exporting only selected conversations, you can uncheck "Include workspace files" to reduce archive size. Backups and restores support continuing in the background (via long-running task keep-alive), subject to system limits. Backups can be cancelled as prompted, including while reading large message histories; once a restore enters the data-writing stage, cancellation is temporarily disabled to avoid partial restores. Message export uses paginated reads and chunked writes to keep arbitrarily long messages intact without truncating content to shrink archives. Large backups may still take noticeable time and free storage space. If the manifest flags unsupported skill or file names, those items are excluded from selection. Skills are checked as a whole rather than transferring partial scripts or configs—clean up those names and reload the manifest. All other selectable content exports normally. Export and Nearby Transfer verify login credentials for selected SSH configurations in advance. If credentials have expired or become unreadable, re-enter the password or re-select the private key in Remote Connections and save; unlock the device first if locked. Any credential read failure aborts the entire export without creating a package missing credentials. Previews hide credential values, but exported packages contain plaintext credentials for selected configurations. ## Huawei Cloud Drive sync & upload status - During upload, Cube monitors both system sync status and actual cloud file upload completion. When the network is unavailable, system sync is restricted to Wi-Fi only, battery is low, cloud space is full, local storage is low, or device temperature is too high, actionable reasons appear promptly instead of stalling silently. - While uploading, the status shows **Syncing to Huawei Cloud Drive**; duration depends on archive size and network speed. Because the OS does not provide byte-level upload progress for the file, no time-based percentage is shown; the backup is marked successful only once the target file is confirmed uploaded. - Creating a folder and refreshing backup history wait for cloud directory sync to finish first. Right after creating or clearing folders, the system may briefly return "Not ready" (`22400001`); the app retries with brief backoff and reports failure only if it still does not recover. On sync failure or timeout, the last displayed list is kept with a prompt to check or retry; keeping the previous list does not mean it reflects the latest cloud state or that backups were deleted. - Packages left only locally after an interrupted upload are marked **Pending upload**, and neither update the "Last backup" timestamp nor show as safely backed up. - Cloud-only backups are downloaded locally first, then copied into the import cache. Both download initiation and transfer respond to cancellation and timeouts; on cancellation or failure, the app tries to stop the system download, and no app data is written until you confirm restore. Make sure you have enough free space for both downloading and extraction. If a cloud directory or system sync service error occurs, toggle this app's sync switch off and back on in system Cloud settings as prompted; if the issue persists, restart the device and submit diagnostic logs. If the backup directory path is occupied by a non-directory entry with the same name, the app attempts to preserve the original item and repair the directory, failing clearly if it cannot be handled safely. ## When another device cannot see your backup First confirm both devices use the same Huawei Account, that system Cloud Drive sync is enabled for Cube Agent, and that the source device's backup finished uploading—then refresh backup history on the target device. If you see a directory-not-synced or sync-restricted notice, check network, Wi-Fi-only settings, battery, and storage before retrying. Generating a backup file locally on the source device does not mean it has uploaded to the cloud, and updating the app does not automatically turn an old un-uploaded backup into a completed backup. ## Important notes - Huawei Cloud Drive, WebDAV, and SMB **track backup progress and history separately**—you can use multiple channels as needed, and switching channels does not automatically copy backups from another channel. - This is **disaster-recovery backup**, not real-time two-device collaboration: editing on both devices and restoring back and forth may overwrite data, so designate one primary device for routine backups. - Backups contain keys and login credentials for selected configurations—store them only in trusted locations. Hiding values in previews does not mean exported files are scrubbed. - Knowledge Base document bodies restore with backups created in version 1.4.3 and later; older backups containing only mount references require re-importing Knowledge Bases on the new device. - After importing preferences, default models and Prompt Cache settings refresh automatically—no app restart is needed. - Tap **Run in background** on the backup progress dialog to leave the page with the in-app Back button or system back gesture. You will get a notification when finished, and returning to Data Backup lets you follow the same task in the progress bar. During restore, stay on the page until completion. - You can enable backup reminders on the Data Backup page, evaluated against the latest backup time across all three channels; reminders do not run backups automatically. For server backups, use a dedicated account scoped to the required folder permissions, and store backup files containing credentials securely. --- # How do I use knock-to-share transfers? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Data & Sync. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/nearby_transfer/ ## Understand the current boundaries first This is an experimental file transfer feature that has not yet been verified across two physical devices. It packages your selected content, hands it off to system sharing, and lets the receiving device review and import it; **automatic two-way sync is not supported**. Availability depends on device models, OS versions, and Tap-to-Share support on both devices. ## Sending steps 1. Install a supported version of Cube on both devices, keep both screens unlocked, and turn on Huawei Share. 2. On the sending device, go to **Settings → Data & Sync → Tap to share** and choose Send; you can also find the entry via Settings Search. 3. Select the content to transfer and review the manifest. API keys, search keys, MCP auth credentials, SSH credentials, and assistant environment variables belonging to selected configurations are included in the package—the file contains plaintext credentials, so send it only to trusted devices. 4. Follow the on-screen guide to tap the supported devices together, then confirm the transfer on the system card. You can also tap **Share file** on the export page to send the package through another channel. ## Receiving & importing After a phone, tablet, or PC receives a Cube transfer package via the system, choose to open it with Cube and review the import. If it does not open automatically, open it with Cube from your file manager or select the file manually on the Import Data page. Supported tablets and PCs can also enable in-window receiving from the receive guide. The file enters the import manifest only after passing validation and follows the same rules as file import: conversations, memories, and usage stats merge by default (conflicting conversations are saved as recovery branches), or you can explicitly choose to skip, keep a full copy, or replace. After receiving the file, review and finish the import on the receiving device. ## Failures, cancellation & feedback If waiting times out or fails, retry or use **Share file** instead. Leaving the page or switching to the background stops in-app waiting; for transfers already handed off to the OS, check status or cancel them in the system interface. When submitting feedback, include both device models and OS versions, transfer direction, failure stage, on-screen prompts, and whether regular file sharing worked. Never submit transfer packages, API keys, or private keys. --- # Import third-party backups > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Data & Sync. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/foreign_import/ ## Supported sources Open **Settings → Data & Sync → Import Data** and select a backup file. Currently supported sources include Cube Agent's own backups, as well as backup exports from DeepSeek, Cherry Studio, RikkaHub, and Kelivo. ## DeepSeek Bring historical conversations exported from the DeepSeek mobile app or web app into Cube Agent. No API key is required to import chat history. 1. In the DeepSeek mobile app, tap the top-left menu, tap **…** next to your account, open **Settings → Data Controls → Export all chat history**, and tap **Copy download link** once ready. On the desktop web app, open **… → System Settings → Data Controls** in the bottom-left sidebar and click **Download** next to **Export all chat history** to save the ZIP. 2. In Cube Agent, open **Settings → Data & Sync → Import Data**, tap the paste button or paste the link directly in the **Move from DeepSeek** card, and tap **Download and review**. Current chat history and 2024 legacy chat history are provided as two separate links—you can paste both at once, and the card shows each archive's size and remaining validity. If you already have the ZIP file, tap **Downloaded ZIP? Choose file** or **Choose a backup file**—no manual unzipping is required. 3. Check the conversations you want to import. New conversations without an assigned assistant require picking one existing assistant under **Import to assistant**, then tapping **Done selecting**. 4. To preserve images, files, and reasoning/search logs, keep **Conversation attachments** and **Reasoning and tool logs** checked. 5. Tap **Review import**, confirm the target assistant, conversation count, and attachment count, then tap **Confirm import**. When both links were pasted together, the completion page displays **Continue reviewing legacy chat history** so you can import the second package using the same steps. ## Export links & size limits - Export links are temporary URLs that usually expire within 1–2 days; anyone with the link can download your chat history, so do not forward it. If it shows as expired or invalid, return to DeepSeek to export again and copy a fresh link. - Keep the Import screen in the foreground while downloading; you can cancel anytime. Once downloaded, the link is cleared from the page, and the downloaded ZIP is deleted after import completes or when you leave the page. - Archives up to 50 MB download directly; archives between 50–200 MB display total size first—Wi-Fi is recommended, and check that you have enough free space (about 3× the archive size plus 200 MB). - Archives larger than 200 MB are not downloaded inside the app. Tap **Download in browser** or **Copy link** in the prompt, download it on your phone or transfer it from a computer to your HarmonyOS device, and then pick the file to import—all content is preserved identically. ## DeepSeek legacy history Legacy export packages (typically named `old-version_conversations.zip`) contain only `chat.csv` and `coder.csv` without conversation divisions. Cube imports them by file into two conversations—**DeepSeek Legacy · Chat** and **DeepSeek Legacy · Coder**—preserving questions and replies in their original order. Legacy exports contain no reasoning chains, search sources, or attachments; timestamps are shown in Beijing Time (UTC+8). Imported earlier and saw different branches laid out as multiple turns? Re-select the original DeepSeek ZIP and keep the default **Merge and keep conflicting content** option for duplicates. When matching original records, Cube restores branches inside the existing conversation while keeping any continued messages, attachments, favorites, and assistant assignment. If you already continued chatting, opening the conversation displays the branch containing your continuation first. If records cannot be matched, the original conversation is kept intact and you can choose **Keep both** to import into a chosen assistant. When history or attachments are large, preparing the preview and writing data takes time. Wait for the import manifest to finish loading before continuing and leave sufficient free space for selected attachments. You can review conversations in the import preview and import in batches as needed. Import preserves titles, timestamps, pinned status, message text, deep reasoning, search sources, and bundled images and files. Newly imported conversations open to the branch that was active when exported from DeepSeek; tap the left and right arrows below a prompt or reply to switch versions and their follow-up turns. Incomplete replies keep whatever text was captured, and messages with incomplete parent links are preserved in original order with a notice in the import preview. Readable chats are prioritized: if an individual conversation or message is damaged, an attachment is missing, or a segment is unsupported, that piece is skipped and flagged in the preview while remaining chats still import. DeepSeek account profiles are not imported; because exports do not provide exact model versions, API settings, or per-message token usage, choose a model configured in Cube Agent if you want to continue chatting. When continuing an imported conversation, you can enable **File Operations** or **Code Workspace** inside it. Conversations imported earlier can also use these tools directly after updating the app. Imported attachments remain viewable in Conversation Files, and files newly generated by tools are saved under the current conversation. ## Cherry Studio In Cherry Studio, export using **Export as JSON**. Direct backups of the LevelDB directory are not currently supported. Tool call history, web search results, and preferences are not imported. ## RikkaHub Full conversations rely on reading the database inside the backup. If database reading fails, only providers and assistants may be imported. RikkaHub import does not include image/file attachments, tool call history, web search results, or preferences. ## Kelivo Kelivo imports recognizable data including conversations, messages, providers, and assistants, but does not include image/file attachments, tool call history, web search results, or preferences. --- # Storage Management > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Data & Sync. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/storage_management/ ## What it is Storage Management lets you inspect how much space each module uses and safely clean up orphaned or redundant files when device storage runs low. Open it under **Settings → Data & Sync → Storage Management**. ## What usage you can view Space breakdown is shown by module, including Chats & Messages, Chat Attachments, AI Images, Knowledge Base, Skills, Script Workspaces, Cache, Database, and App (**Cache** merges temporary cache with model/provider icon cache; **Database** is displayed as a single row rather than split into main DB / WAL / SHM). ## Cleanable items - **Orphaned Attachments**: Attachment files no longer referenced by any conversation or record. - **Temporary Cache**: Temporary files such as import/export previews and model/provider icon caches (re-downloaded on demand after cleaning); cleanup automatically protects active Incognito Chats, ArkWeb, mounted folders, and running tasks. - **Script Workspaces & tool outputs**: Residual script outputs, orphaned parsed text, and tool result folders left behind by deleted conversations. - **Unused resources & fonts**: Downloaded fonts, appearance assets, and voice resources that are not currently enabled. ## Is it safe? Use **Clean Up** at the bottom of the page to remove selected redundant items, and review the list before confirming. Scanning checks file references across chat attachments, generated media, message content, and unsent drafts; if reading fails, scanning stops immediately so an incomplete reference list is never used to treat files as unused. Large chat histories are read in batches to reduce long UI freezes; if scanning fails, retry as prompted rather than treating an incomplete scan as a reason to wipe attachment folders. ## When to use it Visit Storage Management whenever storage usage looks unexpectedly high or you receive a low-space alert. If a "Database WAL bloat" warning appears on the **Chats & Messages** row, it means the write-ahead log has not been reclaimed yet (often larger than the main database) and does not reflect your actual data volume—continued normal use or restarting the app typically compacts it automatically, with no need to delete files manually. --- # Diagnostics & crash logs > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Data & Sync. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/diagnostics/ ## When to use it When experiencing crashes, freezes, or hard-to-reproduce errors, open **Settings → Connections & advanced → Diagnostics & Crash Logs** to view recorded system fault reports and application runtime logs. ## Chat request debugger (Request details & cache diagnosis) When troubleshooting prompt injection, tool definitions, or why cross-turn prompt caching broke, enable **Request debug mode** (off by default) in the **Chat request debugger** card at the top of **Diagnostics & Crash Logs**. Once enabled, every newly generated assistant reply provides a detailed view under **More → Request details**, including a token usage overview, sent payload segments with auto-insertion annotations, cross-turn cache breakpoint diagnostics, and redacted raw payload viewing, copying, and export (embedded Base64 and historical image payloads are automatically collapsed). - Inside the card, you can toggle **Save full request body** as needed (when off, only segment structure and usage are stored to save space while cache diagnosis stays available), choose a **Retention limit** (20 / 50 / 100 replies, automatically pruning the oldest records once exceeded), or manually **Clear** them anytime. - Debug records are stored only in an isolated local sandbox and are never included in backups, cloud sync, or Nearby Transfer. Sensitive headers such as `API Key` and `Authorization` are masked before saving; managed services including SiliconFlow (built-in), pay-as-you-go, and free trial automatically hide endpoint URLs, auth headers, and internal billing fields. ## Capture application logs Log capture is off by default. When troubleshooting, enable the log capture toggle on this page first, then go back to the affected screen to reproduce the issue. By default, only warnings and errors are recorded; when more detail is needed, enable **Detailed logs (including INFO / DEBUG)**. When reporting Huawei Cloud Drive backup or sync issues, be sure to enable detailed logs before reproducing—otherwise the report will not capture step-by-step backup records. Capture automatically continues across pages and app restarts within a 15-minute window without needing to re-enable it, stops automatically after 15 minutes, and remains off on subsequent restarts. Application logs retain roughly the latest 2 MiB. The on-screen preview displays the tail of the log, while exporting includes all currently retained logs; you can also clear application logs when needed. Shared or exported reports also include **Memory watermarks**: the app records memory usage at startup, foreground/background switches, opening a conversation, system low-memory warnings, and every 10 minutes while running, keeping the most recent 240 entries across crashes and restarts so you can see whether memory climbed continuously before a crash. Memory watermarks operate independently of the log capture switch and record only memory metrics, concurrent active reply counts, and browser tab counts—never conversation content. ## How to report an issue 1. After reproducing the issue, return to Diagnostics and refresh to view the latest entries. 2. Use **Share Log**, or choose **Save to File** to export a TXT file, selecting whether to include system fault details as needed. 3. Open **Settings → Feedback & Suggestions** and attach the TXT log file to a new ticket or follow-up message. 4. Also note the time it happened, reproduction steps, and whether it reproduces reliably so the log can be matched to your actions. Feedback supports attaching 1 UTF-8 TXT file up to 5 MiB. Selecting an attachment does not upload it immediately—it uploads only when you submit or send. Logs may contain runtime details, so inspect the file before sending to avoid including keys or information you do not want to share. Having no crash record does not mean no issue occurred—you can still submit application logs and reproduction steps. --- # How do I connect to an SSH server? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Remote connections. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/ssh_connect/ ## First connection (Pro) 1. Open **Settings → Connections & advanced → Remote connections → Add server**. 2. Enter the server address, SSH port (usually `22`), and username on the server. Name is optional; enter an IP address or domain name without `ssh://`. 3. Choose **Private key** or **Password**. Select the private key from a file, and enter its passphrase if encrypted. Login credentials are encrypted and saved locally automatically without needing a separate save toggle; if missing or unreadable, fill them in as prompted before connecting. 4. Tap **Connect**. On first connection, compare the host fingerprint against your server console or administrator's record, then choose **Trust and connect**. ## Terminal & chat tools - **Open terminal / Resume terminal**: Type commands directly and press Enter to run them—no model configuration or per-command approval required. Terminal input and output are never automatically sent to models. - **Remote connections tool in chat**: Enable **Remote connections** in the chat tool list—no need to pre-select a server. The **Remote connections** entry sits in the same row as web search, tools, and reasoning; tap it to manage servers. The model queries configured servers first and selects a target based on your request, asking first if the target is unclear. Every execution displays the target server, and the model must support tool calling. Manual terminals and chat commands can connect to the same server simultaneously. Chat uses an independent connection and does not inherit the terminal's current working directory or temporary environment variables; concurrent chat executions against the same server remain mutually exclusive. The server page does not store permanent bindings between conversations and hosts. ## Single-hop SSH jump host To reach an internal target server through a bastion or jump host: 1. First add and save the directly reachable jump host in **Remote connections**, including its address, port, and login credentials. 2. When adding or editing the target server, select that jump host from the **SSH jump host** dropdown beneath the port field (single-hop jump hosts are supported; multi-hop nesting is not supported yet). 3. On first connection through a jump host, you will be prompted to verify the host fingerprints of both the jump host and the target server separately; changing the jump host resets the target server's fingerprint trust and "Always Allow" approvals. Interactive terminals, SFTP file browsing, and chat SSH commands all share the same jump-host chain. If other servers reference a jump host, update their connection settings first before deleting the jump host. Exporting or transferring a target server via Nearby Transfer automatically includes the selected jump host and its login credentials. ## Edit connections Tap **Edit** on a host in the server list. Leaving new credential fields empty preserves existing credentials; when switching authentication methods, confirm that valid credentials exist for the new method. **More settings → Default directory** applies to chat commands (leaving it empty uses the remote login directory). Connections currently in use must be closed before editing. Each server card individually controls whether AI is permitted to use that host. Turning it off prevents assistants from discovering or operating the host through remote tools while manual terminal access and file browsing keep working as before; enabling AI usage never skips host fingerprint checks or command approval. If a host's fingerprint changes, verify it through another channel before managing old trust entries—never silently reuse previous authorization. ## Network storage The **Network storage** section at the bottom of Remote connections lets you add WebDAV or SMB storage—such as a NAS, Home Storage, or Jianguoyun—so AI can read and write files directly in chat, independent of SSH servers. See **How do I bring a NAS or cloud drive into chats?**. --- # How do I browse and transfer remote files? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Remote connections. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/sftp_files/ Open **Settings → Connections & advanced → Remote connections**, find your host, and tap **Browse files**. SFTP reuses the same SSH address, login credentials, and verified host fingerprint; the target host must have SFTP enabled. Tap anywhere on a folder row to open it; use the path bar to jump to a specific directory, and use the adjacent buttons to move up a level or refresh. Tap a file row to download it, tap **Upload** to choose local files, and tap the folder-plus button to create a new directory. Search in the title bar filters the current directory. System Back navigates up one directory, while the top close button exits the file browser directly. If authentication fails, fix your credentials and tap **Reconnect files**; when returning via Cube Companion, you can reconnect to the last directory as needed. Phones switch between **Browse / Transfers**, while wide screens display files and transfer history side by side. Transfers can be cancelled, and failed or cancelled transfers can be **Retried from the beginning**. Replacing a remote file with the same name always requires fresh review and confirmation—it does not inherit "Always Allow" from chat commands. In the regular chat attachment panel, **Local files** selects files from your phone, while **Remote files** downloads from a host and lets you choose **Attach to chat** once complete without sending automatically. Downloads can also be saved via **Save as**; clearing transfer records does not delete copies already saved or attached to chat. The chat **Remote files** tool can browse, create, upload, and download. Direct text creation supports up to 16 MiB (counted in UTF-8 bytes). Attachments and generated Excel, PDF, image, and other files upload unchanged up to 256 MiB per file without overwriting existing remote files of the same name. The approval sheet offers **Allow Once** or **Always Allow**. Always Allow is stored separately by action group: approving during browse or download unlocks only **Browse & download**, while approving during create or upload unlocks only **Create & upload**. It is saved on this device, persists across restarts, and applies to all conversations where the Remote files tool is enabled on configured, verified servers; you can inspect and revoke permissions per action under **Settings → Tool Services → Permissions → Remote files (SFTP)**. It is independent of per-host SSH command permissions, and server identity and conversation file scope are still checked on every call. Leaving the page does not automatically cancel transfers, though extended background execution depends on the OS. Interrupted transfers do not automatically restart after relaunch, and resumable transfers are not provided. --- # How do terminal fonts, paste and shortcuts work? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Remote connections. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/ssh_terminal/ ## Fonts & Interface The terminal follows the app's light/dark display mode and uses the **Code font** from font settings. Pick a code font in **Settings → App Settings → Appearance**—there is no need to select it again inside the terminal. If no font is configured or loading fails, the terminal falls back to the system monospace font. ## Common Operations Tapping or swiping inside the terminal area will not bring up the on-screen keyboard; tap **Keys** in the quick key bar to start typing. Swipe up or down to scroll through history, and pinch with two fingers to adjust the font size (8–24, default 14) without opening the keyboard. Terminal font size is saved independently and does not affect the global code font; you can also adjust or reset it under **Display**. Open **Display** from the title bar menu to choose **Fit / 80 / 120 / 160 columns**. Fit mode wraps naturally to the screen width; full-screen programs such as `top` decide which columns to show, while wide-column modes report a larger terminal width to the remote host so you can pan left and right instead of breaking tables with forced line wraps. Tap Cube to expand or collapse the quick key bar, which provides Esc, Tab, Ctrl, arrow keys, Keys, and More. Home, End, PgUp, PgDn, and key shortcuts live inside the **More** control panel, which you can also open from **Display** in the title bar. **Ctrl** works as a one-shot modifier: tap to activate it, then type `C` to send Ctrl+C, or combine it with arrow keys. To keep the key bar visible at all times, choose **More → Pin tools**. Even when Cube is hidden, an alternate key bar remains available. ## Focus Mode & Landscape Enable **Focus mode** from the title bar menu or the control panel to hide the standard title bar and expand the terminal viewport; controls to exit focus mode and resize the font remain accessible at the top. On phones, you can switch to **Landscape**, then tap **Restore orientation** to return to the previous rotation policy; leaving the terminal page also restores it. Non-fullscreen windows may not support orientation switching—refer to the on-screen prompt. The terminal runs a persistent shell, so states like `cd` and `export` carry over within the same terminal. Each chat command runs with its own working directory and does not inherit manual terminal state. ## Custom Shortcuts Open **More (or Display) → Shortcuts → Manage** to add key combinations such as `Ctrl+L`, `Alt+B`, or `Ctrl+Shift+Left`. A label is optional—for example, you can name `Ctrl+L` "Clear screen". Tap a saved shortcut to edit or delete it. Up to 12 shortcuts can be saved and remain stored locally across restarts. Supported combinations include Ctrl, Alt, and Shift paired with letters, digits, arrow keys, Home / End, PageUp / PageDown, Insert / Delete, and F1–F12. Certain combinations have no universal terminal encoding, in which case the app will prompt you to choose another key. Shortcuts send key combinations rather than command scripts; the actual effect depends on the remote shell or running program. Default shortcuts include Ctrl+C, Ctrl+D, Ctrl+L, and Ctrl+Z. Ctrl+C typically interrupts the current command, Ctrl+D may exit the shell, and Ctrl+Z typically suspends the foreground job. ## Copy & Paste Tap **Select text** in the control panel, long-press to highlight text, and tap **Copy selection**, or cancel selection to return to scroll mode. Tap **Paste** to preview the clipboard content first; multiline text requires an extra confirmation step. The app does not append an extra Enter, though line breaks already present in the pasted text may still execute commands. External keyboards can operate the terminal directly. Press `Ctrl+Shift+C` to copy selected text, and `Ctrl+Shift+Esc` to move focus back to the native toolbar. --- # How do SSH approval and output sharing work? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Remote connections. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/ssh_approval/ ## Before Command Execution Choose an approval policy under **Remote Connections → Chat execution settings**: - **Ask every time**: Inspect each command proposed by the model, then approve that single run or reject it. - **Model review**: Choose a dedicated review model, test it, and save. The **Local write guardrail** toggle below is enabled by default: the app first uses the local guardrail to accurately intercept mutating operations—such as edits, installations, deletions, privilege escalation, file-write redirections, and script execution—and immediately shows a manual confirmation sheet, while asynchronously invoking the independent review model in the background to explain what the command actually does in plain language and check whether it matches what the main model claimed (without blocking manual confirmation; if anomalies or high risks are detected, the warning dynamically escalates to red). The confirmation sheet supports syntax-highlighted read-only viewing, on-demand command editing, and collapsing. Remaining read-only diagnostic commands are handed to the review model along with recent user messages and the stated command intent, and execute automatically once confirmed read-only and aligned with your goal. If you prefer to let the independent review model and rules handle all judgments flexibly, you can manually turn off **Local write guardrail** in **Chat execution settings → Model review**. Whenever the review model requests confirmation, flags high risk (including suspected bypasses), fails to review, or times out, a manual confirmation prompt appears—it will never skip confirmation or silently abort on your behalf. In the confirmation sheet, you can also enable **Temporary session prefix approval** for a single non-high-risk command (strictly scoped to the current conversation, this host, and the current directory; never permits pipes, redirections, privilege escalation, or scripts; revocable with one tap at any time; automatically expires on restart or disconnect). Testing the model checks both basic read-only allowance and typical write-operation blocking, and reports response latency. **Extra review rules** lets you add extra allow or tighten conditions within the read-only scope (for example, asking before reading production logs or sensitive configuration files). The review model setting is shared with the SSH command review role in **Default Models**. - **Always allow this host**: Enable per host under **Remote Connections → Chat execution settings → Host permissions · Always allow**; once confirmed, it takes effect immediately without disconnecting the terminal. You can also configure it from the server edit page or **Tool Services → Permissions → SSH hosts**. On first use, the app connects to the server and verifies the host fingerprint right on that page—no need to open the terminal first. When enabled, chat commands on that host run directly, including edits and deletions, without invoking the review model or prompting per command. Turning it off falls back to the global setting. Changing the address, port, username, or authentication type, or clearing host trust requires re-enabling this option. Host-level "Always allow" takes priority over the global approval mode, and **Pause model review** will not disable a host's Always allow setting. Built-in credential-access blocking, connection verification, and execution-state checks remain in effect, but they do not constitute a remote permission sandbox—actual command permissions depend on the SSH account. Manual typing in the standalone terminal does not go through chat approval. The manual terminal and chat can connect to the same server simultaneously: chat commands use a separate connection and do not inherit the terminal's current directory or temporary environment variables, while chat executions on the same server remain mutually exclusive. ## After Command Execution Command output is returned directly to the current chat model for analysis and follow-up actions without extra confirmation. The review model only receives the pre-execution command and necessary context—never the execution output. Long output may be truncated, so rely on the actual status and exit code shown on the execution card to judge results. ## How Many Tokens Does It Use? The standalone terminal does not call any model. In chat, every command round and its returned output enter the model interaction, so chained commands increase both turns and context size; Model review additionally invokes the review model. Enabling "Always allow" on a host saves only the review model's token usage and does not waive chat model costs. There is currently no dedicated multi-command summarization or on-demand reader for long output. --- # What about background sessions and Tailscale? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Remote connections. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/ssh_network/ ## Leaving the Page & Switching to Background Leaving the terminal page does not disconnect your session—you can tap **Resume terminal** from the server list at any time. Active terminals, running commands, and queued SFTP uploads or downloads continue operating when you switch to the background or turn off the screen with the help of system background-execution protection, displaying "Running a computing task" or "Transferring data" in the notification bar. Once all remote tasks finish and no other background jobs remain, the notification disappears automatically. The notification only indicates active status and never exposes commands, filenames, or output. To learn more about why this notification appears, see **"Why does the notification bar say "computing task" or "data transfer" in the background?"** in Help Center. Please allow notifications for the app. Long idle periods, system battery-saving pauses, app termination, or network switches can still interrupt a connection, so the notification does not guarantee an unbroken connection indefinitely. If you manually dismiss it from the notification shade, it will not repeatedly pop back up during that background session. Only tapping **Disconnect** in the title bar menu closes the local terminal connection. Disconnecting does not stop remote tasks, and reconnecting does not automatically replay previous commands. If the app indicates that a task status requires verification, check on the server or via another connection before releasing the lock. ## SSH / SFTP in the Browser A connected and authenticated Web workbench can continue using standalone SSH/SFTP sessions, terminal input, and file transfers after the mobile client moves to the background, provided the local Web service and network remain available. Stopping the Web service, closing the session, or losing access authorization prevents further operations; if the system reclaims the app process, the service will also stop, so permanent background availability is not guaranteed. The Web workbench does not share the manual native terminal, and host credentials and fingerprints remain managed inside the app. Native Cube Companion only tracks native remote entries and does not display Web sessions or Web transfers. ## Connecting via Tailscale 1. Join both your phone and the target machine to the same Tailscale network and verify both devices are online. 2. Run a standard SSH server on the target machine and allow your phone to reach the actual SSH port. 3. Turn on a system VPN on your phone that covers Cube Agent. If you use a native HarmonyOS client with per-app split tunneling, make sure Cube Agent is included. 4. In Cube Agent, add the target machine's Tailscale IP address (typically `100.x.x.x`), SSH port, server username, and password or private key, then verify the host fingerprint. Add each machine individually. This setup uses standard SSH routed over the Tailscale network—Tailscale itself does not replace the target machine's SSH daemon or login credentials. Tailscale's built-in Tailscale SSH uses a separate authentication policy and should not be confused with standard SSH configuration. ## Common Connection Issues - **Timeout**: Check your network, VPN coverage, Tailscale access rules (ACLs), and the server's firewall. - **Connection refused**: Check whether the SSH service is running and whether the port number is correct. - **Authentication failed**: Enter the credentials for the server's OS user account, not your Tailscale account. - **Host key changed**: Verify the new fingerprint with your administrator before updating trust. When connecting from a phone to an actual machine, do not reuse the emulator test gateway `10.0.2.2`. --- # Web Server > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Web & LAN. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/web_server/ ## What It Is Web Server lets you open your local chats and model configurations from a browser on a computer or another device on the same LAN, with no extra desktop client to install. ## How to Enable Open **Settings → Connections & advanced → Web Server** and toggle the switch on to start the service; toggle it off again to stop it. Once stopped, browsers can no longer connect. If you start and stop it frequently, add the 2×2 **Web Server** desktop card (available in **Transparent** and **Standard** styles) to your home screen. You can toggle the server on or off in the background and check its status and port with one tap without leaving the home screen or opening the app. LAN access requires configuring an access password in settings first; if no password is set, the card shows **Set up** to take you straight to this page. ## Access Scope & URLs - **Localhost**: Open in a browser on this device. You can choose password-free access or turn on password protection. - **LAN**: Allow computers or tablets on the same Wi-Fi network to connect. Switching to LAN for the first time walks you through setting an access password. If you need Public IPv6 access, enable it separately under **LAN** while keeping password protection on. - After starting the server, tap the access URL at the top of the page to copy it. ## Port & Password Tap **Access password** or **Port** to open the configuration sheet. While the server is running, password-protection changes apply immediately. Changing the port or switching the access scope automatically restarts the server; copy the updated URL and reload after changing the port. ## Using with Desktop Agents Desktop agents such as Claude Code and Codex can also read and write memories and system prompts directly through Web Server—see **"Desktop Agent Migration"** for details. --- # Desktop Agent Migration > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Web & LAN. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/desktop_agent_migration/ ## What It Is If you regularly use desktop agents like Claude Code or Codex on your computer, the memories and custom instructions they have built up (such as `CLAUDE.md` and `AGENTS.md`) can be migrated into Cube Agent by the agent itself. The agent reads the onboarding guide through Web Server's API and writes directly to global memories, assistant memories, and system prompts—no manual copy-pasting or typing through browser chat, with Markdown formatting preserved intact. ## How to Use 1. Open **Settings → Connections & advanced → Web Server** and start the service. When your computer and phone are on the same Wi-Fi network, set **Access scope** to **LAN** and set an access password when prompted. 2. Tap **Copy desktop agent prompt** below the access URL. 3. Paste the prompt into your desktop agent. It will first read `/api/agent/guide` to learn the rules and ask you for the password when needed. 4. Once the agent lists what it plans to write, review and confirm before letting it proceed. Afterward, you can verify the results on the Memory Management and System Prompt pages. ## Where Data Is Written - **Memories**: Best for long-lived personal facts and preferences, written as "one fact per entry". By default they are written to Global Memories, or you can target a specific assistant; the assistant must have memory enabled (and "Use global memories" enabled if relying on global memories) for them to take effect. - **System Prompt**: Best for behavioral rules, response styles, and similar instructions. Can be written to the global System Prompt or a specific assistant's Prompt, preserving headings, lists, and code blocks as-is. ## Rules & Limitations - Memories are append-only with automatic deduplication, so running a migration again will not create duplicate entries; deleted memories move to the Recycle Bin and can be restored. - The API does not support full replacement or batch deletion. To merge or trim memories, use **Smart Organize** inside the app, where you can preview before saving. - Batch memory writes are a Pro feature, just like in-app batch import. Reading memories, editing or deleting single entries, and reading or writing system prompts are unrestricted. - Writing a system prompt overwrites its existing content; the migration prompt instructs the agent to ask for your confirmation before writing. - Assistants that require authentication must be unlocked in the app first before their memories or prompts can be read or modified. ## Best Practices - Have the agent place personal facts into Memories and workflow rules into the System Prompt—avoid splitting long rulebooks into separate memory entries. - If you are not using a desktop agent, you can also tap **Import from file** on the System Prompt or Memory Import page to load `.md` or `.txt` files directly. - You can change the access password after migration is complete to invalidate old tokens immediately. --- # Public & Remote Access > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Web & LAN. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/web_remote_access/ ## What It Is Public & Remote Access lets you reach your local service even when you are not on the same Wi-Fi network, while providing password protection, encrypted sessions, and a fixed domain for access. ## Access Password Configure your access password in the **Security** section. Always set a password whenever LAN or public access is enabled to prevent unauthorized access. ## Require Password When the **Require password** toggle in the **Security** section is enabled, connecting over LAN or the public internet requires entering your password (authenticated with JWT encryption). You must set an access password before enabling this option. ## Public IPv6 Access (Experimental) Located in the **Public access** section, this option can be enabled on networks that have a public IPv6 address so remote devices can reach your device over the internet. You must set an access password and enable **Require password** first. Actual reachability depends on your ISP's and router's inbound firewall policies. ## IPv6 Domain Access Built on top of Public IPv6 access, this maps a changing public IPv6 address to a fixed domain for convenient long-term access (Pro exclusive). Public IPv6 access must be enabled first. ## Enable Order These options depend on one another and must be enabled in sequence: Access password → Require password → Public IPv6 access → IPv6 domain access. Later options remain unavailable until all prerequisites are enabled. ## Security Recommendations Whenever you expose the server to LAN or the public internet, always set an access password first; for public access, keep **Require password** enabled as well. --- # Browser Chat > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Web & LAN. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/web_chat/ ## What It Is Cube Web is the unified desktop web workbench served by the built-in Web Server. Once the service is running, enter your device's URL in a computer or tablet browser to seamlessly use your device's conversations, models, files, image generation, and remote connections—no extra desktop client required. ## Workspace Navigation & Conversation List - **2×2 Grid Navigation**: The top of the left sidebar groups four workspace entries—**Chat / Images / Files / Remote**—while the bottom lets you switch between light and dark themes or open the browser settings dialog. - **Status Grouping & Pinning**: Conversations that are actively running or awaiting tool approval are automatically grouped under **In Progress** at the top (labeled "In Progress" or "Waiting for your confirmation"), and pinned conversations stay in sync with the native app. New conversations use deferred persistence, so no stray empty chats are saved before you send a message. - **Aurora Empty State**: Starting a new chat presents an animated aurora background, Cube character illustration, and quick scenario suggestion cards—you can start typing immediately or drag and drop files right in. ## Immersive Reading & Natural-Language Process Timeline - **Centered Reading Column**: Chat content uses an easy-to-scan centered layout with full support for Markdown, math formulas, syntax highlighting, tables, SVG, HTML, and Mermaid diagram previews, plus native support for in-window message branches and seamless in-place continuation. - **Natural-Language Steps**: Thinking steps, file reads/writes, web searches, and parallel subagents are presented along a sleek timeline that describes each action in plain language. Concurrent subagents can be collapsed by batch and display synced dual-style visual badges (**Cube Prism** / **Pixel Cube**, switchable in Web **Settings → General → Appearance**). Tool or command approvals that need your confirmation clearly explain their impact scope inline in the chat stream, with technical parameters collapsed by default. - **Smooth Input in Long Conversations**: Input state is decoupled from the message history list, so continuous typing, IME prediction, `@` multi-select file/server references, and `/` skill picking stay responsive even in very long threads. ## Right-Side "Session Info" Inspector Panel A compact ring button on the right of the top bar shows current context usage in real time. Click it to expand or collapse the **Session Info** panel (automatically switches to a drawer on narrow screens): - **Context Breakdown & Compression**: Visually breaks down token usage across the system prompt, attachments, chat messages, and tool/subagent results, and lets you trigger **Compress context** or **Clear context** right from the browser. - **Session Files**: Browse this session's attachments and AI outputs in one place under **All / Uploaded / Generated**, download files, or jump to File Space in one click. - **Parallel Subagents**: When a session includes subagents, shows each task's live status, source count, duration, and token/cost usage. - **Usage Stats**: Inspect token distribution and cache hit rate for the session; when using built-in pay-as-you-go models, also displays actual billing breakdowns and peak/off-peak windows. ## Files, Image Generation & Remote Workspaces - **File Space**: Offers breadcrumb navigation, search, list/grid views, drag-and-drop uploads, batch actions, right-side preview, local access links, and one-click handoff into a new conversation. - **Image Workspace (Pro)**: Browse your gallery by date and batch, with support for reference images, aspect ratio, resolution, image count controls, and live generation progress. - **Remote Connections (Pro)**: Three-pane desktop layout with the server list on the left, an interactive terminal (with a quick shortcut bar) in the middle, and an SFTP file browser with transfer progress on the right. Adding or removing servers and managing fingerprints still happens in the mobile app. - **Settings Dialog**: Customize browser-local theme, font size, conversation width (four presets: Compact / Default / Wide / Full), send shortcut, thinking expansion, and usage display, and check account status and connection details. ## Connection & Data Sharing By default, the Web workbench reuses persistent keep-alive connections and shares the exact same local conversations and configurations with the mobile app—sending messages, pinning, branching, and archiving on one side appear immediately on the other. Using it requires the device to stay online with the local Web Server running; for one-tap toggling from the home screen, pair it with the 2×2 or 1×2 **Web Server** desktop card. --- # Workspace > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Web & LAN. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/script_workspace/ ## Overview Workspace manages files produced by the code interpreter. Web pages, images, documents, data, and code generated by the AI inside the local Code Workspace (Python and JavaScript) are all saved here. When the AI writes files to `outputs/`, a "Generated files" card appears on that message once the full reply finishes. Each message groups its outputs into a single card—collapsed by default—showing up to 3 files per page when expanded so you can page through to preview, save, or share them. For files in other workspace directories, you can ask the AI to call File Operations `deliver`: it keeps the original file, copies it into `outputs/`, and shows it in both the card and Workspace. Delivery never overwrites an existing file with the same name; for subsequent edits, modify the delivered file inside `outputs/`. Calling File Operations `write` with only a filename writes to generated files by default; specifying an explicit path keeps the chosen location. The tool distinguishes between "written to workspace" and "delivered"—do not rely on the AI's text assurances in place of real file results. Inside Session Files, use **Browse working directory** to view all workspace files and **Back to conversation files** to return; you can export directly or choose **Add to generated files** from a file's menu. Manually adding keeps the original file and lists it under generated files. ## Generating Word, Excel, and PowerPoint Files Enable **Code Workspace** in the current chat to ask the AI directly to generate Word reports, Excel budgets, or PowerPoint decks—the document libraries are built in, with no extra skill needed. Generating, saving to the device, and using system share do not require Pro; adding files to cross-session Shared Files or publishing to the public web follows membership rules. For full instructions, see **"How do I generate Word, Excel and PowerPoint files?"**. ## Two Entry Points - **Session-level (Free)**: Open from the chat page menu to view generated files and all workspace files; existing shared files can also be viewed, exported, and deleted for free. - **Global entry**: Open via **Settings → Content & files → File Space**. All users can clean up existing shared files; centrally browsing outputs across sessions and adding or organizing shared files require Pro. Existing public publications can still be unpublished under "My Shares" without renewing Pro. ## Batch Deleting While Browsing Folders While browsing folders in Workspace, long-press a deletable item or enter selection mode from the menu to select files and folders. **Select all** only selects items that can be deleted—read-only input files are excluded. Double-check the item count and scope before deleting, since directories are removed together with their contents; up to 500 items (including sub-items) can be deleted at once, so split larger sets into batches. You can cancel remaining work after confirming, though items already deleted will not be restored automatically. If file contents or permissions change, or if some items fail, a partial completion result is reported; inspect the remaining files rather than assuming nothing was deleted. ## Sent Input Files Session input files reuse the original attachments you sent, organized per conversation, for read-only browsing, format-based preview, and export. Files with the same name are distinguished by alias without renaming the original file. Input files cannot be edited or deleted directly like generated outputs; save a copy to the working directory if you need to modify them. Being able to browse an original file does not mean the model can parse its format. ## Where Imported Files Are Stored The root of Session Files contains two folders: **Input files** holds the original attachments you sent (read-only); **Generated and imported files** holds AI-generated files as well as files you added manually via **Import files** (including ZIP archives) or **Add to session files** from the input bar, all of which can be edited, deleted, and exported. Imported files live alongside AI-generated files and receive an automatic sequence suffix on name collisions without overwriting; they are neither "Input files" nor AI-generated outputs. ## File Actions & Preview Files are displayed by type. Tap any file to preview directly: images open in the in-app multi-image swipe viewer so you can browse all images in the current folder and share or save right away; HTML opens directly in the built-in preview (supporting relative CSS, scripts, and other assets in the same folder without starting Web Server); common documents use the system preview; and other formats let you pick a system app via Open With. The More menu provides Save, Save to Shared Files, Share, Preview Link, Rename, and Delete; an entire directory can also be downloaded as a `.zip`. When saving to Shared Files, you can pick a destination folder or create a new one; the Shared Files More menu supports **Move to…**, and long-press multi-select supports batch moves. On name collisions you can keep both or skip—existing files are never overwritten. After moving a file, access links pointing to the old path stop working and relative references inside the file may need updating. Long-press any file row to enter multi-select mode and batch delete selected files or folders (supported for both session outputs and shared files), with a confirmation prompt beforehand. ## Folder & ZIP Import In the **Shared Files** upload menu, choose **Upload folder** or **Import folder from ZIP**. Devices that support directory picking can select a folder directly; phones and devices without direct folder selection guide you to use a ZIP archive. Directory import preserves subdirectories, empty folders, hidden files, and binary files, and automatically avoids root-folder name collisions instead of merging or overwriting existing content. Both **Import files** and **Upload files** in Shared Files store ZIP files as-is. In Session Files or Shared Files, open a ZIP file's More menu and choose **Extract to folder**—for example, `project.zip` unpacks into a folder named `project` in the same directory (adding a number if the name already exists) while keeping the original ZIP. To import a directory directly during upload, choose **Import folder from ZIP**. You can also turn on **File operations** in chat and ask the AI to inspect a ZIP's contents or extract it. ZIPs inside Session Files extract into the same directory, while sent ZIP attachments extract to the root of **Generated and imported files**. The per-file limit for shared files and input ZIP archives is 200 MiB; a shared directory supports up to 500 MiB total, 10,000 items, and 64 levels of nesting. Session file import follows the 500 MiB limit. Directory imports stage the complete contents before moving them into place—if an import fails or is canceled, staged files are cleaned up so no half-imported folder is left behind. ## Batch Progress & Cancellation Standard uploads in Session Files and Shared Files are no longer capped by the app at 20 files per batch—the practical selection count depends on the system file picker while remaining subject to storage limits. Chat attachments and Knowledge Base retain their own count limits. Multiple selected files are imported one by one with live file name and progress; if one item fails, the rest continue. Canceling a standard batch finishes the current file and stops the rest, keeping already-completed files. Results clearly distinguish succeeded, failed, and not-started items so you can reselect and retry failed items; leaving the page also stops remaining items. Search in the title bar filters the current directory and combines with type filters to define what **Select all** selects; changing search text or switching folders clears the current selection. Breadcrumb navigation lets you jump up to the parent or any ancestor directory, and Refresh is located in the directory menu. ## Shared Files & Local Access Links The per-file storage limit for Shared Files is 200 MB, consistent across local uploads, saving session outputs, AI-assisted saving, and Web chunked uploads. Successfully storing a file does not mean every reading method supports that size: local Web access links currently support files up to 50 MB (open larger files inside the app), and AI reading, document parsing, and previews remain bound by their respective limits. Shared Files are meant for local cross-session reuse on your device—saving a file there does not publish it publicly. Adding, uploading, creating folders, renaming, and moving require Pro; viewing, exporting, and deleting existing files are free. AI-assisted saving, folder creation, and moving require Pro plus user authorization (choose Allow once or Always allow); AI deletion of shared files does not require Pro, shares the same authorization, and skips extra prompts once Always allow is granted. Permissions can be revoked in Settings. Other regular chats can read shared files on demand without starting Web Server; Incognito chats do not read them. Access links require authentication, an active local Web Server, and an online device; choose a domain, IPv6, LAN, or localhost URL depending on your network. For anonymous public web access, use **Publish to Web** separately. ## Publish to Web (Pro) Session Workspace includes a **Publish to Web** button at the bottom. Tap it to enter selection mode, check the files to publish (Select all is supported), and tap **Publish selected** in the bottom bar. Only checked items are uploaded, so be sure to select referenced stylesheets, scripts, and other dependencies as well. Published sites use `index.html` as the entry point when present, or generate a directory index otherwise. Submissions go through content review; once approved, they remain accessible via a public URL without requiring your device or local Web Server to stay online. Manage all publications from the membership card at the top of **Settings** via **Membership Center → Account & Services → My Shares → Site Publishing**, where you can check review status, copy links, or unpublish sites. ## Referencing Files & Inspecting Changes Use **@** in the input box to hand workspace files directly to the AI—see **"How do I point AI at a specific file or skill?"**. To see which files and exact lines the AI edited, see **"How do I see which files AI changed?"**. ## Best Practices - Use the session-level Workspace when you only need outputs from the current chat—no Pro required. - Use preview or local links for temporary sharing on the same network; use Site Publishing when others need anytime public access. - Never publish files containing API keys, personal details, or other sensitive data, and unpublish sites when they are no longer needed. - Script outputs take up local storage; clean them up periodically in File Space or Storage Management. --- # Appearance personalization > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Personalization. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/appearance/ ## What You Can Customize Tap the **battery icon + Power saving** on the right side of the **Appearance** title bar to open the Power saving half-sheet, which applies across all tabs. The page is organized into four tabs: **Appearance / Interface / Fonts / Motion**: - **Appearance** covers theme previews, Global chat wallpaper, Display Mode, Page background, and Material & Light. Press-glow color can follow the system default, follow the theme color, or use a custom color. - **Interface** covers the desktop app icon, Colorful settings icons, Model & provider icons, **Subagent icon style** (defaults to **Cube Prism**, switchable to **Pixel Cube**, synced with Web and Cloud Sync), and layout options for the conversation list, assistant list (Full cards / Compact list style and tap behavior), chat messages, and gallery. Turning off **Colorful settings icons** makes settings icons match the app accent color; turning on **Show message time** displays the sent or replied timestamp beside every user and assistant message. Chat top-bar blur can be found and adjusted separately via Settings Search. - **Fonts**: Font size, Markdown typography density, paragraph spacing, line spacing, and Body & Code fonts; online fonts are a Pro feature. You can override Body font and Code font per assistant under the assistant editor's **Fonts** section—items not overridden follow global settings, and resetting to follow global does not affect other assistants. - **Motion**: Streaming smoothness and streaming motion effects. ## Phone Screen Rotation Open **Settings → Appearance → Interface → Auto-rotate screen**, or search for "rotation lock" in Settings. This switch is on by default and follows the system Control Panel's rotation setting. If tilting your phone often triggers unwanted landscape switches, turn this off to lock Cube Agent in portrait mode when full-screen. Your preference is stored locally and persists across app restarts. The SSH terminal can still switch to landscape manually. Tapping **Restore orientation** or leaving the terminal restores the app's rotation policy. ## Themes & Page Backgrounds Open **Settings → Appearance → Appearance**. The **Theme** area at the top previews the app and chat side by side and displays each current selection. - Tap **App Colors** to expand the palette picker and choose a preset, a custom palette, or **Follow chat theme**. Sidebars, lists, cards, and settings pages all use this palette. **Follow chat theme** pulls colors from the global chat theme, while legacy "Current appearance" uses the HarmonyOS default palette. - Tap **Chat Theme** to open the theme gallery, preview a theme, and tap **Set as default theme**. Chat message pages use this theme by default, while individual assistants can choose their own. - Tap **Global chat wallpaper** below the preview to customize the chat canvas. Close the background panel after picking and tap **Save background**. Switching to a new chat theme retains your custom wallpaper, or you can switch back to **Theme default** in the preview. To give both sidebars and chats the Moonlight palette, first set Chat Theme to **Moonlight**, then set App Colors to **Follow chat theme**. Page background can independently use **Soft glow**. Under **Page background**, pick the Home screen backdrop: **Pure / Soft glow / Image / Theme background**. Theme background uses the backdrop built into the global chat theme, while UI controls use App Colors. Assistants, Chats, Knowledge, Favorites, Settings home, and Images home follow Home by default. To customize a page individually, open **Per page & image**, pick **Background scope**, turn off **Follow Home**, pick your backdrop, and tap **Save**. You can also tune image blur, overlay dim, and framing here; fine-grained card opacity adjustment is a Pro benefit. The legacy "fixed palette" background has been retired—affected pages now use a Pure background tinted by App Colors. The first time you open Appearance, a one-time notice lets you create a Custom Colors palette (Pro) from that previous tint in one tap. ## System Material & Motion Adjust **Immersive Light** and system component tiers under **Settings → App Settings → Appearance → Appearance → Material & Light**. Selected menus, sheets, confirmation dialogs, and controls on API 26 integrate native system material and interaction effects. Actual rendering depends on the OS version, device capabilities, and current settings; choosing a high-effect tier manually still adapts to device capabilities and falls back to a compatible style if unsupported. Disabling materials falls back to the corresponding theme backdrop. ## Power Saving Mode Tap the **battery icon + Power saving** at the top right of **Settings → App Settings → Appearance** and choose **Off / Follow System / On** in the half-sheet. When active, visual effects are streamlined in one click: Immersive Light and blurs become solid backplates, chat wallpapers are no longer blurred, streamed text appears directly while smoothness uses the power-saving refresh cadence, and Cube animations, composer glow, and tool-running shimmer all pause. Chat theme colors and decorations remain intact without entrance animations—ideal when scrolling feels sluggish in long conversations or while multitasking. The default is **Follow System**: it engages automatically when the device enters system power saving mode and restores when turned off; you can also force it **On** or **Off**. While active, the page notes that light and motion settings are paused without altering your saved preferences, restoring everything once turned off. This setting is stored locally only and is excluded from cloud sync and backups. When the system **Reduce motion** accessibility option is enabled, Cube animations and navigation transitions also switch directly. ## Sakura Pink Theme Expand the swatches under **Theme → App Colors** and pick **Sakura Pink**, supported in both light and dark modes. ## Custom Color Palettes (Pro) Expand **Theme → App Colors** and tap **Custom Colors** to manage saved palettes, or tap **New** at the end of the swatch strip. You can save up to 20 palettes with support for applying, editing, duplicating, renaming, and deleting. While editing, adjust core colors and preview both light and dark variants—text, surface, divider, and Markdown colors derive automatically. If Pro expires, the app falls back to the default palette and restores access to your saved palettes once Pro is active again. Custom palettes can generate share codes: import them in **My Themes** (by pasting a share code, granting system clipboard paste, or scanning a QR code from your gallery). Decoding and previewing are free; saving requires Pro. ## AI Theme Designer The AI entry on the **My Themes** page opens a dedicated Theme Designer session—built on the same architecture as AI Provider Management. It defaults to your current chat model (switchable anytime in the top bar): describe a vibe to receive multiple palette candidates, then tap **Save** or **Save & apply** on a candidate card. Saving is always triggered by you; the AI cannot modify themes directly. To match a trending palette, ask the AI to search online for reference, or send a reference image for color matching; when you mention an existing preset (such as "make a variation of Soft Blue"), the AI reads its exact color values first. Multi-turn refinement and resumable session history are supported, and when choosing among concrete options, the AI shows choice cards you can tap instead of typing. ## Markdown Typography Markdown typography offers **Compact**, **Standard**, and **Relaxed** densities, plus fine adjustments for paragraph spacing and line spacing. Line spacing offers Compact, Standard, and Relaxed presets with fine-tuning, and applies equally to Knowledge Base notes and document previews while leaving code blocks and tables unchanged. A live preview on the page shows changes across body text, lists, blockquotes, inline code, and tables in real time. ## Chat Fonts & Chat Themes Body and code fonts can be selected separately and take effect immediately in chat. The SSH terminal uses the Code font configured here as well, falling back to system monospace if none is set or available. The theme gallery includes 2 base themes (**Simple**, **Immersive**), 2 character themes (**Fangtun · Tide**, **Whale Girl**), and 7 illustrated themes (**Kitten**, **Sakura**, **Woodland**, **Ocean**, **Moonlight**, **Teddy**, **Berry**). Every theme can be previewed; themes with a **PRO** badge require Pro to apply. When Pro expires, a selected Pro theme temporarily displays as **Simple**, updating any App Colors and page backgrounds that follow it, and restores automatically when Pro is renewed. Chat themes style message bubbles, toolbars, input boxes, and accents, following Display Mode for light and dark variants. Under **Background** in a theme preview, choose between **Theme default** and a custom gallery image; themes that support solid fills also offer solid colors. Theme default uses the theme's built-in gradient, pattern, or illustration, solid colors adapt to light and dark modes, and custom images are picked from your gallery. You can also tune chat control opacity in the preview, while immersive material rendering is governed by **Material & Light**. Assistants inherit the global chat theme by default. To configure an assistant separately, open **Edit Assistant → Basic → Chat appearance**, choose a theme, tap **Apply to this assistant**, and save the assistant. To change only the background while keeping the global theme, open the **Follow global** preview, pick and save a **Background**. That assistant's custom canvas takes precedence, and switching back to **Follow global** restores the global chat wallpaper. If you prefer assistant replies without message bubbles, enable **Appearance → Interface → Hide assistant reply bubbles**—it works independently across all chat themes. Users who customized their chat background, bubble style, or opacity before upgrading will see **"Current appearance (pre-upgrade)"**, keeping their look untouched until a new theme is selected; assistants with separate pre-upgrade customizations show **"Custom (existing)"**. These legacy settings remain intact and selectable anytime, and wallpapers are restored with full backups. ## Streaming Output Streaming settings live in two places; while Power saving is active, the smoothness and motion controls below pause and streamed text renders directly: - Under **Appearance → Motion**, configure **Streaming smoothness** and **Streaming motion**. Smoothness controls how frequently AI output updates and auto-scrolls to the bottom: **Auto** (recommended) follows the app's current refresh rate so the system balances fluidity and power use; choose **Power save** to reduce heat on long replies; choose **High refresh** on capable devices for finer text motion and scrolling at potentially higher power use. **Streaming motion** controls how newly arrived reasoning and reply text appear—every style can be previewed on-page and applied to real chats without Pro. The default **Following cursor** has overhead nearly as low as no motion (text appears in chunks with a blinking cursor at the end); **Soft fade** advances text and fade smoothly at screen refresh rate for a fluid look with slightly more processing; **Color trail** builds on Soft fade by highlighting newly arrived text in the theme link color before fading to body text color, using slightly more resources; **No motion** has the lowest overhead. - Under **General**, configure **Auto-follow streaming replies** and **Highlight code while streaming**. With auto-follow on, the view tracks new output only while you stay at the bottom and pauses if you scroll up to read history. Turning off **Highlight code while streaming** renders unclosed code fences as plain text until finished to cut rendering cost during long code replies. If you find the Cube animation beneath active replies takes up space, turn off **Show Cube while replying** under **General → Reading**. ## Where to Find It Open **Settings → App Settings → Appearance → Motion** for smoothness and streaming motion, and **Settings → App Settings → General** for auto-follow and streaming code highlighting. --- # Chat input settings > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Personalization. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/input/ ## Available Options - **Send shortcut**: Choose **Enter**, **Shift+Enter**, or **Ctrl+Enter**. When set to Enter, Shift+Enter inserts a line break; with the other options, Enter inserts a line break (and Shift+Enter also inserts a line break in Ctrl+Enter mode). On-screen keyboard Return sends only in Enter mode and inserts a newline otherwise. Chat and Image Generation composers share this setting. - **Open on startup**: Under **Settings → General → Home & desktop**, choose **Chat list**, **New chat**, or **Last session**. This applies when relaunching the app from the home screen icon after its process has ended; returning from the background still resumes your previous screen. **New chat** shows the assistant's opening message; if no previous session can be restored, it opens the chat list. Launching from notifications, system share, or similar entry points opens the target screen directly. - **Toolbar order & Show MCP separately** (**General → Toolbar order**): Drag to reorder buttons on the chat input toolbar (including the "Subagents" chip, which appears only in conversations that have started subagents). Turning on **Show MCP separately** gives MCP its own dedicated button while **Tools** shows built-in tools only; turning it off merges both into one button. - **Show voice input button** (**Input & interaction / Voice input settings**): On by default. Turning it off hides the waveform icon next to Send to avoid accidental taps while still keeping long-press on blank areas of the input bar for push-to-talk. - **Suggested follow-up questions**: Toggle follow-up suggestions on or off. - **Auto-follow streaming replies**: When enabled, the view scrolls along with AI output while you are at the bottom; dragging upward temporarily pauses auto-follow. - **Message navigation**: Offers **Compact** (shows a scroll-to-bottom button only when needed) and **Full** (step through messages one by one) modes. - **Use a fixed share assistant**: Under **Input & interaction → Share preferences**, choose which assistant receives content shared from other apps (defaults to the current assistant if unset). Shared content is placed into a new chat's input box for you to confirm before sending. - **Conversation menu button**: Keep this enabled when using a screen reader so conversation actions are directly reachable. - **Remember read position**: When enabled, reopening a conversation returns you to the exact spot you were reading—including offsets inside long messages—rather than always jumping to the latest message. - **Hide assistant reply bubbles** (**Appearance → Interface → Chat messages**): Removes bubble fill, border, tail, and bubble theme badges from assistant replies so text sits directly on the chat canvas—ideal for long-form reading. Your own messages keep bubbles, and tool cards, code blocks, and tables are unaffected. Works with all chat themes and is off by default. - **Show dividers for collapsed steps** (**Appearance → Interface → Chat messages**): Controls whether a divider line appears where thinking and tool steps are collapsed between two body segments. - **Keep screen on**: Off by default and applies only on the chat detail screen. - **Waiting for your input alerts**: On by default. Sends a system notification even when the app is in the background whenever the AI asks a question or awaits your approval; tapping jumps straight to that chat. Turning it off limits reminders to the foreground. Incognito chats never send notifications. - **HTML preview** / **Mermaid preview**: HTML shows source code first by default and loads the dynamic view only when you switch to the Preview tab, or you can enable **Open HTML preview by default**. Mermaid continues using cached diagrams, and share cards always render Mermaid. Disabling a preview displays code blocks as source only. - **Allow JavaScript in HTML previews**: Requires HTML preview to be enabled. On by default, applies only when previewing HTML content, and enables script-driven dynamic content and interactivity; any prior manual off setting is preserved. If a preview looks incomplete or unresponsive, check this toggle. Because scripts inside model outputs or external content will run when enabled, turn this off for untrusted content. - **On-device OCR for PDF** and related document-parsing preferences. **Tip**: Options such as **Allow JavaScript in HTML previews** and **On-device OCR for PDF** live under **Content preview** in **General**, and can also be located via Settings Search. ## Directly Selecting & Copying Reply Text On OS versions that support system text selection, native **CubeMark** enables **Copy across lines** by default (adjustable under reading settings): long-press reply text and drag the system selection handles right in place across lines and paragraphs. For full-text copy, raw Markdown source, or file export, tap **More → Select and export** on the message. Code blocks and tables retain one-tap full-block copy actions; use **Copy MD** to copy a complete Markdown table. ## Full Copy & Cross-Section Selection Inside the Select Text sheet, switch between **Body / Markdown source**. Body strips Markdown syntax and keeps paragraphs, lists, code, and tables in their original order: tables place one row per line with Tab-separated cells so they paste cleanly into notes or split into columns in spreadsheets (light vertical lines mark cell separators visually while copying outputs Tabs); block formulas retain LaTeX source. HTML and custom blocks have no plain-text form, and collapsed blocks keep only their titles—the sheet notes how many such blocks are present. When a reply spans multiple steps, the Select Text sheet lists the entire reply body in order. Tap **Took N s** to view intermediate process steps. **Copy all** at the top copies the complete reply body: plain text (including tables) in Body view, or complete Markdown in Markdown source view. The More menu offers **Copy all (plain text)**, **Copy all (Markdown)**, **Export plain text (.txt)**, and **Export Markdown (.md)**. Choose plain text for notes, chats, or emails that do not render Markdown; choose Markdown to keep headings, URLs, formulas, and collapsible blocks, or when pasting into Markdown editors. Long replies are displayed in sections—**Select section** selects only the current section. To span sections, select starting text, tap **Select across sections**, navigate to the target section, select the ending text, and tap **Select to here**. **Copy all** copies every section; if the content is too large, follow the prompt to export instead. When opened from chat, highlight text and tap **Quote selection** to bring it back into the input box as a quote, where you can add a question or trim the excerpt before sending. ## On-Demand Rendering for Long Conversations CubeMark's **On-demand conversation rendering** renders long replies and finished long thinking blocks around your reading viewport, and now supports in-place cross-paragraph selection within the active viewport without conflicting with **Copy across lines**. Reopen the conversation after toggling this switch for it to take effect. ## Markdown Preview When a message contains a Mermaid, SVG, or HTML code block, you can preview it right inside the message and toggle back to source code anytime. ## Where to Find It Open **Settings → App Settings → General** to configure these options (chat input, reading and previews, Smart Grip, notifications, language, and more are grouped here). --- # How do message navigation, in-chat find and Message Map work? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Personalization. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/message_navigation/ ## Find in Chat Open **More chat actions → Find in chat** from the top-right corner of a conversation. The top bar transforms in place into a frosted-glass search pill without covering chat messages: - **Filters & Matching**: While the keyboard is open, filter chips above the keyboard let you narrow by **All / Mine only / AI only** and **Match case**, while the top pill displays live match counts along with previous/next buttons. - **Bottom Find Dock & In-Text Highlights**: Once you dismiss the keyboard, a frosted-glass find dock temporarily replaces the input bar so you can jump to the previous or next match one-handed in the thumb zone, showing the current match's role, timestamp, and snippet preview while highlighting and scrolling to the matching text in the conversation. ## Message Map For long conversations, open **More chat actions → Message Map** from the top-right menu to quickly scan the entire thread structure, search keywords, and jump straight to any message. In long threads, Message Map prioritizes loading messages near your current reading position and loads additional batches on demand as you scroll up or down, avoiding freezes even with thousands of messages. ## Choosing a Navigation Mode Select a mode using the segmented capsule under **More chat actions → Message navigation** in chat or **Settings → General → Reading → Message navigation**; the choice applies across all conversations. - **Compact**: Shows a scroll-to-bottom button after you scroll more than half a screen up or jump to an earlier message, and hides it again once you return to the bottom. - **Full**: Provides four actions—First, Previous, Next, and Latest message. Existing settings migrate automatically: previously enabled maps to **Full**, disabled maps to **Compact**, and unset defaults to **Full**. ## Jumping in Full Mode After you scroll roughly one screen or more in chat and pause, a side quick-navigation strip appears for about 1.5 seconds, offering jumps to the first, previous, next, or latest message. It steps by actual user and assistant message bubbles rather than targeting inner tool cards individually. Tapping again at the start or end stays in place. When jumping across a long distance, a **"Back to previous position"** prompt appears at the bottom for about 4 seconds so you can return to where you were reading before jumping; across consecutive jumps, it always anchors to the position before the first jump. ## Showing, Hiding & Repositioning You can tap repeatedly to step through messages. The strip stays hidden while scrolling and appears only after stopping; small nudges made to tap nearby controls will not summon it. Tapping message content while it is visible hides it immediately so it never blocks buttons inside cards. It also hides temporarily during text input, open menus, text selection, or while the model is waiting for your answer or draft confirmation, while remaining accessible during screen reader and button focus navigation. Long-press the navigation strip and drag vertically to adjust its height—release to save. When grip adaptation is enabled on a supported device, the strip also switches sides to match your holding hand while preserving its saved height across restarts. ## Read Position & Animations To resume where you left off after leaving a chat, turn on **Remember read position** as well. Short jumps scroll smoothly while long jumps fade out, reposition, and fade back in; when the system **Reduce motion** preference is enabled, navigation switches directly. --- # How do I change the desktop icon? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Personalization. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/desktop_icon/ ## Where to Find It & Steps Open **Settings → App Settings → Appearance → Interface → Desktop icon**, tap **Refresh icons** to check the options available for your device, and select the icon you like. Select the default icon to restore the app's original look. ## Why Other Icons May Not Appear Yet The available catalog is provided by the AppGallery icon service and depends on icon review, release status, and device eligibility. Having icon switching integrated does not mean every icon is already published; if no alternate icons appear yet, refresh again later. If the lookup fails, please try again. ## Relationship with Themes The desktop icon does not change automatically with light/dark mode or App Colors, nor does it replace the in-app or splash-screen Cube character. If a prompt indicates that your system theme is applying custom icons, restore the default icon style in your system Themes app first, then try switching again. --- # How can I use Cube with a screen reader? > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Personalization. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/accessibility/ ## Common Operations Cube Agent includes descriptive accessibility labels and state announcements for controls such as creating a new chat, switching models, opening attachments, message actions, editing models, and favorites. Once the system screen reader is turned on, you can navigate and activate controls using standard system focus gestures. ## Keep the Conversation Menu Button On Under **Settings → App Settings → General**, we recommend keeping the **Conversation menu button** switch turned on. This exposes the four-dot menu button directly on each conversation for quick access to actions; if turned off, you can still open the menu by long-pressing a conversation. ## Reading & Motion You can customize fonts and Markdown typography in **Appearance**. Quick message navigation respects the system **Reduce motion** preference, switching directly for jumps and bar visibility when enabled. ## Reporting Specific Issues If any button lacks a clear spoken name, announces an unclear state, or cannot be reached by focus, please submit a report under **Settings → Feedback & Suggestions** with the screen name, steps taken, actual announcement vs. expected behavior, and your device model and OS version. --- # Smart Grip > Cube Agent 2.4.1 Release (Build 2004105) User Guide. > Category: Personalization. Content baseline: 2026-12-05. > Web page: https://cubeagent.app/en/docs/hand/ ## Overview On supported devices, turning on **Enable grip adaptation** detects which hand is holding your device and adapts key controls accordingly. Find it under **Settings → App Settings → General → Input & interaction → Smart Grip**. ## Choose by Scenario - **New chat shortcut**: Switches sides for the floating new-chat button on the home screen. - **Input controls**: Moves the send, attachment, and model controls together. If you type two-handed and prefer the Send button to stay in one spot, turn off only this option so Send stays anchored on the right. - **Message navigation**: Switches sides for the message navigation strip and the scroll-to-bottom button. - **Screenshot shortcut**: Switches sides for the quick-attach screenshot card. - **Companion shortcut**: Opens Cube Companion settings so you can choose to follow grip, dock on the left, or dock on the right. Turning off any of the first four options restores its fixed right-side layout. Turning off the master switch pauses grip adaptation for all scenarios while keeping your individual selections intact, restoring them when you turn it back on. The Companion shortcut continues following its own docking rules: pausing grip tracking holds its last position, while fixed-side modes are unaffected by the master switch. Newly added scenario switches after an app upgrade default to on to preserve previous behavior.