A native AI chat client for HarmonyOS 6 (API 23).
One app, 15+ providers, web search, MCP, and ArkTS-native UX.
Important
This repository is mirrored for forking and contributions.
- Built entirely with ArkTS — a true HarmonyOS native app, not a web wrapper
- Continuously refined around HarmonyOS 6 (API 23), with better alignment to current system behavior
- Polished UI with dynamic blur, 8 color themes, advanced materials, and glass-like surfaces
- Adaptive layouts for phones, tablets, and large screens
- Highly customizable providers — add any OpenAI / Anthropic / Gemini compatible service in seconds
- The tools center can connect to remote streamable MCP servers for expandable tool capability
- Simple and intuitive — configure your API key and start chatting
- Home screen widget for quick access
- Background task support — keep receiving replies while multitasking
These screenshots reflect the current HarmonyOS 6 (API 23) build:
![]() Chat |
![]() Settings |
![]() Providers |
![]() Tool Calling |
![]() Themes |
![]() Glass Surface |
![]() Formula Preview |
![]() HTML Preview |
This release prepares the app for future marketplace submission, with the app name standardized as Cube Chat and refreshed icon assets. It also adds image generation, document attachment parsing, and unified image preview capabilities, while refining chat streaming, Smart Grip, and tablet details.
- Added an image generation entry, generation page, result grid, gallery history, and model capability detection
- Image generation now supports reference images, aspect ratio selection, generation settings, result preview, and saving
- Added an image prompt template library with template management and one-tap application
- Added document attachment parsing for Word, PDF, Excel, and more
- Unified image preview across chat images, draft images, edited-message images, and image generation results
- Thumbnails now adapt to the actual image aspect ratio, reducing fixed-ratio cropping
- Improved image saving, original-image preview, and gallery grid display
- Improved chat streaming rendering and waiting states while keeping the 3D loading indicator
- Improved streaming preview behavior for code blocks, HTML, and Mermaid
- Added auto show / hide behavior for the chat page quick-jump button
- Improved table color contrast and readability
- Improved tool-calling capability probing to reduce issues with models that do not support tool calling
- Improved model request parameter handling for better compatibility
- Extended Smart Grip adaptation to the chat input bar, send button, and scroll-to-bottom controls
- Bottom HdsTabs on the home page now hide / show automatically while scrolling
- Improved assistant card layout for better density and visual hierarchy
- Refined the overall UI quality across layout, theme pages, home page, tabs, and settings entries
- Fixed task state not being cleared in some abnormal completion cases
- Fixed abnormal layout in the tablet split-view empty state
Connect to 15+ AI providers out of the box. Bring your own API key, pick a model, and start chatting. Add any OpenAI / Anthropic / Gemini compatible provider in seconds.
Built-in web search supports Bing(local), Tavily, and Exa. When a model supports function calling, it can use tools directly, and the tools center can also connect to remote streamable MCP servers.
Full markdown rendering — code blocks with syntax highlighting, tables, LaTeX formulas, images. Even raw HTML gets a live preview.
8 color themes. Dark / Light / System mode. API 23 materials, immersive glass-like effects, and real-time blur are all part of the current visual system. A UI that feels native because it is native.
Responsive layouts for phones and HarmonyOS tablets. Chat, settings, and provider management all stay comfortable on larger screens.
Detects which hand you're holding the phone with and moves the "New Chat" button to the reachable side. One-handed use, done right.
Export and import everything — conversations, provider configs, preferences. JSON format, no lock-in.
Switch to another app while waiting for a long response. Cube Chat keeps working and notifies you when the reply is ready.
| Provider | API Format | Notes |
|---|---|---|
| OpenAI | OpenAI | GPT-4o, o1, etc. |
| Claude | Anthropic | Claude 4, 3.5, etc. |
| DeepSeek | OpenAI-compatible | DeepSeek-V3, R1, etc. |
| Gemini | Gemini 2.5, etc. | |
| Grok | OpenAI-compatible | xAI models |
| Ollama | OpenAI-compatible | Local models |
| OpenRouter | OpenAI-compatible | Multi-provider gateway |
| SiliconFlow | OpenAI-compatible | Chinese AI models |
| Qwen (Alibaba) | OpenAI-compatible | Qwen series |
| Kimi | OpenAI-compatible | Moonshot / Kimi models |
| Zhipu AI | OpenAI-compatible | GLM series |
| Doubao (Volcengine) | OpenAI-compatible | Doubao series |
| MiniMax | OpenAI-compatible | MiniMax models |
| AiHubMix | OpenAI-compatible | Multi-provider gateway |
| MiMo | OpenAI-compatible | Xiaomi MiMo models |
...or add any compatible provider yourself.
- HarmonyOS 6 (API 23)
- DevEco Studio 5.0+
git clone https://github.com/LongLiveY96/ChatCube.git
cd ChatCube
cp build-profile.json5.example build-profile.json5
# Edit build-profile.json5 with your signing configOpen in DevEco Studio → Sync → Run.
In the app: Settings → Provider Management → add your API keys.
entry/src/main/ets/
├── components/ # Reusable UI components
├── config/ # App & provider configuration
├── models/ # Data models
├── pages/ # App pages
├── services/ # Business logic
├── viewmodels/ # ViewModels (MVVM)
├── utils/ # Utilities
└── widget/ # Home screen widget
For the Chinese beta test link and community group, see the main Chinese README: README.md.
MIT — do whatever you want with it.








