Kaku Best Practices
Kaku is a terminal emulator for macOS featuring built-in AI assistant capabilities, integrating various AI tools such as Claude Code, Codex, Gemini CLI, Copilot CLI, and Kimi Code. This article details the installation, configuration, and best practices for Kaku, helping developers fully leverage the potential of AI-assisted programming.
Kaku Tool Introduction
What is Kaku
Kaku is a terminal emulator for macOS. It not only provides powerful terminal features but also includes built-in AI assistant capabilities, helping developers quickly complete tasks such as command diagnosis, code explanation, and AI conversations.
Core Features:
- Built-in AI Assistant: Integrates multiple AI Coding tools
- Smart Directory Jumping: Use the
zcommand to switch directories quickly - Split Screen Support: Supports vertical/horizontal splitting
- Built-in Git Tools: Integrates Lazygit
- File Manager: Includes built-in Yazi file manager
- Syntax Highlighting: Real-time command validation and coloring
- Domestic Model Support: Supports domestic large models like MiniMax
Supported AI Tools
Kaku supports a variety of mainstream AI Coding tools:
| AI Tool | Description |
|---|---|
| Claude Code | Official Anthropic CLI tool |
| Codex | OpenAI code model |
| Gemini CLI | Google Gemini CLI |
| Copilot CLI | GitHub Copilot CLI |
| Kimi Code | Moonshot AI Kimi Code Assistant |
| Factory Droid | Android development AI assistant |
| OpenClaw | Open source AI tool |
Supported AI Providers
| Provider | Base URL | Supported Models |
|---|---|---|
| VivGrid (Default) | https://api.vivgrid.com/v1 |
DeepSeek-V3.2 |
| MiniMax | https://api.minimax.io/v1 |
MiniMax-M2.7, M2.7-highspeed, M2.5, M2.5-highspeed |
| OpenAI | https://api.openai.com/v1 |
GPT series (auto-detected) |
| Custom | Manual setup | Manual setup |
Kaku Installation & Configuration
Installation Methods
Method 1: Download DMG (Recommended)
- Visit https://github.com/tw93/Kaku/releases/latest to download the latest DMG
- Open the DMG file
- Drag Kaku to the Applications folder
Method 2: Homebrew Installation
|
|
First-time Configuration
When launching Kaku for the first time, the program will automatically set up the shell environment. Configuration commands:
| Command | Function |
|---|---|
kaku |
View all available commands |
kaku ai |
AI settings |
kaku config |
Open settings TUI |
kaku doctor |
Diagnostic panel |
kaku update |
Update |
kaku reset |
Reset |
kaku init |
Initialize |
Configuration File
The Kaku configuration file is located at: ~/.config/kaku/kaku.lua
The configuration file is fully compatible with the WezTerm Lua API, allowing for deep customization.
AI Settings Details
Configuring AI Providers
Run the following command to enter AI settings:
|
|
Steps:
- Select a Provider
- Enter API Key
- Select Model
Manual Configuration
Edit the ~/.config/kaku/assistant.toml file:
MiniMax Configuration
MiniMax is an AI provider available in China. The M2.7 model is fast and suitable for daily use:
Supported MiniMax models:
- MiniMax-M2.7 (Standard)
- MiniMax-M2.7-highspeed (High-speed)
- MiniMax-M2.5
- MiniMax-M2.5-highspeed
Kaku Assistant Features
What is Kaku Assistant
Kaku Assistant is the built-in AI assistant feature of Kaku that can:
- Automatically analyze failed commands and provide fix suggestions
- Intelligently explain error messages
- Provide operational guidance
Enabling/Disabling Assistant
Using Assistant
When a command execution fails, the Assistant will automatically analyze it and provide suggestions. Follow the prompts to apply the fix.
Shortcut Keys
Global Operations
| Operation | Shortcut |
|---|---|
| Toggle Global Window | Cmd + Opt + Ctrl + K |
| New Tab | Cmd + T |
| New Window | Cmd + N |
| Close Tab/Pane | Cmd + W |
| Open Settings Panel | Cmd + , |
| Clear Screen | Cmd + K |
Tab Navigation
| Operation | Shortcut |
|---|---|
| Switch to Left/Right Tab | Cmd + Shift + [ / ] |
| Switch to Specific Numbered Tab | Cmd + 1-9 |
| Reopen Closed Tab | Cmd + Shift + T |
| Rename Tab | Double-click tab title |
Pane Operations
| Operation | Shortcut |
|---|---|
| Navigate Panes | Cmd + Opt + Arrow Keys |
| Vertical Split | Cmd + D |
| Horizontal Split | Cmd + Shift + D |
| Toggle Split Direction | Cmd + Shift + S |
| Zoom/Unzoom Pane | Cmd + Shift + Enter |
| Resize Pane | Cmd + Ctrl + Arrow Keys |
AI Function Shortcuts
| Operation | Shortcut |
|---|---|
| AI Panel | Cmd + Shift + A |
| Diagnostic Panel | Ctrl + Shift + L |
| Apply AI Suggestion | Cmd + Shift + E |
Git and File Management
| Operation | Shortcut |
|---|---|
| Open Lazygit | Cmd + Shift + G |
| Open Yazi | Cmd + Shift + Y or press y |
Display Adjustment
| Operation | Shortcut |
|---|---|
| Increase Font Size | Cmd + + |
| Decrease Font Size | Cmd + - |
| Reset Font Size | Cmd + 0 |
Shell Navigation Features
Smart Directory Jumping (z command)
Kaku includes a smart directory jumping feature that learns your frequently used directories:
Other Shell Enhancements
- zsh-completions: Extended command completion
- Syntax Highlighting: Real-time command validation and coloring
- Auto-suggestions: History completion similar to Fish shell
CLI Tool Integration
Tools Installed by kaku init
Running kaku init will automatically install the following CLI tools:
| Tool | Description |
|---|---|
| Starship | Fast prompt (displays directory, git branch, package version) |
| Delta | Git diff syntax highlighting pager |
| Lazygit | Git visual interface |
| Yazi | Terminal file manager |
kaku cli Commands
Advanced Configuration
Configuration File Example
Edit ~/.config/kaku/kaku.lua:
|
|
Built-in Shell Configuration
If using Fish shell, you can enable Fish integration in the configuration:
|
|
Troubleshooting
kaku command not found
If the kaku command cannot be found in the terminal, run:
Diagnosing Issues
Enterprise Proxy Configuration
If you need to access AI services via an enterprise proxy, edit ~/.config/kaku/assistant.toml:
Differences from Claude Code
| Feature | Kaku | Claude Code |
|---|---|---|
| Type | Terminal Emulator | CLI Tool |
| Platform | macOS Exclusive | Cross-platform |
| AI Integration | Multiple AI Tools | Claude Model |
| Usage Method | Built-in Panel | Standalone Conversation |
| Configuration Complexity | Medium (Lua Config) | Low |
| Domestic Models | MiniMax Support | Requires Configuration |
Best Practices Summary
1. Daily Development Workflow
1. Use Cmd + Opt + Ctrl + K to open Kaku
2. Use the z command to quickly switch project directories
3. Use built-in Git tools (Cmd+Shift+G) to manage code
4. Use the AI panel (Cmd+Shift+A) to diagnose issues when commands fail
5. Use split screen features to view multiple terminals simultaneously
2. AI Feature Usage
- Daily Command Issues: Use Kaku Assistant for automatic diagnosis
- Complex Code Issues: Use the Claude Code panel (Cmd+Shift+A)
- Need Kimi: Switch to Kimi Code via
kaku ai
3. Shortcut Habits
It is recommended to build muscle memory for common shortcuts:
Cmd + Shift + A- Open AI PanelCmd + Shift + G- Open Git Toolsz <dir>- Quick directory jump
4. Personalized Configuration
Customize kaku.lua according to personal habits:
- Adjust opacity
- Configure color themes
- Set working directory inheritance rules
As a terminal emulator designed specifically for macOS, Kaku’s built-in AI features and rich shortcut support make it a powerful tool for developers to improve efficiency. Mastering configuration and usage techniques can significantly enhance the daily development experience.