docs/src/content/docs/en/configuration/agents/zcode.md
ZCode is a coding agent that runs as a desktop app. In CCR it is App only.
Use this page to route ZCode to any CCR provider or Fusion model, or to attach an IM bot.
New to CCR? Add a provider and model first. See Add a provider and the Agent Config overview.
ZCode - Work).ZCode is fixed to App only, so the entry mode is not editable. The fields you configure are:
| Field | How to set it | Effect |
|---|---|---|
| Agent | Choose ZCode | Creates a ZCode App launch entry in CCR. |
| Config name | Free text, e.g. ZCode - Work | Identifies the profile. Desktop commands use ccr-app "<name>" app; CLI commands use ccr "<name>" app. |
| Enabled | Toggle on/off | Disabled profiles are not applied and not offered as launch entries. |
| Effect scope | Only opened from CCR / System default | Keeps the profile limited to CCR launches, or makes it the system-default ZCode profile. Only one enabled system-default ZCode profile is allowed. |
| Provider ID | Default claude-code-router | Provider reference for this ZCode profile. |
| Provider name | Free text; default Claude Code Router | Display name shown in ZCode. |
| ZCode model | A provider model or Fusion model | Default model when ZCode App opens. |
| Config file | Path | Used for the system-default ZCode profile. |
| Environment variables | Key/value rows | Optional advanced overrides; leave empty for normal use. |
| Bot | Select a saved Bot | Binds an AgentClaw IM bot to the ZCode App entry. |
Click the play button on the profile card to open ZCode with this profile's model and provider. Reopening the same profile activates the existing window.
Desktop App command copied from the profile card:
ccr-app "ZCode - Work" app
For CLI, run:
ccr "ZCode - Work" app
Create separate ZCode profiles when you want different models or providers.
With a Bot bound and ZCode opened from CCR, ZCode can relay conversations through the selected IM channel. Closing ZCode App immediately takes the relay offline. See AgentClaw.