# ZuCode > ZuCode, Zurelay's free coding agent for the terminal and desktop: install, sign-in, shortcuts, slash commands, permission modes, models, Council, settings files, MCP, hooks, skills, headless mode and updates. Source: https://zurelay.com/docs/zucode ZuCode is Zurelay’s free coding agent, in your terminal and on your desktop. It reads and edits your code, runs commands and uses git like Claude Code, on every chat model on Zurelay, and you can switch models mid-task. The app is free: you pay only for the tokens it uses, at Zurelay’s pay-as-you-go prices, with no subscription. ## Install **Windows** (`PowerShell`): ```powershell irm https://zurelay.com/zucode/install.ps1 | iex ``` **macOS and Linux** (`Terminal`): ```bash curl -fsSL https://zurelay.com/zucode/install.sh | bash ``` Then run `zucode` in a project folder, or open the ZuCode app: from the Start menu on Windows, from Applications on a Mac, or with `zucode app`. - Windows 10 or later, macOS 12 or later, or Linux. - Node.js 22: the installer brings its own if your computer doesn’t have it. - git, recommended: ZuCode commits, makes branches and opens pull requests with it. ## First run and sign-in The first time you run ZuCode it opens **zurelay.com/connect** in your browser. Sign in if you need to and press **Approve**: ZuCode is then signed in to your Zurelay account, with no API key to copy. It spends from your balance at the same prices as the API, so add credit on the [Billing page](https://zurelay.com/app/billing) first. `/balance` shows what’s left, `/cost` what the session has cost so far, and `/logout` and `/login` switch accounts. ## The terminal Run `zucode` in the folder you want to work on and type what you want done. These keys work in the prompt: | Keys | What they do | | --- | --- | | `/` | Slash commands (the table below) | | `@` | Mention a file, to add it to the conversation | | `!` | Run a shell command and add its output | | `#` | Add a note to ZUCODE.md | | `Shift+Tab` | Cycle the permission modes | | `Tab` | Thinking on or off | | `Alt+P` | Switch the model | | `Esc` | Interrupt | | `Esc Esc` | Rewind to an earlier point | | `Ctrl+O` | Show details, such as a tool's full output | | `Ctrl+T` | Show the task list | | `Ctrl+V` | Paste an image | | `\ then Enter` | New line | ## The desktop app The ZuCode app is the same agent in a window. Open it from the Start menu or Applications, with `zucode app` in a terminal, or with `/app` from a running session. - **On the left**: a new session, search, **Open folder**, **Clone from GitHub** (ZuCode clones the repository, opens it and sets it up), your sessions grouped by project, and at the bottom the Zurelay credit you have left (click it to add funds). - **In the middle**: the conversation. Each stretch of work is one row that says what ZuCode is doing while it runs and folds into a summary when it's done; open it for each step, its output and its diff. File names in its answers are links that open the file at that line. The input box holds the model, thinking level, permission mode and Council. - **Panes**, from the buttons at the top: the task list, a **terminal** (your own shell in the project, interactive programs included), the changes as diffs, a preview of your local site (ZuCode starts its dev server if nothing is running), and the project's files. - **On the right**, under **Environment**: the folder, the git branch, Remote Control, how full the context is, the changes so far and **Create PR**. ## Slash commands Type `/` to see them all. Your own commands and skills show up in the same list. | Command | What it does | | --- | --- | | `/help` | Commands and shortcuts | | `/model` | Switch the model, even mid-task | | `/effort` | Set the thinking level | | `/council` | Set up Council: other models weigh in before the main model works | | `/mode` | Change the permission mode | | `/clear` | Start again with an empty conversation | | `/compact` | Summarize the conversation so far, to free up context | | `/resume` | Go back to an earlier session | | `/rewind` | Restore the code, the conversation or both to an earlier point | | `/rename` | Rename the session | | `/context` | How full the context window is | | `/cost` | What the session has cost so far | | `/todos` | The task list | | `/export` | Save the conversation to a file | | `/init` | Write a ZUCODE.md that describes the project | | `/memory` | Edit the memory files | | `/review` | Review the current changes | | `/security-review` | Check the current changes for security problems | | `/commit` | Commit the changes | | `/pr` | Open a pull request | | `/diff` | Show the changes | | `/clone` | /clone owner/repo: clone a GitHub project and set it up | | `/add-dir` | Let ZuCode work in another folder too | | `/image` | Make an image | | `/video` | Make a video | | `/mcp` | See and manage MCP servers | | `/remote-control` | Continue this session from your phone | | `/app` | Open the ZuCode desktop app | | `/config` | Settings | | `/status` | Version, account and the settings in use | | `/doctor` | Check the install for problems | | `/login` | Sign in to Zurelay | | `/logout` | Sign out | | `/balance` | Your Zurelay balance | | `/update` | Update now | | `/restart` | Restart ZuCode | | `/feedback` | Send feedback to the Zurelay team | | `/exit` | Quit | ## Permission modes The mode decides what ZuCode may do without asking. `Shift+Tab` cycles through them, `/mode` picks one, and the app has them in the input box. | Mode | What it does | | --- | --- | | **Auto** | A quick model checks each risky action and asks you only when it’s unsure. | | **Manual** | Asks before every change. | | **Accept edits** | Makes file edits without asking. | | **Plan** | Reads and plans, and changes nothing until you approve the plan. | | **Bypass permissions** | Never asks. Use it only where a mistake can’t hurt, such as a container. | Rules in your settings files can allow or deny actions in any mode (see Settings files, below). ## Models and switching ZuCode runs on every chat model on Zurelay: Claude Opus, Sonnet, Fable and Haiku, GPT-6.2 Astra and Sol, Gemini, DeepSeek, Kimi, Qwen, GLM, Grok, MiniMax and more (the full list, with prices, is on [Models](https://zurelay.com/docs/models)). Switch with `/model` or `Alt+P` at any point, even in the middle of a task: the conversation carries over to the new model. Each request is billed at the model’s price on Zurelay. On Claude, prompt caching keeps long sessions cheap, since most of each request is read back from the cache. ## Council With Council on, 2 to 4 other models weigh in on each task before the main model starts work, like Council in Zurelay Chat. Turn it on with `/council` or the Council chip in the app. The other models’ tokens are billed like any others. ## Thinking `Tab` turns thinking on or off, and `/effort` sets the level: Default, Low, Medium, High, Extra high or Max. Each model runs at the nearest level it supports. ## What it can do - **Code and commands**: read, search and edit files, and run commands and tests. - **Git**: commit, make branches, and open pull requests with `/pr`. `/clone owner/repo` clones any GitHub project, installs it and sets it up. - **Images, video, speech and music**: the GenerateImage, GenerateVideo, GenerateSpeech and GenerateMusic tools make them through Zurelay, billed at the API’s prices, and save them into the project. - **Computer use**: screenshots, mouse and keyboard, to check its own work. - **The web**: web search and web fetch. - **Sub-agents**: helpers that work on parts of a task in parallel. - **AskModel**: a second opinion from another lab’s model. ## Sessions Every session is saved with its project. `/resume` goes back to one, `/rename` names it, and `/export` saves it to a file. `/rewind` (or `Esc` twice) returns to an earlier point and restores the code, the conversation or both. When a long session fills the context, `/compact` sums it up and carries on. ## Worktrees In a git project, turn on **Worktree** next to the folder when you start a session (or run `zucode --worktree`). The session then works in its own copy of the project on a new branch, so several sessions can change one project at once without touching your files or each other's. When it's done, **Merge** in the Environment panel brings the work into the branch it started from, or ask for a pull request. **Remove** deletes the copy; work that isn't merged yet stays on its branch. Permissions you allowed for the project apply in its worktrees too. ## Remote Control Turn on Remote Control with `/remote-control` or the switch in the app’s Environment panel, and continue the session from your phone. ## Settings files | File | What it’s for | | --- | --- | | `~/.zucode/settings.json` | Your settings, for every project | | `.zucode/settings.json` | The project’s settings, shared with your team | | `.zucode/settings.local.json` | Your settings for this project only; keep it out of git | | `.claude/settings.json` | Claude Code’s settings: ZuCode reads its permissions and hooks too | Permission rules name a tool and, in brackets, what the rule covers. `allow` rules run without asking and `deny` rules never run: Settings (`.zucode/settings.json`): ```json { "permissions": { "allow": ["Bash(npm test:*)", "Edit(src/**)", "WebFetch(domain:docs.rs)"], "deny": ["Bash(git push:*)"] } } ``` | Rule | Covers | | --- | --- | | `Bash(npm test:*)` | Commands that start with npm test | | `Edit(src/**)` | Edits to any file under src | | `WebFetch(domain:docs.rs)` | Fetching pages from docs.rs | ## MCP servers ZuCode connects to MCP servers listed in the project’s `.mcp.json` (the same file Claude Code reads) or under `mcpServers` in a settings file. `/mcp` shows them and whether each one is connected. MCP servers (`.mcp.json`): ```json { "mcpServers": { "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] } } } ``` ## Hooks Hooks run your own commands at points in a session. They go under `hooks` in a settings file, and ZuCode also runs the hooks in `.claude/settings.json`. | Event | Runs | | --- | --- | | `PreToolUse` | Before a tool runs | | `PostToolUse` | After a tool has run | | `UserPromptSubmit` | When you send a message | | `Stop` | When ZuCode finishes its answer | A hook that exits with code 2 blocks what it ran for: a `PreToolUse` hook stops the tool call, for example. Hooks (`.zucode/settings.json`): ```json { "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [{ "type": "command", "command": "node scripts/check-command.js" }] } ], "PostToolUse": [ { "matcher": "Edit", "hooks": [{ "type": "command", "command": "npm run lint --silent" }] } ] } } ``` ## Memory files At the start of every session ZuCode reads the project’s `AGENTS.md`, `CLAUDE.md` and `ZUCODE.md`: how to build and test it, conventions, anything it should always know. Start a message with `#` to add a note to `ZUCODE.md`, `/memory` to edit the files, and `/init` to have ZuCode write a `ZUCODE.md` for a project that has none. ## Custom commands A Markdown file in `.zucode/commands` becomes a slash command named after the file. `$ARGUMENTS` stands for whatever you type after the command, so `/fix-issue 123` runs this with 123 in it: Command (`.zucode/commands/fix-issue.md`): ``` Fix GitHub issue #$ARGUMENTS. Read it with gh issue view $ARGUMENTS, write a test that fails because of it, then make the test pass and commit the fix. ``` ## Skills A skill is a folder with a `SKILL.md` in `.zucode/skills//`: a name, a description of when to use it, and the instructions. ZuCode reads the descriptions and loads a skill’s instructions when a task calls for it. Skill (`.zucode/skills/release-notes/SKILL.md`): ``` --- name: release-notes description: Write release notes from the commits since the last tag. Use when asked for a changelog or release notes. --- 1. Find the last tag with git describe --tags --abbrev=0. 2. List the commits since then with git log ..HEAD --oneline. 3. Group them under Added, Changed and Fixed, in plain English. ``` ## Headless mode `-p` runs one task without the interactive prompt and prints the result, for scripts and CI. `--output-format` takes `json` (one result at the end) or `stream-json` (each step as it happens), and `--permission-mode` sets the mode, such as `acceptEdits`. Terminal: ```bash # One task, a JSON result at the end zucode -p "Fix the failing tests" --output-format json --permission-mode acceptEdits # The same, streamed as it works (one JSON object per line) zucode -p "Update the README for the new flags" --output-format stream-json --permission-mode acceptEdits ``` ## Updates ZuCode updates itself in the background. When a new version is ready, the app shows **Update ready · Relaunch**: one click restarts it on the new version. In the terminal, `/update` updates right away and `/restart` restarts ZuCode. ## Uninstall Delete the `~/.zucode` folder (on Windows, `%USERPROFILE%\.zucode`) and the `zucode` command. This removes your user settings too. **Windows** (`PowerShell`): ```powershell Remove-Item -Recurse -Force "$env:USERPROFILE\.zucode" # Where the zucode command is, if it's still there: Get-Command zucode ``` **macOS and Linux** (`Terminal`): ```bash rm -rf ~/.zucode # Where the zucode command is, if it's still there: command -v zucode ``` > **Note:** Your projects keep their `.zucode` folders and `ZUCODE.md` files. Delete those too if you don’t want them. - [ZuCode](https://zurelay.com/code): What ZuCode does, and how it compares with Claude Code. - [Models](https://zurelay.com/docs/models): Every model ZuCode can use, with its price. - [Pricing and billing](https://zurelay.com/docs/billing): Prepaid credit, and how tokens are counted. - [MCP server](https://zurelay.com/docs/mcp): Zurelay’s images, video and speech in other AI apps.