Z

Z.AI Chat

GLM Coding Plan · Powered by GLM-5.1

Get your key at z.ai/apikeys · Subscribe

Modes Available

💬 Chat General conversation
💻 Coding Code assistant
💡 Brainstorm Ideation partner
🤖 Agentic Autonomous coding

New Chat

Chat
■ Terminal

Terminal

~
$
🛠

Dev Environment

Set up on-device build tools

Downloads build tools to compile & install APKs directly on your device.

Required: ~50MB download (aapt2, d8, ecj, android.jar, apksigner)

Settings

API Configuration

Model Settings

Terminal & Agent

AI-generated code auto-deploys to device in Coding/Agentic modes
Prevents screen sleep while agent is working

Appearance

Data

About

Z.AI Chat v1.4.0

Built with Z.AI SDK & GLM-5.1

Compatible with Android 15/16

Changelog

  • v1.4.0 2026-05-19
    • Agentic feedback loop — build errors auto-sent back to AI for fixing (up to 3 retries)
    • Termux integration — auto-detects Termux on device, uses its PATH (aapt2, d8, ecj, tsu)
    • Workspace context — AI sees device info, available tools, and project files
    • AIDE-style tool protocol — upgraded agentic prompt with structured tool use
    • Auto-build pipeline — full aapt2→ecj→d8→sign→install chain
    • Build error detection — captures exit codes, feeds errors back for auto-correction
    • Termux root support — detects tsu/su for elevated privileges
  • v1.3.1 2026-05-19
    • Fixed: AI actions now AUTO-EXECUTE — files deploy, APKs build & install automatically
    • Added Keep Screen On toggle — prevents sleep while agent works
    • Added Auto-Deploy toggle — controls whether AI actions auto-execute
    • Status toasts show deploy/build/install progress
    • New settings section: Terminal & Agent (Auto-Deploy, Keep Screen On)
  • v1.3.0 2026-05-19
    • Full interactive Terminal screen — execute real shell commands on your device
    • Native Shell plugin — run commands, read/write files, create directories
    • APK Installer plugin — install built APKs directly from the app
    • Deploy Files button — AI-generated code saved to device with one tap
    • Build APK button — compiles Android projects on-device (needs Termux tools)
    • Install APK button — triggers Android package installer for built APKs
    • AI action parser — detects [CREATE_FILE], [RUN_COMMAND], [BUILD_APK], [INSTALL_APK]
    • Quick commands toolbar in terminal (ls, pwd, cat, mkdir, tools, sys)
    • Command history with arrow keys
    • Built-in commands: help, sysinfo, create, install, clear, exit, setup
    • Dev environment setup screen — bootstrap build tools
    • Project scaffolding — quick-create Android project structure
    • Enhanced Agentic mode prompt for on-device build awareness
  • v1.2.4 2026-05-19
    • Save button on every code block — downloads code as a real file to your phone
    • Copy & Save buttons on every AI response — one-tap copy or save as .txt
    • File paths in AI responses are now highlighted and tappable (tap to copy)
    • Smart filename detection — auto-names saved files from code content
    • 30+ language-to-extension mappings for proper file saving
  • v1.2.3 2026-05-19
    • Fixed: Connect button not working — missing function declaration caused JS parse error
    • All UI event handlers now correctly initialized on app start
  • v1.2.2 2026-05-19
    • Fixed: network error on app backgrounding — now auto-retries with reconnect
    • Streaming resumes from last saved token after reconnection
    • Exponential backoff retry (3 attempts) for network interruptions
    • Retry button shown for failed requests due to connectivity
    • Offline/online detection with status banner
    • Visibility change handler saves state on app background
    • Partial response preserved and restorable on reconnect
  • v1.2.1 2026-05-19
    • Fixed: messages lost when switching conversations during streaming
    • Streaming responses now auto-save every 20 tokens to prevent data loss
    • Partial responses preserved when switching sessions mid-generation
    • Added in-app terminal panel for Coding and Agentic modes
    • Terminal parses code blocks, file ops, and tool calls from AI responses
    • Terminal toggle button with collapsible panel
    • Terminal state persists across sessions
    • Conversation list now shows message count
    • Improved conversation switch safety with flush-before-switch
  • v1.2.0 2026-05-19
    • Added light mode / dark mode toggle
    • Theme persists across sessions
    • Theme toggle button in chat header
    • Theme setting in Settings screen
    • Added changelog section to Settings
    • Optimized light theme color palette
  • v1.1.0 2026-05-19
    • Z.AI Coding Plan endpoint support
    • Fixed API base URL to use coding plan endpoint
    • Updated model list (GLM-5.1, GLM-5 Turbo, GLM-4.7, GLM-4.5 Air)
  • v1.0.0 2026-05-19
    • Initial release
    • Chat, Coding, Brainstorm, Agentic modes
    • Streaming SSE responses
    • Markdown rendering with syntax highlighting
    • Conversation management with sidebar
    • Settings with model, temperature, tokens controls
    • Web search integration
    • Export conversations to JSON
    • Android 15/16 support (targetSdk 36)