CodeHero PRO — User Guide

Complete guide to using the CodeHero platform for AI-powered software development.

1. Login & Dashboard

Login

Open your browser and navigate to https://YOUR_IP:9453. You'll see the login page.

Login Page
Login Page

Your login: the username is admin (unless install.conf named another). The password is the one the installer showed at its end — every installation generates its own (5.7.0); there is no default password. It is kept in /etc/codehero/credentials.conf, which only root can read: sudo cat /etc/codehero/credentials.conf. Change it any time in Settings → Security → Change Admin Password.

The old default password (5.7.0). A server upgraded from an older version keeps the panel password you chose. If the admin still has the old default admin123, the first sign-in with it opens only the page Set your password (and Sign out). Nothing else works until you set your own password there; admin123 is not accepted as the new one. The console recovery (change-passwords.sh, manage-2fa.sh) works as before.

The setup code (5.7.0). Anyone who knows admin123 could try to set the password before you. So the upgrade that finds admin123 still in use makes a one-time setup code, and Set your password asks for it:

  1. The upgrade shows the code in a box: PANEL SETUP CODE: XXXX-XXXX-XXXX-XXXX. The box comes twice: before the upgrade copies the files, and as its last message. The panel's upgrade window shows it too.
  2. Write the code down.
  3. Sign in with admin123. The page Set your password opens.
  4. Type the setup code, the current password and your new password twice. Case, spaces and dashes in the code do not matter.
  5. Click Save the new password. The panel opens.

Signing in again after 5.7.0: the upgrade ends every panel sign-in from before, even one still open in a browser. The sign-in page says «Your sign-in ended: the panel password was changed, or CodeHero was upgraded. Sign in again.» Sign in once more.

A new panel password signs out the others (5.7.0). This applies to Set your password, Settings → Security → Change Admin Password and the console tool change-passwords.sh.

A sign-out ends the whole session (5.12.4). The panel's session is a signed cookie. After Sign out, an old copy of that cookie (a saved one, another device that had it) is refused on every page, API call and socket, for as long as such a cookie could live (31 days, «Remember this device» included), and also after the panel restarts. Another sign-in of yours, in another browser, stays signed in. A session from before 5.12.3 has no identity of this kind: it ends at its normal expiry or when the panel password changes, as before. Sign in again once to get one. If the panel cannot check a sign-in (its database does not answer), it answers «The panel could not check this sign-in; try again in a moment.» instead of letting the request through. If a sign-out cannot be recorded (the database does not answer), nothing ends: the page says «The sign-out could not be recorded. You are still signed in: sign out again in a moment.» and you sign out again.

The sign-in state is the server's own (5.9.0). What ends the sessions at a password change — the sign-in epoch — and the key that signs the panel's cookies are kept by root, in CodeHero's protected store. The panel reads them from /etc/codehero-protected; it cannot change them. A program of the panel's user cannot replace or empty them by mistake.

HTTPS only. The panel answers over HTTPS only: http://…:9453 is sent to https://…:9453. With a domain and a real certificate the browser remembers to use HTTPS for that name on every port (HSTS):

Two-Factor Authentication (2FA): If enabled in settings, you'll be prompted for a 6-digit code from Google Authenticator. Use "Remember this device" to skip 2FA on trusted devices until end of month.

Account Lockout: 5 wrong passwords for one account from one address lock that account at that address for 30 minutes (any spelling of the name counts as the same account). 20 wrong passwords from one address lock that address. Another address is not locked (5.7.0).

Dashboard

The Dashboard is your main control center showing real-time system status.

Dashboard
Dashboard

Dashboard elements:

The look (v5.1.0+) — every page has the same header, always on top while the page scrolls: the menu, Providers, AI Assistant, the guide, Settings, the mobile chat and Logout (Providers and Settings open on the dashboard from any page). Calm colours that carry a meaning only where there is one (a status, the one main action), clear type, a slow moving background. The colours, fonts and sizes of the whole panel come from one file, web/static/theme.css — its settings are at the top.

Logs page

Logs (top menu) opens the server's logs side by side — CodeHero, the web stack, the system, the containers. Since v4.55.0 four cards at the top show this server now: CPU (busy now, the load average, the cores), Memory (used of total, swap), Disk used and Free space (each disk that holds CodeHero). They refresh every 5 seconds while the page is open; on a phone they sit 2 × 2.

A ZIP of the logs for support (5.7.0). Tick ☐ next to each log you want, then click 📦 Build & Download on the 📦 Diagnostic Bundle panel. The ZIP hides every secret it knows:

Each of them becomes [hidden]. Token counts and ordinary log lines stay. The ZIP's manifest.json says "sanitized": true. A secret that the ZIP cannot recognise (a short password typed into a message) can still be in it: share the ZIP only with people you trust.

Preview keys (5.10.0). The Logs page (a log you read and the live tail) and the ZIP show every project's preview key as [hidden]. The same for the previews' sign-in cookies and the device join codes. The rest of each line stays.

If CodeHero could not read one of its secret files, the values of that file may not be hidden:

Then open the ZIP and check it before you share it.

2. Creating Projects

Projects Page

The Projects page shows all your development projects in a card grid layout.

Projects List
Projects List

Each project card displays: project name, type, description, working directory path, open ticket count, provider/model, and quick action buttons.

Create New Project

Click "+ New Project" to open the creation modal.

Create Project
Create Project Modal
FieldRequiredDescription
NameYesDescriptive project name
CodeYesLetters and digits, up to 15 (v4.55.0+; 10 before) — names the tickets (CODE-0001), the folders, the backups. Never used twice: not one another project has, nor one that still holds the backups of a deleted project. A code CodeHero makes from the name uses Latin capitals and digits: a Greek name keeps its sound (Λογιστήριο → LOGISTIR) (5.7.0)
Project TypeYesweb, app, api, cli, library
Tech StackYesphp, node, react, python, java, etc.
DescriptionYesBrief description of the project
Web/App PathNoWorking directory (auto-generated)
ProviderNoAI provider (anthropic, openai, grok, qwencloud, etc.)
AI ModelNoDeveloper role (master/senior/junior)
Think ModeNoExtended thinking level
Execution ModeNoDefault for new tickets
Project TypeDefault Path
web (PHP, HTML)/var/www/projects/{name}
app, api, cli, library/opt/apps/{name}

A project's folder is under /var/www/projects or /opt/apps, with letters, digits, ., _ and - in its name. The assistant's project create checks the same, and also refuses another project's folder or a folder inside one (5.7.0).

3. Importing Projects

Import existing projects from ZIP, Git, or local path.

Import Project
Import Project Modal
ModeDescriptionUse When
extendCopy files into project pathContinue developing the project
referenceStore separately as templateBuild something similar
SourceExamples
ZIPURL or local path to ZIP file
GitRepository URL (public or private)
PathLocal folder path (fastest for large projects)

The assistant's import takes a local folder or ZIP only from the project's own folder or an upload folder: the big upload (📦 Import → Upload File), the assistant's attach, the companion's attach (5.7.0). /tmp and another project's folder are not accepted. To use another project as a reference, give its backup ZIP (uploaded) or its git address.

Imports by URL (5.8.0). A ZIP address or a Git address must be on the internet. An address on your own network (192.168.…, 10.…, localhost …) is refused with «Local network imports are disabled».

Imports while the maintenance control is on (5.8.0). The switch Keep AI work on the maintenance copy (Settings → Security → 🛡 Protections, Section 28) is off at the start. While it is on:

With the switch off, an import by URL works as above (Imports by URL):

On or off:

An encrypted backup (5.10.0). A backup you downloaded with a backup encryption key ends in .age (Section 4, «Encrypted and plain downloads»). To bring it back, use Projects → 📦 Import → Upload File and give the key with it (5.13.4). Every other door refuses an encrypted file, also a renamed one, before anything is written: «This file is encrypted (.age). Decrypt it on your own computer first: age -d -i key.txt <file>.age > <file>. Then import or restore the file you get.»

Git Private Repositories

PlatformUsernameToken Type
GitHubOptionalPersonal Access Token (PAT)
GitLabNot neededPersonal Access Token
BitbucketRequiredApp Password

The app's database (v4.55.1+) — an import of a backup made with 4.55.1 or later keeps the project's database name, user and password, so the app's own configuration (.env …) works unchanged: a container project gets them inside its new container (its own MySQL); a host project gets them when this server has neither that database nor that user — otherwise new ones, and the result says so (update the app's configuration, or ask a ticket to do it). Older backups still restore with new names.

The project code (v4.55.0+) — an import never takes a code another project has, or one that still holds the backups of a deleted project (the new project would take them over): a code CodeHero makes gets 2, 3, … at the end; a code you type that is in use stops the import with a message, before anything starts, so you can choose another.

A project code in Greek letters (5.13.4) — this server takes a new code only in Latin letters and digits (A-Z, 0-9, at most 15). A backup whose project had a Greek code, restored or imported as a new project without a code of your own, gets its code in Latin letters by their sound, once: ΟΚΑΠΤΕΝΤ32 becomes OKAPTENT32. The answer says so: «The project code ΟΚΑΠΤΕΝΤ32 became OKAPTENT32 (this server takes only Latin letters and digits)». If that code is already in use, the restore stops before anything is made, and you type another in Advanced options → Project Code. A project that already has a Greek code keeps working: its preview answers with its key, and the ticket sandbox prepares it.

Moving a project to another server (5.16.2) — what an import tells you, and what it does by itself:

Large backups (any size) (v5.4.0+)

A backup of any size can be imported from the panel or from the server's terminal. The import runs on the server as a job of its own: closing the browser tab or the terminal does not stop it.

  1. Projects → 📦 Import → Upload File: choose the backup (.zip) or a container image (.tar.zst) and click Import Project. An encrypted backup (.zip.age, .tar.zst.age): choose it too; a box Key for this encrypted backup opens, where you choose your key.txt or paste its AGE-SECRET-KEY-1… line.
  2. The file goes to the server in pieces of 32 MB. The bar shows how much has arrived, the speed and the time left. A dropped connection tries again by itself; after a reload, choose the same file again and the upload goes on.
  3. Then the import starts by itself and its log shows live. Closed the window? Open 📦 Import again to follow it.

A file already on the server (copied with scp, e.g. into /var/backups/codehero/uploads/): 📦 Import → Server Files.

Room first (5.13.4)

An import, or a «Restore as a new project», from a file on the server checks the free disk first.

  1. The rule: free disk must be 3 × the file size + 1 GB. An upload uses the same rule.
  2. If it does not fit, the import stops at once. It shows the numbers. It writes nothing.
  3. The rule is a check. It is not a reservation. Another job can take the room later.
  4. If the import fails or stops inside CodeHero, it removes its own half copy.
  5. If the panel is killed or the power is cut, the half copy may stay. The panel removes it at its next start. It removes an import folder that has no status, no running job and no change for 1 hour.

A backup checks the disk too.

  1. It estimates the size of the ZIP from the project's files. It counts file sizes only. It does not count the databases.
  2. If the estimate + 512 MB does not fit, the backup is refused at once. The answer shows the numbers.
  3. If it cannot make an estimate (a folder is not readable in time), the backup starts.
  4. While it writes, it checks the disk. If the disk gets full, the backup stops with a clear message.

From the terminal (for users who know Linux) — Ctrl+C on --follow stops the following, not the import:

sudo bash /opt/codehero/scripts/import_backup.sh /path/to/backup.zip [--name NAME] [--code CODE] [--web-path P] [--app-path P] [--provider X] [--follow]
sudo bash /opt/codehero/scripts/import_backup.sh --follow <task>
sudo bash /opt/codehero/scripts/import_backup.sh --list

The progress is written to /opt/codehero/scripts/install_logs/import_<task>/log.txt (follow it with tail -f), the state to status.json beside it. A huge project can take hours; the panel's 📦 Import window shows the same import.

4. Project Detail Page

Click on any project to view its detail page. The page is organized in collapsible sections.

Overview

Project Overview
Project Overview

The top section shows project info (name, type, tech stack, description), database connection details with copy buttons, preview URL, quick action buttons (Code Editor, Git Manager, Progress Dashboard, phpMyAdmin, Export, Context Settings, Archive), and usage statistics (tokens, time, completed tickets).

Production Deployment

Deploy the project to a production-ready nginx config with its own domain or subdomain. Includes SSL certificate management.

Container Isolation (LXC)

Run the project in its own isolated LXC container with dedicated services. See Section 31 for full details.

PHP Settings

Configure the host-level PHP version and .user.ini for projects running directly on the host via nginx:

Which one to use (5.16.6). Three places take PHP settings:

Preview PHP settings.user.iniProduction PHP for this domain (§32)
Where it appliesThe preview onlyThe preview AND the live site (a file in the project's folder)The live site only
When it appliesAt once (Save)Within 5 minutes (PHP reads it again every 300 s)At once (Save PHP settings)
What it takesAlmost every setting; never the JIT or opcache.validate_timestamps = 0Only per-folder settings (memory_limit, upload_max_filesize, post_max_size, max_execution_time, display_errors …), never a whole-server oneEvery setting, the JIT too
The same setting in two placesWins over .user.iniLoses to the other twoWins over .user.ini
Moves with the projectNo (this server keeps it)Yes: backups, Git, another server; a ticket can change itNo (this server keeps it)
Note: For container-based projects, runtimes are managed from the Services tab instead.

Schedule (host projects, 5.13.4)

A host project that must run something on a schedule keeps a file .codehero/crontab in its root folder: one job per line, five cron fields in UTC and then the command. A ticket writes it (it never changes the server's crontab, which a ticket in the sandbox cannot do); CodeHero checks it and runs each job as the project's own account inside the ticket sandbox, at most 5 minutes a run and never two runs of one job at once. The project's Schedule card shows each job, its state (Pending, Active, Disabled or Error with its reason), the accepted revision, the next due time and the last result; Enable and Disable are the owner's. A restored, imported or copied project's schedule waits for your Enable. A container project keeps its own cron.

A build ticket that works on a schedule reads the project's schedule with a read-only tool, codehero_schedule_status (5.17.0): the same state the Schedule card shows. It only reads: Enable and Disable stay yours.

Context Settings

Customize the AI context for this project: select tech stack to load defaults, edit global context (universal rules) and project context (language-specific patterns). Global Context v6.2 is a core plus on-demand guides (planning, verify-fix, asking, update, helper, debugging, frontend, database, build, testing, native, release) that the agent opens with the codehero_get_guide tool; they live in /opt/codehero/config/guides/ and are loaded automatically into [PLAN], [REPLAN], [VERIFY], [FIX], [HELPER], [PEER] and [WORKER] tickets.

Project Files

Project Files
Upload Files & Project Files

Upload files via drag & drop, browse the directory tree with folder navigation, delete files, and use the subdirectory filter. Includes Refresh and Pop Out (open in new window) buttons.

Database Editor

Database Editor
Database Editor

Each project gets its own MySQL database. Four tabs: Tables (clickable cards with row counts), Structure (column definitions), Data (browse with pagination), SQL Query (run queries directly).

Backup & Restore

Backup & Restore
Backup & Restore
LevelContentsUse case
Quick (files+DB)Project files and the project database — in a container project also every database of the container (v4.54.0+)Fast daily backups
Full (+ services)Quick + the container's services configuration and port forwardsFull project state
Complete (+ tickets)Everything plus tickets, conversations, the knowledge graph and the token statistics (tokens and time per project and ticket, v5.16.4)Migration between servers

Additional features: container image export/import (since v4.55.0 only the image's data is read — a 50 GB disk holding 3 GB reads 3 GB — and an import gets a sparse image back; since 5.8.0 an export of a stopped container leaves it stopped, and nothing is exported from a disk that is still in use), backup history with download/restore/delete, and upload & restore from another server.

Faster (v4.55.0+) — lighter compression (2–3× faster for a few % more size); in a container project its own database, which lives in the container, is saved once (it used to be saved twice); the panel stays responsive while a backup runs; the backup at a ticket's close no longer holds up the other projects' tickets (only that project's next ticket waits for it). Every backup notes how many seconds each step took.

Automatic / Kept / Safety — the Backup History has three tabs. Automatic: made by the platform (ticket close, auto) — the newest 20 are kept (any number; 0 = all). Kept: Quick / Full / Complete, image exports and every 📌 kept backup — never deleted automatically. Safety: taken right before a restore — the newest 5.

Nothing missing without a word (v4.54.0+) — every ZIP backup is made in one pass (no temporary copy; photos, videos and archives are stored as they are), keeps symlinks, empty folders and file permissions, and saves the project database with its procedures, functions, triggers, events and views. Whatever could not be saved — an unreadable file, a database that could not be dumped, a stopped container — is listed: ⚠ next to the backup in the list (hover for the details), in the result of the button and of codehero_unified_backup. A database with a broken view is still saved (only the view is skipped, and named). A backup shows in the list only once it is complete.

One-click moves (5.16.3) — a restore or an import brings back more of a moved project. The links of a Python venv (to /usr/bin/python3.x or /usr/local/bin/python3.x) and of Node's tools (/usr/local/node<N>/bin/node, npm, npx) come back; every other link that leads out of the project stays refused. An archive of a container WITHOUT root restores without root, whatever its services; an old container (with root) is converted only with your tick, as before. A container's own systemd units and nginx sites (made by tickets inside it) travel in the backup; the restore enables and starts them as they were, after it checks nginx. A 5.1.x backup keeps its web app row «nginx», so the preview's route works. The web server can list the project's root folder (r-x), which removes nginx's [crit] lines on every home page; the .secrets folder stays closed. A restore or an import as a NEW project (the panel, or an API restore with the purpose «move») also brings back the site's firewall settings AS THEY WERE (its live and preview modes, «Allow this» exclusions, address lists, sensitivity) and its production domains. Each domain gets a certificate: the one this server already has for the name; else the backup's own (a Let's Encrypt certificate comes with its renewal, so it renews by itself once the domain's DNS points to this server; an uploaded one as it is); else a temporary self-signed one - after the DNS points here, press Change certificate → New Let's Encrypt certificate on its domain card, or upload your own. A name another project of this server already has is not added. The restore never waits or fails for a domain or a certificate: the summary says what to do. A restore over the same project, a maintenance copy and an API drill change no domain.

Any size, in a stream (v5.0.6+) — backups, restores and imports read and write in a stream: the panel's memory stays near its own size whether the project holds 1 GB or 100 GB. Export Project and Restore run in the background and the page follows them; the Export then downloads as a normal file. A restore first checks there is room on the disk to unpack the backup, and files get their original times back.

A safety copy before every restore (v4.54.0+) — a restore into the project first takes a Safety snapshot of the whole container (container projects) and a complete ZIP backup of the files and every database; if that copy cannot be made, nothing is restored. Importing a container image into the project takes the ZIP copy first (the image replaces the container's snapshots too). A backup restored as a new project brings its database objects along — their owner becomes the new project's database user.

A restore that did not finish says so (v5.11.3+) — the panel restarts, the server crashes or the power goes in the middle of a restore or an import. Then the project page shows a red notice: «The restore of backup_SHOP_20261106_081500_L3_manual.zip did not finish (2026-11-06 08:15:00 UTC). Some files may come from the backup and some from before it. Restore it again, or go back with the safety copy backup_SHOP_20261106_081501_L1_pre-restore.zip (Backups → Safety copies). The project's tickets wait until you choose.» A snapshot restore says «The snapshot restore of … did not finish … Restore the snapshot again.» A project that was being restored or imported as a new project says «This project was being restored / imported when it stopped. Delete it and import the backup again.» An import into the project (codehero_import_project, mode extend) says «The import into this project did not finish … Import again.» The notice has two buttons: Restore again (it opens the restore of the same backup, in the Backups list) and I checked it — dismiss. The Projects list shows «⚠ restore did not finish» on the project's card.

An older backup and its database login (v5.11.3+) — a project imported from an older CodeHero's Export (the migration file) keeps its database name, user and password when they are valid and free on this server, so its site connects at once; otherwise it gets proj_<code> and a new password and the answer says so. A backup made before 4.55.1 does not record the database login: after restoring it as a new project, update the app's configuration (or ask a ticket). The answer names the database the app's configuration may still use. A database that could not be made or loaded is said in the answer too.

A restore never stops on a setting (v5.12+) — a missing or unknown setting in a backup takes its default, the restore goes on, and the answer names it. A backup with no format version is read as format 3.0. One made by a newer CodeHero is restored when its layout can be read, and the answer says «made by a newer CodeHero»; if its layout cannot be read, it is refused with that sentence. A value this server does not know (a project type, a role, a think mode) takes the default of its column. A damaged file is no setting: «This backup is damaged: its manifest or its layout cannot be read. Nothing was changed, and the file stays as it is.» A file with a backup manifest is never imported as plain files: the panel's Import and the assistant's import from a backup use the same check.

The tickets of a backup come back whole, or not at all (v5.12+) — a Level 3 restore replaces the project's tickets, dependencies and messages in one step. It checks them first. A ticket number that is there twice, a parent or a dependency that is not in the backup, or a message file that is cut stops it: the project keeps the tickets it had, and the answer says why. A status this server does not know comes back as skipped, so that ticket never starts by itself. A backup without tickets leaves the project's tickets as they are.

A project whose database is gone (v5.12+) — the safety copy still needs the whole current database. If the project's own login cannot save it, CodeHero asks this server's MySQL whether that database is there (only for a project on this server: never for a container project or a remote database).

A container image without readable metadata (v5.12+) — a .meta.json that cannot be read counts as a missing one, and the answer says so. The image's architecture is then read from its own disk. If the disk does not tell, the import is refused and the previous container comes back.

What the ZIP backups leave out — an editable list, one pattern per line: .secrets and the dependency / build / cache folders (node_modules, vendor, .git, dist, …) by default. A name matches a folder or file with that name anywhere; a path (public/uploads) that folder from the project's root; * and ? are globs (*.mp4, uploads/tmp/*). Quick / Full / Complete use every line; Export and the automatic backups use only the .secrets line. The list saves itself as you type (removing the .secrets line asks first); Defaults brings it back.

The secrets in a backup (5.13.4; before, a checkbox)

The line Secrets: … under the backup buttons says whether the next backup or Export Project carries .secrets/, and why.

The container's database accounts (v5.4.0+) — every backup of a container project also saves the MySQL / MariaDB accounts of its services (each user with its password hash and its grants). A restore or an import creates them again, so an app that logs in with its own database user works on the new server unchanged.

SQL Server's logins travel with its databases (5.13.5) — a backup of a container project with SQL Server now also saves its logins, with their password hashes (never a plain password), beside the databases. sa and disabled logins are not saved.

A restored web app keeps its port and its start command (5.13.5) — a web app of the Services tab comes back from a backup with the port and the start command it had, and starts with them. Before, a restore as a new project gave it the default port (a Node app that listened on 3000 got 5001) and the copy answered 502 until you set the port on the Services tab. If the port is taken, or the start command cannot be applied, the answer of the restore says the step, for example «set the port of <name> to <port> and press Restart». A backup older than 5.13.5 gives its port back, and its start command stays the install default.

A container's cron jobs travel with its backup (5.13.4) — a backup of a container project keeps the crontab of each user of the container (the platform's own boot line is left out). A restore or an import installs them in the new container, with the project's folder name changed when it changed, and the result says «cron jobs restored for …». A drill keeps cron stopped, as before: its jobs are installed and wait. A backup made before 5.13.4 has no jobs and restores exactly as before.

A trigger whose statement ends with ; restores (5.13.4) — before, the dump of such a trigger could not be read back (ERROR 1064 … near ' */'): the restore stopped there, the rest of the database stayed out, and the answer said «done». Backups now write the readable form, and an older backup is corrected while it is restored.

DATABASE PARTIAL (5.13.4) — a database step that fails is never a plain «done». The restore in the panel, the import and the restore of the API (the field database_partial) say DATABASE PARTIAL and name the first error. Nothing is rolled back: the files and the rest are restored, but what the dump holds after the error is missing. If you see it, import or restore the backup again, or ask a ticket to load the dump.

What a container ZIP does not carry (5.13.4)

A Recovery copy and a ticket's own services (5.13.4) — the Recovery copy pauses the services a ticket made in the container too (a timer that starts them again is armed first), and the copy names them. If one of them cannot be paused, or ran again during the copy, the copy is «Partial — not a verified recovery copy» and says which.

A restore says what the backup left out (5.13.4) — its answer repeats what the backup itself recorded as missing, never a bare «Restored». A new project from a backup that recorded its secrets as left out says so (add them on the project's 🔐 Secrets page); an older backup may not have recorded it, and then says nothing about it. An older container backup (before 5.4.0) says the database users other than the project's are not in it: create them again. «Left out when the backup was made: …» repeats the backup's own warnings (three, the rest counted). The panel, the import, the assistant and the API say the same.

Port forwards after a restore as a new project (5.13.4) — a container backup lists its host port forwards, but a restore as a new project (the panel, an import, the assistant) and a fresh image import (a container image imported as a new project) open none of them: a backup from anywhere must not open a port of this server. Each comes back OFF, the answer says «Port forwards from the backup are kept OFF: …», and the project's Container tab shows each as OFF with Open. If you want one, press Open: it is checked like any new forward. A restore over the same project keeps its own forwards, and the API restore lists them as before (not moved).

A killed backup leaves nothing behind (5.13.4) — a backup cut in the middle (the panel killed, a power cut) used to leave a .partial file as big as the backup, and a .work folder, for good. The project's next backup removes them first (only its own, in its backup folder and its Kept folder; a backup that is still running is never touched).

The semantic search index — a Complete backup carries it, and an import reuses it. On a server without semantic search (or with it off for the project) the index is kept beside the project's backups and used — not built again — as soon as semantic search is turned on for the project with the same model (Settings → 🧠 Semantic search). The import log, the project's Semantic search box and codehero_semantic_status say it in one sentence: «This project came with a search index (model <name>). Install <name> on this server and it is used at once, without a rebuild.» Installing a model, from Settings or by the MCP tool, makes the server look at every project with semantic search on at once, so the kept index is used within moments.

Links in a restore (5.7.0) — restored as a new project, a link inside the project that pointed into the project's own folder (Laravel's public/storage) comes back, as a relative link; other absolute links are left out and named in the result. Restored into the project, a link where the backup has a file is replaced by the backup's file, and the link's target is not touched; where the backup has a folder, the result says «cannot overwrite non-directory» for that path.

Recovery copy (5.8.0, container projects) — the button beside Complete, under Create Backup: the copy that can bring the app back on another server. It is a Complete backup with the secrets (.secrets/). While the files and the databases are saved, the app's own services (web apps, workers, PHP-FPM, custom services) and the container's cron are stopped; the databases keep running, so every database and the files are from the same moment. At most 30 minutes: then the container starts them again by itself, also if CodeHero stops on the way; when the copy is done they start at once. The copy is then checked — every folder, every database, the custom services, the services' settings and the secrets are in it, nothing is left out, every problem is named, its bytes match its own list — and the page shows how it ended and the copy's SHA-256 (compare it after the download; with a backup encryption key set (5.10.0) it says «SHA-256 of the decrypted ZIP»: compare it after you decrypt). A stopped container cannot give one: start it first. Right after a Start a service may still be starting: the copy looks again for a few seconds; if it still cannot tell whether the service runs, it stops none of the app's services and says so — press Recovery copy again in a minute. It is refused while a ticket of the project runs, or of a project it allows (Project links), and none of their tickets starts until it ends (one copy of a project at a time); meanwhile its services cannot be started from the panel, and the assistant and the companion only read the project. A cron job that already runs goes on after cron stops: the copy waits up to a minute for it to end, else it is Partial. A file that cannot be read, or the container's database accounts that cannot be saved, keep it Partial. Make it while nobody works on the project: a command the assistant started before the copy, or your own work in the Code Editor or a shell, is not stopped by it. The project's secrets folder on the host is never in a project copy (the installation's own copy holds it): when the project has one, the button asks where you keep a copy of it — without an answer the copy is Partial. Processes started by hand and timers you added yourself in the container are not paused.

Recovery candidate or Partial (5.8.0) — each ZIP in the Backup History says which it is. «Recovery candidate — not yet restore-tested»: a Recovery copy that passed the check. «Partial — not a verified recovery copy»: every other backup — still useful, but not proof that the app comes back on another server (hover for the reason). «Verified» also needs a restore of that kind of copy on a blank server.

The installation's own copy (5.8.0) — a project copy does not bring back the installation itself. On the server's console: sudo /opt/codehero/scripts/platform-copy.sh saves the platform database, /etc/codehero, /etc/codehero-security, /var/lib/codehero-security, the projects' host secret folders, the device keys, the domains' certificates and the VPN hub into /var/backups/codehero-platform/, checks it the same way and prints its SHA-256. It holds every secret of the installation: the panel never makes or shows it, and it is never restored as a project. Copy it off the server yourself, over SSH. With a backup encryption key set (5.10.0) it also writes <name>.zip.age beside it, encrypted for your key: take that file off the server. The plain ZIP stays: this server's own restore uses it. The SHA-256 it prints is then the decrypted ZIP's: compare it after you decrypt. Exit code 3 means the plain copy is made but the encrypted copy failed; the line says why.

Bring the installation back on a new server (5.8.0) — on a blank server with the same release installed, on its console: sudo /opt/codehero/scripts/platform-restore.sh restore <platform_….zip> --purpose drill (a test server) or --purpose replacement (the old server is gone). An encrypted copy (.zip.age) is refused: decrypt it on your own computer first, then copy the plain ZIP to the new server. A Partial copy changes nothing. The installation is held before anything loads: no ticket, review, worker, container or certificate renewal runs, the panel changes nothing (every page says «Recovery checks pending»), the assistants only read. The copy's settings, keys and certificates come back, this server keeps its own database login, the copy's protected folders are kept aside. Its «Ticket sandbox» switch is set to what the copy had (on or off) before the restore ends; the other protections stay as this server has them. A drill also leaves out the copy's Telegram bot, device logins, VPN hub and certificates. Every unfinished ticket of the copy waits for you: nothing runs, reviews or wakes it by itself. A note in the ticket says so: send a message to run it again, press Start Now or Reopen, or close it. The copy's sign-ins are closed: its passwords, remembered devices and sessions do not work. Then … reset-access (the owner's new panel password, typed on the console; then sign in and look — nothing changes yet), … check, … request --intent "…" (a replacement also --fenced "…": how the old server is stopped) and … activate; … status says where it is. A command cut half-way: run it again. Each project comes back from its own Recovery copy (Projects → 📦 Import).

Encrypted and plain downloads (5.10.0, two buttons in 5.13.4)

ButtonWhat you get
Encrypted (first, recommended)The whole backup. .secrets is in it. A .age file. Only your private key opens it.
PlainThe backup as it is, WITHOUT .secrets. Everything else stays, passwords included.

Secrets

Passwords, keys and tokens that you give to a ticket are kept as files in .secrets/ at the project root:

Where.secrets/
GitLeft out — a .secrets/ line is added to .gitignore once. Delete it in the Code Editor to commit them; it is not added again.
ZIP backups, ExportLeft out — remove the .secrets line from the list in Backup & Restore to include them.
Restore of a ZIP backupThe current .secrets/ is kept; a backup that contains secrets puts its files back.
Local snapshotsKept (snapshots never leave the machine).
Container image exportIncluded — the image is the whole container disk.

A ticket uses a secret by its name and its path (5.13.4)

QuestionAnswer
Which .secrets/ does a ticket use?The .secrets/ of its own project. On every AI route. In a host project and in a container with root.
How does it use a value?BY PATH. Example: ssh -i .secrets/<key> or . .secrets/<set>.env.
Does it see the value?CodeHero checks what it shows the AI and hides a value it knows (it shows [secret: NAME] and the rest of the output). From 5.16.0 it checks every request that leaves for the AI provider too. A value it does not know is not hidden. See «Secrets: what the protection does, and what it does not» below.
May it print a file of .secrets/?No (5.18.0). A cat, head or tail of a file there, or a Read of it, is refused, and the refusal tells the ticket the way: the PROJECT DATABASE block, the file by its path, codehero-secret put, and grep -c to check that a key is there. A public key (.pub) may be shown.
May it copy a value into the app?Yes, with ONE command: codehero-secret put <KEY> <file> <placeholder> --as php|env|ini|json|plain. It copies the value without showing it.
Which account reads .secrets/?Only the project's own ticket account. Never the web server's account (www-data), a group or a linked project.
Does the app read .secrets/?No. The app reads its own config or .env.

The platform also keeps the project's database login in two files: .secrets/codehero-db.env and .secrets/codehero-db.cnf. It rewrites them at each ticket start. A ticket uses them by path. It does not need the password, and CodeHero hides it from what the AI sees.

Example. A ticket puts the database password in wp-config.php:

  1. It writes __DB_PASSWORD__ in wp-config.php with the Write tool.
  2. It runs .heroagent/bin/codehero-secret put DB_PASSWORD wp-config.php __DB_PASSWORD__ --as php.
  3. The command writes the value into the file. It prints nothing.

If you upgraded to 5.13.4, every project that has a .secrets is prepared once more, in the background. Its tickets wait with «Not started — the sandbox of this project is being prepared — it starts again by itself.» You do nothing.

More protection — a folder on the host. The Create button in the 🔐 Secrets panel makes /var/lib/codehero/secrets/<CODE>/, outside the project: never in git, a backup, an export, the container image or a snapshot. Only this project's tickets can use it; in a container project it is visible inside the container at the same path (the button restarts a running container once, never while a ticket of the project runs). While Apply security or Remove security runs on that container, the button answers «try again in a minute» (5.8.0). It is deleted together with the project.

The Secrets menu (v4.52.1+) lists every file of both places, below in the same panel:

The secrets filter (v4.53.0+) — the values you keep in .secrets/ and in the host folder are protected, subject to the kinds and limits below:

Secrets: what the protection does, and what it does not

How it works.

One more check on every request (5.16.0).

A write into the secrets folders asks you.

A key that lives in your app's own settings (an SMS key, an SSH key the app uses, a payment key):

What it does not cover.

When would a model do this?

Our advice: never give an AI a production key.

A LOCKED project (5.7.1) — no backup, snapshot or container image is restored over it. The panel and the assistant say «Refused: project … is LOCKED». A restore as a new project works, and the new project starts in Developer mode and unlocked (Project modes and the project lock).

Create maintenance copy (5.8.0) — on a live container project: Backup & Restore → Maintenance copy → Create maintenance copy. It makes a second project from the project's newest Complete backup, which must be a Recovery copy (Backup & Restore → Recovery copy). If the newest Complete backup is not a Recovery copy, it is refused, with the reasons: make a new Recovery copy first. The live project is never changed. A container without root has no maintenance copy yet.

Danger Zone

A LOCKED project (🔒) cannot be deleted (5.7.1). Unlock it first with its padlock (The project lock).

Delete the project and all its data. Since v4.55.0 the dialog asks: Take a Complete backup first (the default — files, every database, tickets; if the backup fails or misses a database, e.g. a stopped container's, nothing is deleted) or Delete without a backup.

Delete asks for the project's code (5.8.0), not its name: type the code the dialog shows. The server checks it too, so a wrong page or an old browser tab never deletes another project. A tab opened before the upgrade is refused: reload the page.

The backups a deleted project leaves — that last one and its earlier ones — are in Dashboard → Import Project → Existing backups → Deleted projects: Import brings the project back (with a new code), Download, Delete one, or Delete all — its database dumps too (v4.55.1+). (Before v4.55.0 the dialog promised a backup that was never made.) A delete never drops a database or a database user that another project still uses (v4.55.1+).

5. Project Settings & Context

Project Context

Each project has an AI context that helps the AI understand the codebase:

Project Settings

Edit project settings from the project detail page: change provider, AI model, think mode, update description and context, set default execution mode, set the project mode (Developer, 🛠 Maintenance or 🔒 Production, 5.7.1 — Section 8), configure auto-commit and auto-push for git.

The lean core (5.7.0)

Every ticket reads a small core (core-base.md) and the rules of its kind:

A ticket without a tag gets the planner's rules when a line near the start of its text begins with PLAN MODE. The guides still load by the ticket's kind and skills. The core is written in simple, structured English, so a strong model and a local model read it the same way.

6. Creating Tickets

Tickets are the core workflow unit. Each ticket represents a task for the AI to complete.

Create Ticket
Create Ticket
FieldRequiredDescription
TitleYesShort description of the task
DescriptionYesDetailed instructions for the AI
TypeNoCategory (feature, bug, task, etc.)
PriorityNolow, medium, high, critical
ProviderNoOverride project's provider
AI ModelNoOverride project's developer role
Think ModeNoOverride project's think mode
SkillsNoGuides the ticket must load at its start (Design, Database, Tests …); the guides for its kind of work load by themselves. A skill also gives a build ticket the tools of its work (5.7.0): the picker shows them (+ tools: …)
Execution ModeNoOverride project's execution mode
Sequence OrderNoExecution order number
DependenciesNoTickets that must complete first
Parent TicketNoCreate as sub-ticket
Max RetriesNoAuto-retry count (default: 3)

The tools of a ticket (5.7.0). A build ticket (no tag, a [FIX], a [WORKER]) gets the tools its work needs — 21 instead of 65. Its skills add the tools of their work:

SkillThe tools it adds to a build ticket
mobile, native, devices, android-emulator, windows-app, local-llmThe device tools: codehero_devices, codehero_device_action, codehero_preview_views
services, tuningcodehero_manage_service
changescodehero_news_post

Tickets Page

Tickets List
Project Tickets

Features: drag-and-drop reordering, filter by status/type/priority, bulk actions, and sequence visualization.

7. Ticket Types & Priority

Ticket Types

TypeColorUse For
featurePurpleNew functionality
bugRedFix broken behavior
debugOrangeInvestigation, troubleshooting
rndVioletResearch & Development
taskGrayGeneral work (default)
improvementCyanRefactoring, optimization
docsGreenDocumentation

Priority

PriorityWhen to Use
criticalUrgent, blocks other work
highImportant, do soon
mediumNormal priority (default)
lowNice to have

8. Execution Modes

Control how much freedom the AI has when working on tickets.

ModeDescription
AutonomousFull access, no permission prompts. AI works uninterrupted. Default
Semi-AutonomousSmart sandbox. Auto-approves safe operations, asks for risky ones, blocks dangerous.
SupervisedAI asks permission before every write/edit/bash operation.

Semi-Autonomous Mode Details

Auto-Approved (no prompts)

Requires Approval

Blocked

"Approve Similar" Feature: When a permission prompt appears, click "Approve All Similar" to auto-approve future similar operations in the same ticket. For a tool other than Bash, Edit and Write (ProcessManager, a device action, a Browser script, an MCP tool), Approve and Approve All Similar allow only this exact call, with the same arguments; a call with other arguments asks again (5.7.0).

Grok Build's own tools (5.10.0). Grok Build calls a CodeHero tool through its own tool use_tool.

A server a ticket reaches by ssh, and a package on this server (5.13.4):

What no ticket may do, in any mode (5.7.0):

Project modes and the project lock (5.7.1)

A live project needs more than an execution mode. The project mode decides what an AI may do in the project. The project lock decides what nobody may do to the project until you unlock it. Both hold for every ticket and every assistant, with every AI family: Claude Code, Codex, Grok Build and the API models.

The three modes

🔒 Production🛠 MaintenanceDeveloper (the default)
The execution mode (autonomous, semi-autonomous, supervised)Does not applyDoes not applyApplies as before
Read files (Read, Grep, Glob)AllowedAllowedAllowed
Read commands for logs and state: ls, cat, head, tail, grep, find, wc, git log, git diff, git status, git showAllowedAllowedAs before
A database query with only SELECT, SHOW, DESCRIBE or EXPLAINRefused: an AI never reads the live dataAllowed: it is a readAs before
Any change: a file, a command that changes something, the database, a service, an install, a script runRefused, alwaysAsks you, always — in autonomous mode tooAs before
Browser, HttpRequest, PageAssert, a screenshot of a pageRefusedA page opens. Every click, form and page script asks you.As before

Set the mode

  1. Open Projects.
  2. On the project's card, click Edit.
  3. In Project Mode, choose Developer, 🛠 Maintenance or 🔒 Production.
  4. A box says what the mode means. Click OK to keep it. Cancel puts the old mode back.
  5. Click Save Changes.

A ticket in a production project

A ticket in a maintenance project

  1. The AI asks for one change at a time, the smallest that fixes the problem.
  2. The ticket waits. Its page shows Permission Required with the line 🛠 MAINTENANCE project — every change waits for your yes. Approve only this exact change.
  3. Read the DANGER line and the change.
  4. Click ✓ Approve or ✗ Reject.
  5. IF you approve, THEN the AI runs that exact call once.
  6. IF the AI runs the same call again, or a changed call, THEN it asks you again.
  7. IF you reject, THEN the AI does not try another way. It writes the change in its report and stops.

The DANGER level on every approval request

Every approval request shows a DANGER line, in every mode. In a Developer project it shows on the semi-autonomous and supervised requests too.

LevelColourMeaning
HIGHredIt deletes or changes data or the system. For example: DELETE, UPDATE, INSERT, DROP, TRUNCATE, ALTER, FLUSHALL, dropdb, rm -r, git reset --hard, git push --force, crontab -r.
MEDIUMamberIt changes files or services. For example: a file change, rm, mv, > over a file, chmod -R, systemctl restart, kill, a script run, a Browser click.
LOWgreenIt reads.
The limit. The danger words find what is written plainly. A word split in parts ("DE"+"LETE") or hidden in base64 is not found by words. The line names the usual tricks as «hidden code — read it yourself». That is why a production project refuses every change, not only the dangerous ones.

The assistants follow the same rules

The project lock

The padlock is on the project's card (🔓 / 🔒) and on the project page (🔓 Unlocked / 🔒 LOCKED).

  1. To lock: click 🔓 on the card, or 🔓 Unlocked on the project page. A box says what the lock refuses. Click OK.
  2. To unlock: click 🔒 on the card, or 🔒 LOCKED on the project page. A box says what the project allows again. Click OK.

A LOCKED project refuses these actions, from the panel, the assistants, the MCP tools and the panel's API:

A LOCKED project still allows deleting a snapshot (it does not touch the project; the automatic retention deletes old snapshots as before; Kept ones stay), and the normal work: tickets, edits, backups, a new snapshot.

Live work: two projects (a live project and a maintenance copy)

Use two CodeHero projects for an app that real people use.

  1. The LIVE project. Set it to 🔒 Production mode and lock it. An AI only reads there: it finds the cause of a fault in the code and the logs.
  2. The MAINTENANCE copy. A second project, in its own container or on another CodeHero server.
    • On the same server (5.8.0): on the live project, Backup & Restore → Maintenance copy → Create maintenance copy (Create maintenance copy). It needs a Recovery copy of the live project first (Backup & Restore → Recovery copy). It is prepared stopped, with its own passwords. Start maintenance sets 🛠 Maintenance mode and starts it.
    • On another server: make it from a backup of the live project, Projects → 📦 Import (Section 3). It starts in Developer mode and unlocked. Set it to 🛠 Maintenance mode.
    • In 🛠 Maintenance mode every change waits for your yes.
    • IF the live database is outside CodeHero (a cloud database), THEN give the copy a database user that can only read. For example: a user on the cloud database's reader endpoint. The AI then sees real data and cannot change it.
  3. A fix, step by step:
    1. Open a ticket in the maintenance copy. Approve each change on its page.
    2. Check the fix in the maintenance copy's preview.
    3. Commit and push it there: the copy's Git Manager → the repository → Changes → Commit and Push.
    4. On the live project: its Git Manager → the repository → Pull. A pull from the panel is your own action: the project mode does not stop it.
  4. The config file stays outside Git. The app's config file holds the database address and the passwords. Each project keeps its own: the live one points to the live database, the copy to the read-only user. A pull never brings the copy's config file to the live project.
  5. PHP checks changed files every 60 seconds. Set opcache.revalidate_freq=60 in the live site's PHP settings. A host project: Production Deployment → Production PHP for this domain → its settings box (Section 32). A container project: a ticket sets it before you switch the project to 🔒 Production mode. A pulled change then shows on the live site within a minute.
  6. Keep AI work on the maintenance copy (5.8.0). Settings → Security → 🛡 Protections → tick Keep AI work on the maintenance copy (Section 28, «Protections»). AI tickets then run only on the started maintenance copy; on the live project they are refused. Turn it on after Start maintenance of the copy. Before that, on the live project and on the copy: for each repository with a saved token, check its Remote URL, type the token again and press Save Token (Section 19, «Managed Git with the maintenance control»). A token saved before 5.8.0 is not sent while the switch is on.

Projects are isolated by default. A ticket works only in its own project. A project link lets the tickets of one project work in another project too. The other project decides: it allows your project on its own page.

The panel Project links — Allow access from is on every project page, for host projects and container projects. It is right after the Container Isolation (LXC) panel. It opens on a click, like the other panels. It lists every other project. Each entry shows:

The help line under the list says: «A ticked project's tickets may read and change this project's files, tickets, knowledge base and semantic search, under this project's mode and lock. Two-way: both projects tick each other.» The line above the list says how many projects may reach this project. For example: «No other project may reach this project» or «1 project may reach this project».

In this section, project B gives the access, and project A gets it.

Set up a link

  1. Open the page of project B, the project that must be reached.
  2. Click the panel Project links — Allow access from to open it.
  3. Tick project A, the project whose tickets may work in B.
  4. Click Save. The answer says, for example, «Saved. 1 project may reach this project.»
  5. IF B is in production mode or LOCKED, and the Save lets in a new project, THEN a box first says what that project's tickets may do in B. Click OK to save, or Cancel to save nothing. An untick never asks.
  6. IF B's tickets must work in A too, THEN open A's page, tick B and click Save. Both entries now show two-way.

What a tick gives

B ticks A. Then A's tickets may:

  1. read and change B's files: its web folder, its app folder and, for a container project, its container's files;
  2. use B's tickets: list, search, read, create, reply, close, start and wake them;
  3. search B's knowledge base, and add knowledge to it;
  4. search B's semantic index and its codebase map;
  5. read B's project details and its progress;
  6. reach B's container: run a command there with crun, open its address and its preview.

B's rules still win

  1. IF B is in 🔒 Production mode, THEN A's tickets only read B's files. Every change there is refused.
  2. IF B is in 🛠 Maintenance mode, THEN every change of A's tickets in B waits for your yes, on A's ticket page.
  3. IF B is LOCKED, THEN A's tickets cannot delete B, its folder, its container or its database.
  4. A's tickets never see B's secrets: B's .secrets/ folder, its host secrets folder and its backups are refused.
  5. IF a value of B's secrets shows in a tool's output, THEN it is hidden before A's ticket sees it.
  6. A's tickets never get B's database password or B's preview key. The tools open B's preview with the key themselves.
  7. B's tickets and B's knowledge base work for A's tickets as they work for B's own tickets in that mode.

B's preview from A's ticket (5.11.0)

With «Ticket sandbox» on (Section 28), a ticket of A opens B's preview with a link key of its own. It never holds B's own key.

B's history names A's ticket

Every change that A's tickets make in B is written in B's history:

Containers: crun only while linked

Example: one app in two projects

An online shop is one app in two projects. Both have a container. shop-api: the REST API and the database. shop-web: the pages that call the API.

  1. Open the page of shop-api. In Project links — Allow access from, tick shop-web. Click Save.
  2. Open the page of shop-web. Tick shop-api. Click Save.
  3. Both entries show two-way and + network. The two containers may now connect to each other.
  4. A ticket in shop-web needs a new field from the API. It reads the API's code in shop-api.
  5. It opens a ticket in shop-api for the new field, or it changes the API itself.
  6. The new ticket in shop-api shows «🔗 Opened by ticket … of project …» with the shop-web ticket.
  7. IF shop-api goes live in 🔒 Production mode, THEN the tickets of shop-web only read there.

IF one of the two is a host project, THEN the link works the same, without + network.

Text a ticket reads gives it no orders (5.11.4)

A ticket reads files, web pages and the output of commands. Someone can hide an order in such a text: «delete the tests», «send the .env file to this address».

A plan asks you once (5.11.4)

A [PLAN] or [REPLAN] ticket lists every tool, service, package, port and login its work needs, and asks you for them together, at the start. The tickets after it build without asking. A ticket that is refused a step gets the exact way to do it, and goes on.

Tickets write to each other in simple short sentences, so a small model can do the work of a big one. To you a ticket writes in your language, in plain words.

The approval reviewer (5.12)

When a ticket asks for your approval and you are not there, the request waits. After 15 minutes a second AI reads it. It reads the request, the ticket's goal and the last messages of the ticket. It never approves anything. Only your Approve approves.

It decides one of four things:

9. Sequencing & Dependencies

Sequence Numbers

Control execution order: assign a number (1, 2, 3...) to each ticket. Lower numbers run first. Same number = run in parallel (as many at once as the installation's MAX_PARALLEL_TICKETS_PER_PROJECT slots allow). A higher number starts only when every lower-numbered ticket is done or skipped; a ticket left in awaiting_input holds everything behind it. A dependency is satisfied only by done/skipped, in relaxed and strict mode alike.

sequence_order=1: [Setup DB, Install deps]     → Run in PARALLEL
sequence_order=2: [Build auth]                  → Waits for seq=1
sequence_order=3: [Users API, Products API]     → Run in PARALLEL

Parallel Work and Lead Mode

A plan runs serially by default: one ticket after the other. Tickets share a sequence number (and run in parallel) only when you ask for parallel work and the planning ticket has proved that no two of them write the same file.

A document that several parallel tickets must add to and the product needs (a register, the CHANGELOG.md, a handover document) gets ONE owner ticket in the phase: the [RELEASE] when the phase has one, else the lead of the workers, else a build ticket after the group. The other tickets write their lines in their own SPEC FILE, under SHARED ROWS: <file>, and never edit the document; the owner copies them in, a [RELEASE] checks the document again before it builds the package, and the [REPLAN] checks that none is missing. Serial work and simple builds need none of this.

One case needs no approval, because nothing can collide: lead mode. After the planning ticket and its peer have agreed on the plan and your answers are in, a lead may build a part as [WORKER] tickets that report back to it, each a different job, with no file written by two of them, at most 5 at a time. The lead is the planner itself, or a build ticket that the plan names for a big part (its ticket text has a LEAD MODE: line; the planner stays the planner):

The OWNS: line (5.10.0). It holds for every ticket whose text has one, not only for a worker. Inside its project the ticket writes only the files on that line: the platform refuses its other file edits, its common shell writes and its package installs. The change log .specs/000-changes.md is always allowed.

A part that touches money, permissions, security, deletion or concurrency still gets one group [VERIFY] from the other provider family, after the lead closed the last worker. For a build lead, the planner puts that [VERIFY] right after it.

Relaxed vs Strict Mode (deps_include_awaiting)

The flow decides who closes a ticket when the agent ends its turn (every run ends in awaiting_input). The agent's report starts with two lines the reviewer reads: NEEDS THE USER: yes/no and OPEN ISSUES AND DOUBTS: …. Before it writes them the agent checks its own report: finished or recorded work is reported as done, not as an open issue; a technical doubt it cannot settle is tried another way and then taken to one helper ticket; only what truly needs you becomes yes. yes always keeps the ticket open for you, with one exception (5.13.5): a yes that only lists checks the agent can run itself (for example «the preview checks have not been run») is asked once more before the ticket waits for you. A chain ticket ([VERIFY], [FIX], [PLAN], [REPLAN]) closes on its own no; its listed doubts stay on the record. A [PEER], [HELPER] or [WORKER] ticket is never auto-closed: the ticket that opened it closes it. A build ticket whose lines say no + none closes on those lines (the next [VERIFY] is the check). A report that contradicts itself (no followed by a list of open issues) or that has no two lines is sent back once: the reviewer writes to the ticket (📨 SYSTEM (auto-reviewer): …), the agent corrects its lines and the ticket closes without waiting for you; if the second report contradicts itself again, the ticket waits for you (never a loop). A build ticket whose SPEC FILE still holds a point under ## OPEN (a decision only you can make) and whose report says no is also sent back once (5.17.0); the second time it waits for you. A ticket parked with ⏸ WAITING-FOR-TICKET #id (number · title) — or ⏸ WAITING-FOR-ALL-TICKETS #a, #b (…) — waits for those tickets (see Tickets that open other tickets). A planning ticket cannot create tickets while a peer, helper or worker of the project is still open (the platform refuses), and a subscription window limit reported by the CLI pauses the ticket and retries every few minutes until the window is back.

The auto-reviewer, the watchdog (every 30 minutes it checks that a running ticket is not stuck) and the ticket summaries think in balanced mode by default, on the ticket's provider. Change it per role in heroagent.conf → role_think_modes (close_ticket_reviewer, kill_switch: off, basic, balanced or ultra).

ModeBehavior
Relaxed (default)The auto-reviewer reads the final report and closes the ticket (done) when the work is complete and clean, so the next tickets start on their own
StrictNothing closes automatically; you review and close every ticket, and the run waits at each one

In the panel: the New Ticket form has the box «Relaxed flow: auto-close when clean (untick = strict)», ticked by default. The ticket page shows both settings in Ticket Details («Flow: Relaxed · Mode: Autonomous»), and ✏️ Edit changes them. The flow and the Execution Mode are two settings: Autonomous / Supervised decide whether the agent asks before it writes, not who closes the ticket. A ticket that already waits for you and is turned relaxed (on its page, or with the project's bulk «relaxed» action) is reviewed at once and closes if its report is clean.

10. Sub-tickets & Parent Tickets

Break complex tasks into smaller pieces:

  1. Create a main (parent) ticket
  2. Create sub-tickets with Parent Ticket set to the main ticket
  3. Sub-tickets inherit project context + receive parent's conversation summary

Sub-tickets wait for parent to complete first, then receive context from parent's title, description, and last 50 messages.

Tickets That Open Other Tickets

Tickets open other tickets while they work: a planning ticket opens a [PEER] that reviews its plan (and [WORKER]s in lead mode, as a build lead does), a verifier opens a [FIX] for the builder, and any ticket may open one [HELPER] for a doubt it cannot settle. The platform records who opened each ticket (created_by_ticket_id). They talk with messages (codehero_update_ticket(reply=…), signed 📨 FROM TICKET #id): a working ticket reads a message at its next step, a parked ticket is woken by it. The platform makes sure nobody waits forever:

SituationWhat the platform does
A ticket opened by another ticket (peer, helper, worker, fix) ends its turn without replying to its openerSends the opener that ticket's final report — "This ticket, which YOU opened, ended its turn without replying to you. If it has not given you an answer, ask it again" — and wakes it
A ticket ends its turn waiting, while another ticket is parked waiting for itTells the parked ticket to ask again (📨 SYSTEM (waiting-check): …) and wakes it — at most twice per ticket since your last message; after that it is left for you
A planner waits for several workers (⏸ WAITING-FOR-ALL-TICKETS)Wakes it once, when all of them have answered or ended
A message is information only (for example a change to the specification)Delivers it without waking a parked ticket (wake=false, shown as "ℹ️ FOR YOUR INFORMATION"); a ticket that reads it while waiting goes back to waiting

A closed ticket (done or skipped) is never woken by any of these.

Who opened a ticket and who runs it (5.8.0). Every new ticket records who opened it and the account that runs it.

When your answer changes the product. You answer a ticket's question and the answer changes a requirement (for example the payment deadline becomes 45 days instead of 30). The ticket records the change once, as a row in the change log .specs/000-changes.md (guide update.md), updates the specs and tests of the work that is still open, and sends an information-only notice to the unfinished tickets it concerns. Every ticket reads the change log first, so later tickets, the verifier and the replan know the change without you repeating it; finished work that still states the old value becomes an open item that the next [REPLAN] repairs.

11. Ticket Lifecycle & Actions

Ticket Statuses

StatusDescription
openWaiting to be processed
in_progressAI is currently working
awaiting_inputAI needs your response
doneSuccessfully completed
failedSomething went wrong
skippedManually skipped
timeoutExceeded max duration

Ticket Detail

Ticket Detail
Ticket Detail Page

Ticket Conversation

Ticket Conversation
Ticket Conversation

(v5.16.4) The box Hide the tools, show only the texts above the conversation hides the tool calls and their results. Nothing is deleted, and the browser remembers your choice. Approval cards, errors and the Console tab stay.

The start of a run is one folded line (5.17.0). Each time a ticket starts, the text it was given (the instructions and the ticket's words) is kept once, as it was sent, and the conversation shows it as ONE folded line. The ticket reads again exactly what it read before, so the next run reuses what the AI provider already holds (cheaper and quicker). You cannot delete that line.

Folded steps (5.17.0). In a long run a ticket folds the steps it no longer needs word by word (many calls and results) into ONE short note. It asks for the details back with the tool codehero_unfold (it can search by a word); they come back as a NEW message and the note stays. A report, your messages and the running step are never folded. Nothing is lost from the history.

What a ticket sees from a web address (5.17.0). The HttpRequest tool also shows the useful answer headers (Allow, Location, Content-Length, Cache-Control, Set-Cookie, WWW-Authenticate): a cookie's name and attributes, never its value ([hidden]).

On a phone, tablet or foldable the conversation gets the screen. Up to 1100 px wide (tablets, an open Galaxy Fold) the menu is behind ☰ and the ticket details open from Details. Scrolling the conversation down hides the menu bar, and scrolling up shows it again. While you type, 📎 and 🎤 step aside so the text box gets the width. A long ticket title stays on one line. Coming back to the app after the screen was off picks up the messages that arrived meanwhile, with no refresh.

Before it starts (v5.1.0+) a ticket writes one line — ROLE: … · KIND: … · READING: …: what it is (it builds, checks, repairs, plans), what kind of work it understood (a change of what exists, a new page or site, a redesign of your own old site, a plan, a question) and what it reads first. When your words fit two kinds that give a different result, it asks you first.

Actions

ButtonWhat it does
Start Now / Force NextForced start: runs immediately, in parallel with whatever runs, ignoring its sequence number, its dependencies and the slot limit (for an observer ticket or a small change; the flag stays on the ticket)
RetryRetry a failed ticket
SkipSkip this ticket
DeletePermanently delete ticket
StopKill switch — stop AI immediately
Send MessageAdd instructions — a working ticket reads them at its next step; an awaiting ticket re-opens. In a container project, /root on gives this ticket root inside its own container and /root off ends it (Section 31, 5.11.0)

12. Auto-Retry

Failed tickets can automatically retry. Each ticket has retry_count (starts at 0) and max_retries (default 3). When a ticket fails, retry_count increments. If retry_count < max_retries, the ticket resets to open and tries again.

13. Multi-Provider Support

CodeHero routes through 7 cloud providers — five of them also on a flat-rate subscription — and a selected OpenRouter catalog (24 models shown below). Switch per task — never locked in. Local and own-server models: Ollama, vLLM and generic OpenAI-compatible endpoints (LM Studio, llama.cpp …) are supported adapters — they need configuration and are not enabled by default.

ProviderRole models (master · senior · junior)Native price (in/out per 1M)Subscription
AnthropicClaude Fable 5.1 · Opus 5.5 · Sonnet 5.5 (vision)$10/$50 → $2/$10✅ Claude Pro / Max — via the Claude Code CLI
OpenAIGPT-6 Astra · GPT-6.1 Sol · GPT-6 Luna (vision)$10/$50 → $0.10/$0.50✅ ChatGPT Plus / Pro — via the Codex CLI
xAI GrokGrok 4.7 · Grok 4.7 · Grok Build 0.1 (vision; 500K / 256K context)$2/$6 → $1/$2✅ SuperGrok — via the Grok Build CLI (5.0.1)
z.ai GLMGLM 5.3 · GLM 5.2 · GLM 5.3 FlashX (vision) — plus GLM 5.1, 5V Turbo, 4.7, 4.6V and their Flash modelsGLM 5.3: $1.40/$4.40✅ GLM Coding plan
QwenCloudGLM 5.3 · Qwen 4 Max (the senior since 5.16.3; vision, 1M context, pay as you go and Token Plan) · Qwen 3.8 Max · Qwen 3.8 Flash (vision, 1M context) · Qwen 4 Max Preview (vision, 1M context; Token Plan only)$2/$6 → $0.15/$0.47✅ Token Plan (or pay as you go)
OpenRouterQwen 3.8 Flash · Qwen 3.8 27B · Qwen 3.6 35B-A3B (vision) by default — the catalog below on any ticketper model (catalog below)—

Providers may offer more models than their three role defaults; the codehero_get_model_table tool lists the accepted ones with their roles, vision, cost, score and the role the score earns, and the planning ticket can give a ticket any of them (the ticket's model). With inherited settings and the role's default model, when one model fills two roles the higher role thinks one step more (capped at pro); a ticket's own think mode or model wins.

QwenCloud stays a ticket provider, but it is slow and token-hungry: measured on a ticket that builds a small Python app, about 40-46 minutes and 1.4-1.5M tokens (Claude about 5 minutes / 300K tokens). CodeHero proposes it only when you ask for it; the same fact is in the provider's note that codehero_get_providers_info gives the planner.

OpenRouter Catalog with Pricing & Strengths

Prices per 1M tokens as shipped in this version's price table (estimates; OpenRouter's own page is authoritative). Sub marks a model whose family you can also run on a flat-rate subscription through its own provider. Smart weight is 1–10 (10 = arena frontier).

#ModelOpenRouter in / out (per 1M)SubSmartBest for
1anthropic/claude-fable-5.1$10 / $50✅10reasoning, debug, mobile, web design, refactor (vision)
2anthropic/claude-opus-5.5$4 / $20✅10web design, PHP backend, backend API, code review, databases, debug (vision)
3anthropic/claude-sonnet-5$2 / $10✅9boilerplate, docs, PHP frontend, testing, web design (vision)
4openai/gpt-6-astra$10 / $50✅10reasoning, debug, mobile, web design, code review (vision)
5openai/gpt-6-sol$2 / $10✅9databases, PHP backend, backend API, frontend frameworks (vision)
6openai/gpt-6-luna$0.10 / $0.50✅7boilerplate, docs, PHP frontend, testing, backend API (vision)
7x-ai/grok-4.3$1.25 / $2.50✅8reasoning, debug, backend API, code review (always-on reasoning, 1M ctx) (vision)
10z-ai/glm-5.1free (as listed)✅8frontend frameworks, PHP, docs (text only)
11moonshotai/kimi-k2.6$0.73 / $3.49—8long-context reasoning, Chinese/English bilingual, code (vision)
12xiaomi/mimo-v2.5-pro$1 / $3—7code reasoning, agent tasks (compact MoE) (text only)
13minimax/minimax-m2.7$0.279 / $1.20—7long-form generation, agent workflows (text only)
14qwen/qwen3.6-plus$0.325 / $1.95—7boilerplate, PHP backend, backend API, testing, docs (vision)
15qwen/qwen3.7-max$1.25 / $3.75—9reasoning, debug, refactor, code review, agentic coding (text only)
16qwen/qwen3.8-max-0902$2 / $6✅—reasoning, agentic coding, code review (vision)
17qwen/qwen3.8-flash$0.15 / $0.47✅7OpenRouter master · cheap agentic coding, 1M context (vision)
18qwen/qwen3.8-omni-flash$0.15 / $0.47——cheap agentic coding; text, image, audio, video input (vision)
19qwen/qwen3.8-27b$0.24 / $2.20—7OpenRouter senior · small open model — also runs on your own machine (vision)
20qwen/qwen3.6-35b-a3b$0.15 / $1—6OpenRouter junior · small open MoE model — also runs on your own machine (vision)
21google/gemma-4-26b-a4b-it$0.08 / $0.26——small open MoE model — also runs on your own machine (vision)
22google/gemma-4-31b-it$0.09 / $0.34——small open model — also runs on your own machine (vision)
23openai/gpt-oss-20b$0.02 / $0.09——small open model — also runs on your own machine (text only)
24openai/gpt-oss-120b$0.15 / $0.60——open model — also runs on your own machine (text only)
Subscriptions. Claude Pro / Max (Claude Code CLI), ChatGPT Plus / Pro (Codex CLI), SuperGrok (Grok Build CLI), the z.ai GLM Coding plan and the QwenCloud Token Plan bill at flat monthly rates. CodeHero's planner counts a subscription at effective_cost_weight = cost × 0.10 and prefers those routes automatically. A subscription run never falls back to API billing: the CLI subscriptions run without the paid key in their environment, and the GLM and QwenCloud plans use their own plan endpoint.

Cost Weights (shipped defaults, 1-10 — lower = cheaper)

ProviderMasterSeniorJunior
Anthropic1074
OpenAI1041
Grok442
GLM431
QwenCloud451
OpenRouter (qwen3.8-flash / qwen3.8-27b / qwen3.6-35b-a3b)111

Smart Weights (shipped defaults, 1-10 — higher = stronger)

ProviderMasterSeniorJunior
Anthropic10109
OpenAI1097
Grok997
GLM987
QwenCloud997
OpenRouter776

The smart weights are starting values: a coming version measures every model and sets its score and role from the results.

No connection with your Claude / ChatGPT account's extras (v4.55.0+) — every Claude CLI CodeHero starts (tickets, the reviewer, the assistant) runs without the claude.ai connectors (Gmail, Google Drive, Calendar, Claude Docs), the skills and plugins synced from claude.ai, the Artifact tool and Remote Control; Codex runs without the ChatGPT apps and plugins. Only for those runs — nothing on disk is moved, and your own sessions are not touched. The codehero tools stay.

The lineup changes between versions: the Providers page (and the codehero_get_providers_info tool) shows the models, weights and strengths of your installation.

Rate Limit Strategy: When running parallel tickets, distribute across providers to avoid hitting per-provider rate caps. The planner does this automatically when multiple are configured.
When a subscription limit is used up (since v4.50.17): the ticket stops at once, writes one notice ("⏳ Usage limit reached …") and waits with status open. It tries again by itself when the window resets, and every 30 minutes at most while the limit lasts. It continues where it stopped; the wait is not a failed attempt, and the reviewer and the watchdog leave it alone. A message from you makes it try at once.

14. Developer Roles

Each ticket stores a developer role; the concrete model comes from the provider's model_aliases in heroagent.conf, so a new model needs no change to the tickets.

RoleAnthropicOpenAIUsed for
master_developerClaude Fable 5.1GPT-6 AstraOnly when you choose it (it costs many tokens)
senior_developerClaude Opus 5.5GPT-6.1 SolPlanning and replan tickets and their peers, verifiers, helpers, hard build work
junior_developerClaude Sonnet 5.5GPT-6 LunaBuild work: trivial, simple and moderate

The same role is not the same ability everywhere: compare the smart weights (Section 13). Anthropic's junior (Sonnet 5.5, smart weight 9) can take moderate work; a junior with smart weight 7 or less gets only trivial and simple work.

Role and Think Mode per Ticket Kind

The planning ticket sets them for every ticket it creates — economy without losing quality: the plan is made by two seniors of different families (the planner and its peer) reviewing it together, at most three exchanges; the build tickets, where most tokens go, run on junior. Master only when you choose it — on the project or on any single ticket; your choice always wins.

TicketRoleThink modeOne step higher when
[PLAN] / [REPLAN]seniorbalancedpro: a replan after failed or blocked work, or a very critical core in scope · after pro, ask the user
[PEER] (plan review)senior, never below the planner, subject to the user's permission for the new ticket (GUIDE: planning.md §3)the planner's, subject to the user's permission for the new ticket—
[HELPER]the opener's role, never below it, subject to the user's permission for the new ticket (GUIDE: planning.md §3)the opener's think mode, never below it, subject to the user's permission for the new ticketone step up: something very critical, or a first helper did not solve it
[VERIFY]senior, the other provider familybalancedpro: the parent is very critical
[FIX]the builder's provider and role, subject to the permission limits of GUIDE: planning.md §3the builder's, subject to the permission limits of GUIDE: planning.md §3round 2: one think step up · round 3: senior + pro
[SECURITY] + its [VERIFY]senior + senior of the other familypro + pro — always—
[PERFORMANCE] + its [VERIFY]senior + senior of the other familybalanced + balancedthe performance ticket one step up when speed is a requirement with numbers
Build / [WORKER]junior; senior for engineering or hard work — the ticket that creates it decidesbalanced (5.1.4) — the role by difficulty—
[RELEASE]seniorbalancedpro: the release failed once

Start low, climb on evidence (5.0.5): every ticket starts at balanced (5.1.4: «να ξεκινάνε από balanced» — a junior needs a little help): junior + balanced, senior + balanced only where the work needs an engineer or is hard; off, fast and basic only when you ask for them or strategy eco steps down; PLAN, REPLAN and VERIFY start at senior + balanced. A failure or a verify finding moves one step up. Your own instruction always overrides these defaults.

Difficulty of a Build Ticket

DifficultySignalsRole + think (strategy balanced)
Trivialtexts, labels, config values, docs; a copy of a pattern that already exists in the projectjunior + balanced
Simplea form, CRUD or static page on an existing pattern, simple validation, 1–2 filesjunior + balanced
Moderatea new feature with logic over a few files, built on a design that already existsjunior + balanced
Engineeringwork that needs an engineer's thinking: designing a database schema / data model, the architecture of a module, an API contract, the first instance of a pattern others will copy, an integration designsenior + balanced
Hardmoney, taxes, prices · permissions, tenant isolation · deletion, retention · concurrency, queues, locks · security, secrets · an external API with uncertain results · a migration of real data · an unclear bug · anything hard to testsenior + balanced

Strategy eco moves one step down, to basic (never for engineering or hard work); performance moves one step up. A part that failed before goes one step up.

What a junior is told, so it does not stop for nothing (5.13.4). The guides and the ticket's context say it in plain words. A server that the task names is reached with plain ssh -i <key path> -o BatchMode=yes (the device tools are only for the Devices page). The app and its commands use the project's own database user, never MySQL's root, and never a password on a command line. A Node or a Python app in a container gets its web_app service first; the platform then serves the preview. The app never reads .secrets/: its settings live in its own config or .env. A server log that cannot be read is written «server log not available», and the work is finished.

15. Think Mode (Extended Thinking)

ModeDescriptionBest For
offNo extended thinkingOnly when you ask for it
basicLight reasoningWhen you ask for it, or strategy eco one step down
balancedModerate analysisEvery ticket to start with (project default, 5.1.4); PLAN / REPLAN / VERIFY; a very critical core
ultraDeep reasoningOnly on your explicit word for a ticket or its kind; never a project default

A ticket never climbs to ultra by itself: after pro, it asks you. Think mode mostly buys speed and depth rather than cost — most tokens are the project context read again at every step.

How Each Provider Applies It

Provideroff → basic → balanced → ultra
Anthropic (API, claude CLI)effort low → high → xhigh → max
OpenAI (API, Codex CLI)effort none (GPT-6 Astra: low, its lowest) → high → xhigh → max
OpenRouterby model: OpenAI and Claude models use the effort levels above (Claude's ultra is xhigh there); other models on/off
Grok, GLM, QwenCloudby model: effort levels (Grok 4.7, GLM 5.3; on QwenCloud each model's own level, never a token budget — 5.10.0; Qwen's balanced is its medium, 5.11.0, and pro and ultra stay its xhigh), or thinking on / off; some models always think (Grok Build, GLM 5.3)
Ollama, vLLMno thinking support
A local LLM (custom1 / custom2, llama.cpp — Section 33)5.7.0: off = no thinking; the other modes think up to the mode's token budget, then the model answers

Context Limit

Under Think Mode — on the project, in the new-ticket form and on the ticket page — Context limit is the size of a ticket's context, up to the model's maximum: 100K … 1M, or Model's maximum. Every value can be chosen on every model and is kept as chosen; a run takes at most its model's window (1M on a 262,144-token model runs with 262,144).

Inside, CodeHero compacts at 80 % of that size (the value cut to the model's window) — once, never 80 % of 80 %: a build on Auto (300K) compacts at about 240K; 1M on a 262,144 model at about 209,715. With the API providers CodeHero's own compaction runs there. The Claude CLI and Codex compact their own context inside a run at the ticket's value (within 80 % of the model's window), and every run of theirs starts within CodeHero's point; while they work, CodeHero still summarizes the stored history at the larger heroagent.conf thresholds, so it never outgrows one summary. A smaller context means fewer tokens on every call.

Ticket kindClaude and API providersCodex
[PLAN] / [REPLAN]450K350K
[VERIFY] — it checks several tickets and reads much data350K300K
Build / [WORKER] / [RELEASE]300K250K
[FIX] — one specific problem / [HELPER]200K200K
[PEER]the limit of the ticket that opened itthe same

The order is plan > verify > build > fix. A [PEER] thinks about the same problem as the ticket that opened it, so it gets that ticket's own value, or the Auto of its kind in the peer's column (a peer of a planner: 400K / 300K); with no opener, a planner's. A verifier opens one [FIX] per finding (or per small group in the same place, at most five a cycle), which keeps every fix small.

These are the declared sizes; CodeHero compacts at 80 % of each. A planner sets a value only with a reason — 100K for a ticket that only runs tests, 500K–1M for a planning ticket that must read a very large baseline. The table is in heroagent.conf (context_limits).

16. Vision Support

Some providers can "see" — analyze screenshots, UI layouts, and visual content.

ProviderVisionUse For
AnthropicYesUI verification, styling, visual QA
GLMDependsGLM 5.3 FlashX, 5V Turbo, 4.6V see; GLM 5.3 and 5.2 are text only
QwenCloudDependsQwen 4 Max, Qwen 3.8 Max / Flash and Qwen 4 Max Preview see; GLM 5.3 and DeepSeek are text only
GrokYesUI verification
OpenAIYesUI verification
OpenRouterDependsDepends on underlying model
OllamaNoBackend only
vLLMNoBackend only
For web projects: Use vision-capable providers for HTML/CSS/UI tasks. Text-only models are fine for backend-only work.

17. Code Editor

The built-in Monaco Editor provides VS Code-quality editing in your browser.

Code Editor
Code Editor
Setup LSP: Run sudo /opt/codehero/scripts/setup_lsp.sh to install language servers for full IDE features.

18. File Explorer

File Explorer
File Explorer

19. Git Manager

Full version control through the web interface.

Git Manager
Git Manager - Repositories

CodeHero automatically detects Git repositories in your project directory. Multiple repos per project are supported.

Clone & Init

Clone Repository
Clone Repository

Clone remote repositories (HTTPS/SSH), initialize new repos, and store Git credentials per repository.

Private addresses (5.8.0): a clone from an address on your own network is refused, unless Allow imports from the local network is on (Section 28, «system.conf»). While Keep AI work on the maintenance copy is on, every Clone is refused (Section 3).

Clone over old files: tick Replace local files with the repository's files — a backup snapshot is taken first (without it nothing is replaced); optionally also delete local files that are not in the repository (ignored files such as .env always stay, and so does another repository inside the folder). The dialog shows each step live with its time (backup snapshot, fetch, checkout). Files of another user (served web files often belong to www-data) are taken over when the repository tracks them, so Git can replace them now and pull later; the others keep their owner. Remove repository (Settings → Danger zone) deletes that repository's .git and .gitignore in its own folder and its record with the saved credentials; other files and the project's other repositories stay.

Changes & Commits

Git Changes
Changes & Commits

Laid out like an IDE's commit view: the changed files on the left, each with a tick — only the ticked files are committed (Commit / Commit and Push); an unticked file stays uncommitted, also after Refresh. Click a file to see it from the last commit to now on the right: Split = before | after side by side, Whole file shows the unchanged lines too, and fullscreen gives the view the whole screen. The diff viewer: one card per file (Added / Modified / Deleted / Renamed, +/− counts), old and new line numbers, the changed part of an edited line marked, Unified / Split (remembered), staged and not-staged changes apart, and Open in editor ↗. The same viewer is used in History and Backups.

Branches

Git Branches
Branches

View local and remote branches, create, checkout, merge with conflict resolution, and delete. Checkout on a remote branch switches to (or creates) your local branch that tracks it. With no branch checked out (a tag or a commit), the card shows detached @<commit> and a notice offers Create branch here, so the commits made there can be pushed. Push creates a new branch on the remote and makes it track it; History marks a commit pushed when a remote branch has it.

Conflicts

When a merge or pull stops on conflicts, a Conflicts (N) tab appears. A banner says what is merged into what, and each file shows its conflict blocks side by side (ours = your current branch, theirs = the branch being merged) with the differing words marked and the lines around them.

Commit is refused while files are still in conflict, so a commit never contains <<<<<<< markers.

Tags

Git Tags
Tags

View, create (lightweight and annotated), push, and delete tags.

History

Git History
Commit History

Commit log with author, date, message. Diff viewer per commit. Revert specific commits. Reset to any commit (soft/mixed/hard).

Stash

Git Stash
Stash

Stash current changes, list stashes, apply/pop, and drop.

Diff Viewer

Diff Viewer
Fullscreen Diff Viewer

Full-screen diff with inline or side-by-side comparison, syntax highlighting, and line-by-line navigation.

Backup History

Git Backup
Backup History

After a power cut or a crash (5.11.0) — each snapshot reaches the disk before CodeHero says it is done. If a power cut still damages a project's snapshot history, the next snapshot keeps the old history aside (nothing is deleted), starts a new one and says so in the ticket's log, with the folder that keeps the old one (/opt/codehero/git-backups/<project id>.damaged-<date-time>). The list then starts again from the new history. A snapshot that cannot be made says «Snapshot failed: …» in the ticket's log.

A restored secrets folder (5.11.0) — with «Ticket sandbox» on, a restore (a snapshot, one file, a ZIP) keeps a restored .secrets folder closed to tickets and assistants, as the Secrets menu makes it. If it cannot, the restore's answer ends with «… still carries access inherited from the project folder»: restore again.

Auto-Commit & Auto-Push

Configure per repository: auto-commit when AI completes a ticket, auto-push after auto-commit.

Settings

Git Settings
Repository Settings

Remote URL management, credentials, auto-commit/auto-push toggles, default branch configuration.

Git and tickets (5.8.0, changed in 5.13.4)

There are two kinds of repository.

RepositoryWhose it isWhat a ticket may do
The project's own repository (the project root's .git)YoursRead only
A repository in the Git ManagerYoursRead only
A repository the ticket cloned or created in a NEW subfolderThe ticket'sEverything: clone, init, add, commit, branch, checkout, pull, fetch, push

Rules for your repositories:

  1. A ticket reads them: status, log, diff, branches, tags.
  2. A ticket never writes into their .git folder. In 5.13.4 the sandbox makes your .git folders read-only for the ticket.
  3. If a ticket wants to commit, the refusal tells it to write in its report: the files, and a commit message. You commit in the Git Manager.
  4. The refusal is not a reason to stop. The ticket finishes the rest of its work.

Rules for the ticket's own repository:

  1. It is in a NEW subfolder of the project. It is not the project root.
  2. The Git Manager does not manage it.
  3. The ticket uses a token or a key BY PATH from .secrets/. It never types or sees the value.

Other facts:

Managed Git with the maintenance control (5.8.0)

The switch Keep AI work on the maintenance copy (Settings → Security → 🛡 Protections, Section 28) is off at the start. With it off, Git works as before. While it is on:

On the live project (and on every other project that follows the server and is not a maintenance copy):

On the maintenance copy:

A saved token (the repository → Settings):

Also:

Repository hooks (5.8.0)

When CodeHero runs Git for you, a repository's own hooks do not run. This covers Commit, Push, Pull, Clone, the backups and the snapshots.

Git while «Ticket sandbox» is on (5.11.0)

With «Ticket sandbox» on (Section 28), the Git Manager works as before. Every kind of repository works: plain ones, linked worktrees, submodules and Git LFS. You type no token again, and no new question appears. Backups, restores, imports, exports, snapshots and Project Files work as before.

The small differences:

20. Console (Real-time Output)

Console
Console

21. Web Terminal

Web Terminal
Web Terminal

22. Package Manager

Package Manager
Package Manager
PackageWhat It Installs
Development ToolsNode.js 22, Java (GraalVM 24), ffmpeg, ImageMagick, tesseract
Phone apps, Windows programs, Docker, .NETNot installed on this server: phone apps and Windows programs are built and tested on a connected device (Devices); Docker and .NET run inside a project's container (Create Container → «Docker support»; the Services tab's .NET runtime)
Code Editor LSPLanguage servers for Python, JS/TS, PHP, Java, C#, Kotlin, HTML/CSS

23. Session History

Session History
Session History

View all past AI execution sessions: start/end times, duration, exit codes (0 = success), associated ticket, token usage, and full session log. Filter by date, project, or status.

24. Project Progress

Project Progress
Project Progress

Visual overview: completion percentage, ticket counts by status/type, sequence flow visualization, model distribution, and built-in AI assistant for project-specific chat.

25. Kill Switch

Instantly stop the AI when it's working on a ticket.

You do not need to stop a ticket to talk to it. Write in the ticket page or the mobile chat and press Send while it works: the message goes at once and the agent reads it at its next step (Claude, Codex and every API provider), in the same run — like a message from another ticket. A message that arrives as the run ends re-opens the ticket, so nothing is lost. Use the Kill Switch only to stop the work.

MethodHow
Stop ButtonA split button ⏸ | ⏹ appears next to Send when the ticket is in_progress; the red ⏹ half stops at once
/stop CommandType /stop in the chat field
Pause (⏸ or /pause)Since v4.50.16: the ticket finishes its current step, stops what it started, notes where it is and waits (NEEDS THE USER: yes). Continue with /resume, «συνέχισε» or any message
⏸ Pause ProjectSince v5.1.10, on the project page next to Archive: no ticket of the project starts and every running ticket gets /pause (use it before an upgrade). ▶ Resume Project sends /resume to the tickets it paused; a ticket you paused on its own waits for your own /resume. A paused ticket is resumed only by you: a message from another ticket waits until you resume it
Change-ledger checks (/ledger)Since v5.0.6: /ledger off <why> turns the change-ledger checks of the project off (no task card, no completion check, no rollout rule); /ledger on turns them back on. The project page has the same switch and the assistant can do it at your request; each switch is written as a row of the ledger with your reason
AI AssistantAsk: "Stop ticket PROJ-0001"

A stopped ticket stays stopped (5.12). A ticket you stop with ⏹ or /stop, or that the approval reviewer stops, is not woken by another ticket: not by its reply or its final report, not by the waiting-check, not by a status change, a start, a retry or a force. You start it again with a message on its page, or with Start Now. The assistant does the same when you ask it.

What happens:

  1. The agent stops immediately — together with everything it started: the Claude CLI or the Codex app server, their sandbox, and the command that was running.
    • Since 5.8.0 also the commands Claude Code, Codex and Grok Build started themselves, each in a process group of its own (before, a long command of theirs could keep running after a Stop), inside the container too.
    • The same stop runs when Keep AI work on the maintenance copy (Section 28) or a disk step (Section 31) stops a ticket.
    • The known limit: a command run under env -i (it clears its own environment) or under sudo is not found this way.
    • A command the CLI was still preparing, or tries to start after the Stop, does not start: it answers «⛔ [CodeHero] This command was not run: the ticket's run is being stopped, or has ended».
  2. Ticket status changes to awaiting_input.
  3. A system message confirms the stop.
  4. You can provide new instructions or corrections.

Live Preview tab. It shows the project's page inside the panel. Since v4.50.10, when the app refuses to be shown inside another page (frame-ancestors 'none' or X-Frame-Options: DENY), the tab says so and offers Open in a new tab instead of staying empty. To see such an app there during development, let it allow the panel with CSP only: frame-ancestors 'self' https://<its own host>:<panel port> in development (never https://*:<panel port> — any host on that port could frame it; keep X-Frame-Options, browsers ignore it when frame-ancestors is present), 'none' in production.

26. AI Assistant

AI Assistant
AI Assistant

AI Project Manager

From the Projects page, click "Plan with AI" to start a guided project planning session. The assistant writes the specification with you (or imports a Spec Builder package), shows a preview with the settings, the day-0 inputs and the run settings, and after you confirm creates the project, its environment and exactly one ticket: the planning ticket ([PLAN] …). The planning ticket plans on the real installation — baseline, dry run, review rounds, and an agreement with a [PEER] ticket by the project's size and risk (another provider family when one is active, otherwise the same provider) — asks you what came out of that in one batch, and creates the first phase of tickets (with [VERIFY] tickets on a different provider after risky work; a real project runs in phases that each end with a [REPLAN] ticket). A small change on an existing project is one ordinary build ticket, not a plan.

The plan is checked before it starts (5.18.0). Each point of a specification has one status: open (a question for you), safe-default, technical or confirmed. A critical point is never a default: it stays open until you answer; money is critical. CodeHero creates no ticket while a line breaks these rules, both when the assistant creates the [PLAN] ticket and when a [PLAN] or [REPLAN] ticket creates the tickets of its plan. The AI fixes the lines it is shown. Which model to plan with: Plan with AI writes its best specification with a big or a mid cloud model (Claude, GPT).

The system shape is your decision (5.9.0). Which program of the product calls which while it runs, and when; what must be up for the daily work; what still works when one is down; and each check that holds or refuses a user's action. The assistant and the planning ticket ask you. Until you answer, the item stays an open question, never a ticket. A peer or a verifier reports a call or a hold that you did not approve, also when it works.

Checks and tests (5.9.0). A verifier keeps to the work it checks, and each finding names a concrete trigger in the application's real use: a case that can never happen is not a finding. A red test outside that work is recorded, and the next [REPLAN] runs it again. A ticket runs its tests once, after its last change. The full test suite runs at the final check, when a [REPLAN] accepts a release candidate, or when you ask; a [REPLAN] in the middle of a plan runs the core tests and the slower tests of the parts its phase changed. ultra and master_developer only on your word (Section 14, Section 15).

What the assistant and the companion may do (5.7.0)

The panel assistant and the companion follow the same rules as a ticket, with every AI provider. Nobody can click Approve for them, so a step that needs your yes is refused, and they tell you why and where you do it. (With «Ticket sandbox» on, an assistant shows you an Approve card instead: see «The assistants and «Ticket sandbox»» below.)

They do by themselvesThey cannot do — you do it here
On a device: Test, the emulator's check, list, live view, screen, show, place, start, stop, tap, type and key; the LLM server's status, temperature, start and stop (Section 33)A command, a file copy, an install, a download, a higher temperature limit, stopping another project's emulator → the device's page (Devices → the device), or a ticket with the device's skill after your Approve of that exact call
Read and Test a Local LLM slot (custom1, custom2); set it, and connect a device's LLM to it, after your yes on its card (5.17)Without a card: change a slot → Settings → Providers → Local LLMs (every ticket on that slot would send its prompts to the new address)
Start a process (ProcessManager) with a command their command rules allowA process in the platform's secret folders, or with settings that load other code → a ticket, after your Approve
—Read the secrets of /etc/codehero (system.conf, api_keys.conf, credentials.conf) — refused to them
Tell you where a protection is and what it does (5.8.0)Change a container's Limits, the switch Containers: block private networks or a project's allowed addresses → the project's Container tab (Section 31). Allow imports from the local network → Settings → system.conf (Section 28). They never switch a protection off

A production or maintenance project, a locked project (5.7.1). The assistant and the companion follow the project mode and the lock, as a ticket does (Project modes and the project lock):

The assistants and «Ticket sandbox» (5.11.0)

With «Ticket sandbox» on (Section 28), the panel assistant, the companion and its background workers join the sandbox. You work as before: the assistant stays as easy as it was, autonomous tickets stay autonomous, and every hold starts again by itself.

27. Telegram Notifications

Setup

  1. Create a Telegram Bot via @BotFather — send /newbot, copy the token
  2. Start a chat with your bot and send a message
  3. Get your Chat ID from https://api.telegram.org/bot<TOKEN>/getUpdates
  4. Configure in Settings — paste Bot Token and Chat ID, select notification types, Test & Save

Notification Types

EventDescription
Awaiting InputAI completed and needs review
Task FailedSomething went wrong
Watchdog AlertTicket appears stuck
A ticket asks me a questionIts report says NEEDS THE USER: yes (not a ticket waiting for another ticket, not your own pause)
Usage limit / credits used upA provider's usage window or credits ran out — once per wait; the ticket retries by itself
Chain watch: a chain stoppedThe hourly chain watch found a chain of tickets that stopped although work is left

Send: Everything ticked above (as before) or Only when I'm needed — questions to you, stopped chains, usage limits, failures and stuck tickets only.

Chain Watch

Once an hour CodeHero looks at every project where work is left but nothing runs — only at the tickets that should run now (never a ticket out of turn) — and finds why the chain stopped: a ticket waiting for one that already ended or answered, a reply that was not acted on, a peer left open, a strict ticket nobody closed, a question to you, a failure with a passing cause. Settings → Chain watch: Off, Tell me what it finds (default) or Restart it when safe (wakes with a note or retries a passing failure, at most twice a day per ticket). It never touches a ticket you paused or stopped or one that asks you a question, and never closes, deletes or edits anything. Its small model (junior + basic) runs on the ticket's own provider, then on the next active provider of quick_call_failover in heroagent.conf.

It looks only at a chain whose waiting ticket changed within the last 7 days — an older stopped chain is left alone — and it tells you about a stopped ticket once: the same ticket is not reported again unless it changed after the notice.

Two-Way Communication

Reply directly to notifications from your phone. Start with ? for status queries without reopening the ticket.

28. Settings & Configuration

Settings
Settings

Open Settings with the gear button in the header. Settings is a page (5.16.4): the left column lists every section by group (General: Settings, Providers, License, Voice, Semantic search, Performance · Security: Security, Certificates, Domains, 🔑 API keys · Advanced: heroagent.conf, system.conf), and the section you click opens on the right. A big section has tabs along its top: Security (Account, Protections, Firewall (WAF), Keys and backups), Performance (Mode and values, PHP cache and JIT, System profile) and Settings (Identity, Notifications, Updates). On a phone the left column becomes a Settings: list at the top. Every section and tab has its own address you can bookmark, for example /settings/security#protections. Providers still opens its own window on the dashboard. The paths in this guide (Settings → Security → Protections) did not change. The sections:

Settings (General)

License

View license status, activation date, and expiry. Enter or update your license key.

Certificates

Domains

Configure custom domains for the dashboard and web project previews. The system auto-configures Nginx virtual hosts.

Always set both, on two different names (for example panel.example.com for the dashboard and apps.example.com for the previews). A browser sends a site's cookies to every port of the same name. With one name, a project page you show a customer runs on the same name as your panel. With two names, the panel's login never reaches a project's page.

One name (or none, an IP) is saved too (v5.9.0+): Save & Apply answers «One address: allowed» with its limits («Keep panel and app addresses separate», Settings → Security → 🛡 Protections).

heroagent.conf

Edit the main agent configuration file directly. Controls model aliases, token limits, provider settings, and daemon behavior. Auto-backup is created before each save.

system.conf

Edit system-level configuration: Nginx settings, PHP-FPM settings, and other server parameters.

Allow imports from the local network (5.8.0). An import by URL refuses addresses on your own network (Section 3). To allow them:

  1. Settings → system.conf.
  2. Add the line ALLOW_LOCAL_NETWORK_IMPORTS=true. If the line is there with false, change it to true.
  3. Click Save & Restart.

Security

Security levels. What you do and what CodeHero already does at three levels — Dev, Production and Fortress — and how not to lock yourself out: Securing CodeHero.

In a security test report, SKIP means the check was not completed. Passing tests of the source code does not prove the installed server passed; its version and checks need separate evidence.

FeatureDescription
Change Admin PasswordYour panel password (and, optionally, a new username)
MySQL App User PasswordThe password CodeHero's own database user uses; the web services restart
MySQL Root PasswordThe server's MySQL root password
Enable 2FATurns on an authenticator app (Google Authenticator, Authy, Microsoft Authenticator …) — the owner only, while 2FA is off. A new phone: use Reset 2FA (5.9.0)
Disable 2FA · Reset 2FAOff with your password or a code · a new secret and a new QR code (your password and a current code, 5.9.0). Both end your recovery codes
Recovery codesTen single-use codes for a lost phone: «N of 10 left» · Make new codes (5.9.0)
Security keysA security key or a passkey as the second factor, beside the code: the list, Add a security key, Remove (5.9.0)
Backup encryption keyYour own age public key: every backup you download from the panel is encrypted for it (5.10.0, below)
Unlock AccountClears a sign-in lock — your password and a current 2FA code (5.9.0). While your own tries are locked: the console's manage-2fa.sh unlock
Remember DeviceSkip 2FA on trusted devices until end of month
Account Lockout5 wrong passwords for one account from one address lock it there for 30 minutes; 20 from one address lock that address. The locks stay when the panel restarts (5.8.0)

Protections (5.8.0)

Settings → Security → 🛡 Protections:

To enable 2FA:

  1. Read «Do not lock yourself out» in Securing CodeHero first.
  2. Click Enable 2FA in the Security tab (it shows while 2FA is off; to move 2FA to a new phone, use Reset 2FA — your password and a current code — then enable it again).
  3. Scan the QR code with your authenticator app.
  4. Save the Manual entry code shown under the QR code in a safe place, offline. Or scan the QR code with a second authenticator at the same time. This code sets up a new phone with the SAME 2FA.
  5. Enter the 6-digit code and click Verify & Enable.
  6. Test a new sign-in in a private browser window before you close the old one. Use a new code there: a code works only once (5.8.0).
  7. Make your recovery codes (below).

Recovery codes (5.9.0) — your way in when the phone with the authenticator is lost, without the console:

  1. Turn the switch on: 🛡 Protections → Recovery codes (your password and a current 2FA code).
  2. Two-Factor Authentication → Recovery codes → Make new codes (your password and a current 2FA code). Ten codes are shown once. CodeHero keeps only a fingerprint of each one: nobody can show them again.
  3. Copy, Download or Print them. Tick I saved them, type one code back, your password and the next 2FA code, then Confirm the new codes. The code you typed is used up: 9 stay.

Security keys (5.9.0) — a USB/NFC security key, or a passkey on a phone or a computer, as the second factor beside the 6-digit code. A look-alike site cannot use its answer. It needs 2FA on and the panel at its domain name with a real certificate (Settings → Domains), not an IP address; open the panel at that name to add a key.

  1. Turn the switch on: 🛡 Protections → Security keys (your password and a current 2FA code).
  2. Two-Factor Authentication → Security keys → Add a security key → a name for it, your password and a current 2FA code → Continue → touch the key, or confirm the passkey, when the browser asks.
  3. Add two: keep the second in a safe place.

Backup encryption key (5.10.0) — the Encrypted backups you download leave the server encrypted, and only you can open them (Section 4, «Encrypted and plain downloads»).

  1. On your own computer, install age (age-encryption.org; on Ubuntu the package age). Run age-keygen -o key.txt. It prints Public key: age1…. The file key.txt holds your private key: it never comes to the server.
  2. Settings → Security → 🔒 Backup encryption key → Set the key → paste the line that starts with age1, your panel password and a current 2FA code → Save.
  3. The card shows when the key was set, its fingerprint and the whole key. Press Test: it downloads a short encrypted text. On your computer: age -d -i key.txt <the file>. You see the text with this server's name and the key's fingerprint: your key works.

The old default password (5.7.0). A sign-in with admin123 (the password older versions published) opens only Set your password. You set your own; nothing is generated for you, and admin123 is refused as the new one. The page also asks for the one-time setup code the upgrade showed, unless you passed 2FA (Section 1, «The setup code»).

A new panel password signs out the others (5.7.0). Saving it signs out every other browser and device, and ends «Remember this device». This browser stays signed in (Section 1).

The database passwords (5.7.0). Changing the MySQL app or root password here also removes that password's lines from the old copies /etc/codehero/mysql.conf and /opt/codehero/install.conf (servers installed before 5.7.0). No stale password stays behind. A new database password has 8 to 128 characters: letters, digits and . _ @ % + = : , / ! ^ * -, no spaces or quotes. The page refuses any other password before anything changes. The page saves the new password, reads it back and signs in with it once. IF one of these steps fails, THEN MySQL keeps the old password, nothing restarts, and the page says what failed.

Locked out — the console, as a last resort. These commands run on the server's console (SSH, or your cloud's console), not in the panel: A sign-in that could not read its settings (the database did not answer) says «Nothing was counted — sign in again in a moment».

Voice

The speech-to-text engine and language used for voice dictation on every page.

Semantic search

Search by meaning, in Greek and English. The model you make the default serves every project that turns semantic search on (Project → Semantic search) and the assistant's memory. It runs on this server; nothing leaves it.

Performance (v5.4.0+)

MySQL, PHP and nginx tuned for this server — by its memory and processors and by what the server is for:

ModeFor
Developer (default)CodeHero as a development platform: MySQL's cache 1/8 of the RAM, PHP workers only when needed.
HybridDevelopment and some sites in production: MySQL's cache 1/4 of the RAM, PHP workers ready for visitors.
ProductionThe server serves sites: MySQL's cache 1/2 of the RAM, PHP workers 1/4, nginx for many visitors; the projects' production domains get their own PHP with cache and JIT. You choose Safe (every commit on disk) or Fast (about once a second).

Your own values (key = value, for MySQL, PHP, the PHP pool and nginx) win over the mode. Apply says which MySQL values apply now and which after Restart MySQL.

The parts a mode touches — a checkbox on each card (MySQL, PHP, the PHP pool, nginx); a part left out goes back to its own settings. No mode changes what a preview shows: previews show a change at once, so the AI sees its own work.

PHP cache & JIT (its own Save) — the projects' production domains: Follow the mode (on in Production), On or Off, and each project can choose otherwise (Production Deployment → Production PHP for this domain); the previews (dev) only if you know you want it — the AI may not see its changes for up to 60 seconds. The cache is per file path: two files with the same name in different folders never mix.

Since 5.16.6 the live sites run on their own PHP-FPM (codehero-php-prod@<version>). A domain with Production PHP on always has the JIT (PHP 8.0 or newer, 8.3 too; PHP 7 has no JIT) and its own cache.

System profile (tuned) — sets the kernel and the CPU for a kind of work: throughput, low latency, or saving power. Click Install tuned, then choose a profile (or off) and click Apply; the block shows the active and the recommended profile. On a cloud server the difference is usually small (on Hetzner cloud servers we measured none); on your own hardware it can matter — measure before and after.

5.16.6: the profile codehero-apps. Install tuned now starts with CodeHero's profile for web apps: BBR, no slow start after a pause, room for HTTP/3, on top of tuned's own profile for the machine. Measured between two servers with 50 ms delay and 1 % loss, a 1 MB answer: 0.6-0.7 s at worst instead of 2.8-4.8 s. IF tuned is already installed, THEN choose codehero-apps (first in the list) → Apply. The upgrade never changes the active profile.

29. System Updates

Two kinds of updates: the packages of this server and of its project containers (the Updates page, v5.4.0+), and CodeHero itself (Dashboard Update below).

The Updates page (v5.4.0+)

Menu → Updates. A badge on the menu shows the waiting updates — red when critical ones are among them, amber for security ones — and the dashboard shows a System updates card.

ImportanceWhat it means
CriticalAn Ubuntu security notice of priority critical or high fixes it
SecurityAnother security fix: a lower-priority Ubuntu notice, the -security updates, or a PHP security release (php.net) for PHP from the PHP source
UpdateBug fixes and new builds

Search, groups, pages — search by name, notice or source; group by importance, source or notice; 50 a page. The install buttons act on the whole list, whatever page; Select all shown ticks every match. On every machine installs on the server and every container. Clean up removes what updates left behind (old kernels — never the running one —, unneeded packages, downloaded files).

AI tools — Claude Code, Codex and Grok Build: the version on this server and the newest one, marked new; Update (or Update all) installs it with the tool's own installer. Running tickets keep their version.

Dashboard Update

  1. Download the release ZIP (codehero-pro-release-X.Y.Z-x86_64.zip, or -arm64.zip)
  2. Settings (the gear) → Settings → the Updates tab → 📦 Manual Update: drop the ZIP there (or click to select it)
  3. Click "Install Update"
  4. Watch real-time console output
  5. Page auto-reloads on success

CodeHero PRO does not download updates by itself — the old download from GitHub was removed in v4.55.1.

Signed releases (5.7.0). The panel installs only a ZIP signed by CodeHero: it checks the signature and every file before it runs the upgrade. A changed, unsigned or older (before 5.7.0) ZIP is refused with the reason. Each release's notes list the SHA-256 of its ZIPs; sha256sum <zip> shows yours. A ZIP the panel refuses can still be installed from the command line (below), after you checked it.

No downgrade from the panel. The panel never installs a release older than the installed version: it refuses it and says so. The same version installs again. A downgrade you want runs only from the Linux console: sudo ./upgrade.sh --allow-downgrade (-y alone never confirms a downgrade). Never go below 5.7.0 with hardened containers (Section 31).

Ask AI to fix the problem (5.8.0). After a failed upgrade, this button asks an AI to read the error log. The AI explains the problem. Then it offers the panel's fixed fixes by name, each with a ▶ Run button:

▶ Run All Fixes runs the offered fixes one after another. Their output goes to the upgrade's console. Then run the upgrade again. Anything else the AI suggests is shown as text: the panel never runs it. The panel has no page that runs a free-form command as root.

The upgrade to 5.7.0:

The upgrade to 5.7.1:

The upgrade to 5.8.0:

The upgrade to 5.9.0:

The upgrade to 5.10.0:

The upgrade to 5.11.0:

The upgrade to 5.11.1:

The upgrade to 5.11.2:

The upgrade to 5.11.3:

The upgrade to 5.11.4:

The upgrade to 5.12:

Command Line Update

cd /root
# Extract the ZIP file provided with your CodeHero PRO license
sudo apt-get update && sudo apt-get install -y unzip    # a fresh Ubuntu has no package lists yet
unzip codehero-pro-release-X.Y.Z-x86_64.zip    # ARM64 servers: codehero-pro-release-X.Y.Z-arm64.zip
cd codehero
sudo ./upgrade.sh

X.Y.Z is the version of the ZIP you downloaded: use its exact file name.

OptionDescription
--dry-runPreview changes without applying
-y, --yesAuto-confirm all prompts (never a downgrade)
--allow-downgradeInstall an older version on purpose (5.7.0)

What an upgrade keeps (5.9.0)

An upgrade keeps your own settings: your MySQL timeouts (wait_timeout, interactive_timeout), your WAF settings (SecRuleEngine, SecAuditLogParts, SecResponseBodyAccess in /etc/modsecurity/modsecurity.conf, and a rule file you edited) and your choice to delete /etc/mysql/mysql.conf.d/codehero-dev.cnf (MySQL's binary logs come back that way). The WAF's rules are written again only when a release brings new ones, with an nginx reload, never a restart. A one-time upgrade step runs once, when the upgrade passes its version; one that fails runs again at the next upgrade.

From 5.12 on an upgrade leaves your projects as they are: their files and owners (a file you keep as root's stays root's), the nginx files of your domains and previews (your own directive stays, and so does a site you took QUIC out of) and your choice to delete /etc/mysql/mysql.conf.d/zz-codehero-speed.cnf. A release that must change such a file does it once, and its notes say so.

Four things happen at every upgrade, and the upgrade says them before it asks:

The panel's own socket (5.9.0)

The 5.9.0 upgrade moves the panel from the port 127.0.0.1:5000 to its own socket /run/codehero-web/panel.sock; nothing listens on port 5000 any more. ONE TIME, nginx is stopped and started instead of reloaded: for a few seconds EVERY site on this server is unreachable (the upgrade says so). A panel page open in the browser reconnects by itself. The upgrade completes only when the panel answers on its socket through nginx and the trusted panel proxy's policy is applied («panel proxy: applied»); else the version stays the old one and running the upgrade again resumes. Run it on the server's console or with Settings → 📦 Manual Update, not in the panel's own Terminal: from there it cannot move the panel and ends with «The upgrade is NOT complete: … run it from the console (sudo ./upgrade.sh)». A frontend block of your own for the panel (§32) goes straight to codehero_panel: if nginx still has a block that passes to 127.0.0.1:5000 or to https://127.0.0.1:9453 — directly, in a file it includes, through an upstream (http or stream), or in any server / proxy_pass line of any file nginx loads — the upgrade stops at the panel's switch-over, not before (the new programs are already copied, the daemon is stopped, the panel answers 503 and no ticket starts; the sites stay up), and names the file: change the block to proxy_pass http://codehero_panel; and run the same ./upgrade.sh again, and it completes; better, change it before you upgrade (so 127.0.0.1:5000 stays out of nginx's routes: give an app of yours another port); such a block added after the move stops the next upgrade at its end (the version stays the old one until it is changed). The panel proves it serves on its socket with an answer signed with its own key, which a program that took port 5000 cannot give. The same restart point moves «Containers: block private networks» into the protections store when it still has to (§31): right after the move to the socket, the panel and the daemon stop once more for that moment, then start again.

Backup and rollback (v4.54.1+)

Before it changes anything, the upgrade saves a folder /var/backups/codehero/upgrade-<old version>-<time>/, readable by root only: the program (opt-codehero.tar.gz), the settings of /etc/codehero (etc-codehero.tar.gz) and the platform database (database.sql.gz), with the commands to go back in ROLLBACK.txt. The newest 5 are kept. The backup encryption key (Section 28, 5.10.0) is one of these settings: the upgrade's backup and the installation's own copy hold it. The upgrade also keeps the logs in bounds: the platform's logs (/var/log/codehero/*.log) are rotated daily and kept 7 days, the system journal keeps at most 500 MB, and logrotate is installed when the server has none.

The ROLLBACK.txt of the 5.7.0 upgrade works: its copy of /etc/codehero carries the new database passwords. A rollback to an OLDER upgrade's backup brings back the old published database password, which MySQL no longer takes: set it again in Settings → Security.

Since 5.9.0 the folder also holds nginx's files and the services' units as they were (transport.tar.gz, transport.manifest) and restore-transport.sh, checked before anything changes. The first backup of an upgrade that does not finish is its recovery baseline (/etc/codehero/upgrade-baseline): running the upgrade again keeps it, it is never pruned while the upgrade is unfinished, and every ROLLBACK.txt of that upgrade names it. ROLLBACK.txt ends with sudo bash restore-transport.sh: the files and units as they were, systemctl daemon-reload, the old panel first on its port, then nginx (started if the upgrade left it stopped, else reloaded), then the daemon — and it takes the old panel back only when the process on 127.0.0.1:5000 belongs to CodeHero's panel service and answers (on the socket: a signed answer). The two archives leave the logs out (*.log, a device tunnel's tunnel.log, a log folder of the program): a growing log no longer stops the upgrade; any other file that changes while it is read still does, with tar's own words — run the upgrade again.

Going back from 5.9.0 or later (its ROLLBACK.txt): before the old panel starts, the steps make a new sign-in epoch and ask for a new panel password (change-passwords.sh, choice 3). The restored copy would otherwise open again the sign-ins that were ended after the backup, with the password of before the upgrade. Every browser signs in again. Upgrading again later makes a new sign-in epoch and key once more.

An upgrade to 5.9.0 or later completes only when the panel has taken its sign-in state over («panel sign-in: ready»).

30. Config File Editor

Edit system configuration files directly from the web interface:

Features: syntax-highlighted editor, auto-backup before saving, restore from backup, validation before apply.

31. Container Isolation (LXC)

Run each project in its own LXC container with a full service stack. Since v4.6.3, containers include a Service Manager for installing web apps, databases, and caches from a built-in catalog.

Container Panel
Container panel with status, controls, and snapshots

Setting Up a Container

  1. Go to Project Detail page
  2. Scroll to Container Isolation (LXC) section
  3. Select Base Image (Ubuntu 24.04 LTS, the default, or Ubuntu 26.04 LTS; a Debian 12 container keeps its address through restarts too, since 5.12.4: CodeHero writes it as a systemd-networkd file there, as Ubuntu gets a netplan file), Disk Size (5-100 GB; databases, test suites and snapshots fill 10 GB fast)
  4. Optionally enable Auto-Snapshot and DB Migration
  5. Click "Create Container"

Container Management

ActionDescription
Start / StopBoot or gracefully shut down the container
Resize DiskGrow (or shrink) the BTRFS volume, 1-100 GB. It takes a snapshot first, stops the container for a few seconds, resizes, checks the new size and starts the container again. When a step fails, the disk keeps its old size and the container starts again — unless its disk cannot be checked (error, below). The restart empties the container's /tmp, as any reboot does
SnapshotInstant BTRFS snapshot with automatic DB freeze
Migrate DBMove host database into the container
DestroyRemove container and all data
Auto-start on server bootToggle to automatically start the container when the server reboots (enabled by default)

Security hardening (5.7.0)

A container shares the server's kernel, and the claude user has the same uid inside and outside (on purpose: the files belong to the same user, and crun relies on it). So the container's own root must not reach the server. From 5.7.0 every container is hardened: AppArmor (LXC's profile, no nesting), a seccomp filter (no kernel modules, no kexec, no open_by_handle_at, no bpf …), the dangerous capabilities dropped, /proc/sys and /sys read only, no device of the server. The services of the catalog, systemd, crun, backups, snapshots and images work as before.

On the Container tabWhat it does
AppliedA new container gets the hardening when it is made: the tab shows «Security hardening: Applied».
Apply securityA container made before 5.7.0 is not changed by the upgrade and not restarted; the tab shows «Not applied» and this button. It keeps a copy of the container's settings, restarts the container (its sites and services stop for about a minute), and checks that it runs and that every service that ran before runs again. If something does not come back, the old settings return, the container starts again, and the panel says why. Press it when a short restart of that site suits you. While one of its tickets runs, it refuses («Not now»).
Apply security againThe same button on a container that is already hardened. No restart. It refreshes the steps inside the container: its database repositories signed, its database root (and PostgreSQL's postgres, 5.8.0) from inside and the host only, its services without their own mount sandbox (below). It restarts only a service that had failed.
One press at a time (5.8.0)A second press while Apply security, Apply security again or Remove security runs is refused. The answer says the hardening is being applied (or changed) already: wait for it to finish.
Remove securityFor an old project that needs something the hardening blocks. It keeps a copy of the hardened settings, takes the hardening off, restarts the container (about a minute) and checks it. If the container does not start or a check fails, the hardened settings come back by themselves. Apply security puts it on again later. Only you can do it, from the panel: nobody inside the container can take the hardening off.
Remove security on a stopped containerFor a container that does not start with the hardening. The hardening is taken off while the container is stopped, then it starts and is checked. If it does not start without the hardening either, the hardening comes back and the container stays stopped: the hardening is not what keeps it from starting.
Put back by themselvesApply security and Remove security put the old settings back on any failure — a time-out or an error of a check too — and check them. If the panel stops in the middle (an update, a restart), the next press, or simply opening the Container tab, finishes putting them back, and the tab says what it put back.
What the hardening does not give: containers still share the server's kernel. Memory, CPU and process limits are a card of their own (below, «Limits»). More in Securing CodeHero.

Containers without root (5.12)

A container with root (every container made before 5.12, a later one made with the box unticked, and one that keeps root for a service never measured without root) shares the server's user numbers: its root is root on the server, hardened as far as that can be. A container without root shares no number with the server. Root inside it is nobody outside; so is the claude user. A bug in the kernel can still beat it: it is one more wall, not the last one.

WhatHow
Where to choose itThe box Container without root on Create Container, Restore as a new project and Import. The box starts ticked (5.12.1). A container made by an assistant's tool or by a ticket is without root too. Untick the box to keep root, for example when a service was never measured without root, or when you need a kernel module, a device file or docker run --privileged. A service never measured keeps root by itself, and the creation log says why.
What you noticeEverything works as before: the file manager, the editor, Git, backups, snapshots, images, the tickets of every AI, PHP, Node, Python, MySQL, MariaDB, PostgreSQL, Redis. The container cannot load a kernel module, make a device file, change the kernel's settings, or run docker run --privileged. A ticket knows which kind it works in: when a service needs one of those things it stops and tells you, and does not work around it.
The kind, plainlyThe Container tab shows Container kind: «Without root on the server», «With root» (an older container, one made with the box unticked, or one that keeps root for a service never measured) or «Its kind cannot be confirmed» (follow the reason the tab gives; Check the disk can resolve disk problems that can be mended).
DockerA container without root can run Docker. To get one: Create Container → keep Container without root ticked (it starts ticked), then tick Docker support. The second box is always there and works only while the first is ticked. It prepares the container for Docker; install Docker inside it afterwards, by a ticket or yourself (the package docker.io). On a server where a container without root cannot be made, a create with Docker is refused and nothing is made: a container with root and Docker is never made in its place. A backup or an image of such a container makes one again, or is refused; it never gets root. The page offers no Docker box for a container with root. Its data lives inside the container's own disk (the folder .codehero-docker), so a snapshot or an image holds it. A ZIP backup does not: a project restored from a ZIP as a new project starts with an empty Docker store (over an existing container with Docker, it keeps its own), and the answer says so (Docker pulls its images again). IF Docker fails with open sysctl net.ipv4.ip_unprivileged_port_start … permission denied, THEN open the Container tab → AppArmor → off → Save and restart. Only you can do it, from the panel (the switch is shown for a container without root that has Docker). On an older LXC (5) Docker always runs without AppArmor, whatever the switch says; the Container tab says so, and the setting stays on record.
An old container is never convertedThe upgrade converts no existing container. A snapshot restore and a ZIP restore keep an old container's kind and security settings while they restore its data: the settings of a backup are not applied to it, and the answer says so. An image import can rewrite its settings, as before 5.12. A container with root and Docker is never converted.
The way upBackup & Restore → make a backup → Restore as a new project with Container without root ticked → check the new project → delete the old one. The old project is not touched until you delete it. A container with Docker is never converted: make a new project with the box ticked and put your code and data there. Until it is raised, an old container keeps one exposure a container without root closes: a setuid-root file inside it can be run with root rights from the server side through the container's disk path.
Backups and imagesThey say the kind, the AppArmor setting, whether there is Docker and the LXC version. A backup from before 5.12 says nothing and comes back with root, as it was, when you untick the box; ticked (as it starts), you get one without root. A service never measured in a container without root (the answer names it and its version) keeps the project with root (only the catalog's measured versions were measured; a custom service never is). A backup of a container without root with Docker that would be rebuilt with root is refused instead («… cannot be rebuilt without root here (…): Docker is never given root in its place. Nothing was changed»), as an image already is; a backup of an old container with Docker is not refused, it stays with root as before. Export and import of an image of a container without root work. The import reads it on a private path before it is published; the old image is kept until the new container runs, and a cut import is taken back whole by Start or Check the disk. When the import changes the guest or Docker numbers, the Docker folder is moved to this container's numbers first, and the older snapshots that no longer fit are deleted (the answer says how many).
A backup of a container without rootAs a new project, it asks for its kind again, ticked or not. It keeps root when a service in it was never measured in one, or when this server cannot make a container without root; the answer says why. If it has Docker and would be rebuilt with root, it is refused instead. Unticking the box never turns one without root into one with root. Over an existing container, the destination keeps its kind. If you want a container with root, make a new project and untick the box on Create Container.
SnapshotsA snapshot of a container without root is checked on a copy before it replaces anything. If it holds files of an id such a container cannot show, nothing is changed and the sentence says which. The files of CodeHero's own accounts go back to the container's claude. A snapshot keeps the container's settings: when they differ, the answer says so.
A backup restored over itOver an old container it leaves the container with its own settings. Over a container without root it keeps its kind, its ids and its nesting, and can restore the AppArmor setting and a seccomp list that fits, from the next start; the nesting stays the destination's, and a Docker container keeps its nesting policy.
Not yetA maintenance copy of a container without root. Create maintenance copy answers «A container without root has no maintenance copy yet: nothing was changed.» The built-in Create maintenance copy / Start maintenance workflow is unavailable for this kind. A separately imported project is not a managed maintenance copy. The one-click maintenance copy for this kind comes in the next version. By hand (the steps the answer points to):
  1. On the live project: Backup & Restore → make a Complete backup.
  2. Restore it as a NEW project (give it a new project code).
  3. On the new project: Projects → Edit → Project Mode → maintenance → Save Changes.
  4. Work and test there. Commit and push in its Git Manager.
  5. On the live project: Git Manager → Pull.

Limits — memory, CPUs and processes (5.8.0)

By default a container may use the whole server. A limit keeps one container from taking what the server, the panel and the other containers need. Where: the project page → Container tab → Limits.

  1. Click Use recommended. It fills in half the server's memory, every CPU but one, and 4096 processes.
  2. Change a field if you want. An empty field = no limit.
  3. Click Save limits.
FieldWhat it limitsAt the limit
Memory (MB)The most memory the container may useThe server stops some of its programs
CPUsThe most CPU power, in CPUs (1.5 = one and a half)The container gets slower; nothing stops
ProcessesThe most programs at onceA new program cannot start

Private networks — one switch for the server (5.8.0)

A container reaches the internet and this server. Through this server it can also reach your private networks: your office or home network, your cloud's internal addresses, and your cloud's metadata service (169.254.169.254; on some clouds it hands out the server's keys). The switch Containers: block private networks closes these private networks for every container on this server. It is off by default.

Where: the project page of any project with a container → Container tab → Private networks.

  1. Turn it on: tick Containers: block private networks. The panel asks first: click OK. The rules apply at once. The line next to the switch says «Private networks blocked for the containers».
  2. Let one project still reach an address: on that project's Container tab, type each address or network in This project's container may still reach, one per line (for example 192.168.1.20 or 10.20.0.0/16). Click Save addresses.
  3. Turn it off: untick the switch. The panel asks first: click OK. Every container may reach private networks again.

A move into a container that did not finish (5.11.3)

A move of a host project into a container can be cut in the middle: the panel restarts, the server crashes, the power goes. CodeHero never overwrites or destroys a container disk that may hold your project's files (5.11.3), and since 5.11.4 one click ends the move.

Root and packages in the container (5.11.0)

Two switches sit on the project's Container tab, in the box under Private networks. Only you set them. A ticket cannot change them.

Root in the container — ON at the start.

Tickets may install packages — ON at the start.

Root for one ticket — for a project whose «Root in the container» is OFF, in developer mode.

Allow access from — containers of different projects (5.7.0)

From 5.7.0 the containers of different projects cannot reach each other. Each container still reaches the server and the internet. A project can let other projects' containers in: its project page → Project links — Allow access from (5.7.1; in 5.7.0 it was on the Container tab).

  1. Open the project whose container must be reached (the one that serves, for example its database).
  2. The project page → Project links — Allow access from: every other project, each with a tick.
  3. Tick each project whose container may connect to this one. + network marks a project that has a container too.
  4. Click Save. The rules apply at once.

Snapshots

BTRFS snapshots provide instant backup and restore, in three tabs:

TabWhat is in itDeleted
AutomaticThe snapshot taken before a ticket's first runThe newest 20 are kept (any number; 0 = all) — older ones go one at a time, only while no ticket of the project runs
KeptThe snapshots you create, the one before a Resize Disk, and every 📌 kept oneNever automatically — only by your Delete
SafetyThe copy taken right before every restore, so a restore can be undoneThe newest 5 are kept

Databases in a snapshot. Just before a snapshot each running database is flushed — by its service's pre_snapshot.sh (in /opt/services/<service>/, beside backup.sh; post_snapshot.sh runs right after), or the same built-in command for a service without one: MySQL/MariaDB FLUSH TABLES, PostgreSQL CHECKPOINT, MongoDB fsync, Redis SAVE, SQL Server CHECKPOINT. Nothing is locked and nothing can hold the snapshot up: a stopped database or container is skipped, every step has a time limit, a failure is only logged. A snapshot is consistent even without them — taken in an instant, like a power cut, after which every database recovers on its own; the flush only makes that recovery quick.

Disk space. A snapshot holds the old versions of the files that changed since it was taken — the limit keeps that bounded. Since v4.50.8 MySQL in a new container runs without binary logs: a development container replicates nothing, and MySQL 8 kept them for 30 days — gigabytes on a project whose tests rewrite the database, kept again by every snapshot. The upgrade never changes an existing container; to switch them off in one, run in its Terminal:

printf '[mysqld]\nskip-log-bin\n' > /etc/mysql/mysql.conf.d/zz-codehero-dev.cnf
systemctl restart mysql
rm -f /var/lib/mysql/binlog.[0-9]* /var/lib/mysql/binlog.index

Log limits. Since v4.54.3 a new container keeps its logs bounded: logrotate runs every day (so the rules that nginx, PHP and MySQL ship take effect), the app's own logs — logs/, storage/logs/ and var/log/ in the project folder, and pm2's — are rotated daily with the last 7 kept, and the system journal keeps at most 200 MB. The upgrade never changes an existing container; to add log limits to one, run in its Terminal (the paths cover the default project folders):

apt-get install -y logrotate
systemctl enable --now logrotate.timer
mkdir -p /etc/systemd/journald.conf.d
printf '[Journal]\nSystemMaxUse=200M\n' > /etc/systemd/journald.conf.d/codehero.conf
systemctl restart systemd-journald
cat > /etc/logrotate.d/codehero-app <<'EOF'
/var/www/projects/*/logs/*.log /var/www/projects/*/storage/logs/*.log /var/www/projects/*/var/log/*.log /opt/apps/*/logs/*.log /opt/apps/*/storage/logs/*.log /opt/apps/*/var/log/*.log /home/claude/.pm2/logs/*.log {
    daily
    rotate 7
    missingok
    notifempty
    compress
    delaycompress
    copytruncate
    su root root
}
EOF
chmod 644 /etc/logrotate.d/codehero-app

Each installed package brings its own rule — one per PHP version (php7.4-fpm, php8.4-fpm …), MySQL/MariaDB, PostgreSQL, Redis, nginx. MongoDB brings none; a new MongoDB install gets one, and in an older container with MongoDB add it with:

grep -rqs /var/log/mongodb /etc/logrotate.d/ || { printf '%s\n' '/var/log/mongodb/*.log {' '    daily' '    rotate 7' '    missingok' '    notifempty' '    compress' '    delaycompress' '    copytruncate' '    su mongodb mongodb' '}' > /etc/logrotate.d/mongodb-codehero && chmod 644 /etc/logrotate.d/mongodb-codehero; }

Container Services

The Service Manager (v4.6.3+) lets you install, control, and manage services inside the container without touching the command line.

Every ticket of a container project receives the services with their ports, logins and scripts — and, since 4.60.2, every language runtime installed in the container, each version with the exact command to call it (node22 · npm22 · npx22 and its folder, python3.12, php8.3 with its FPM socket, go1.22, ruby3.3, Java's JAVA_HOME, dotnet). Several versions can be installed side by side, and a plain node may not exist: the list says which plain names work and how to put a version's folder on the PATH for a command or the test runner.

Container Services
Services table with running status indicators and action buttons

Installing Web Apps

  1. Click "+ Add Service" → Web App
  2. Select Language, Version, Server/Framework, and Path
  3. Click Install
Install Web App
One-click web app installation from catalog

Supported Languages & Frameworks

LanguageVersionsFrameworks
PHP7.4 – 8.5php-fpm, Laravel, Symfony, WordPress
Python3.8 – 3.13Flask, Django, FastAPI, Gunicorn, uWSGI
Node.js18, 20, 22Express, NestJS, Next.js, PM2
Go1.21 – 1.23Gin, Echo, Fiber
Ruby3.2 – 3.4Puma, Rails, Sinatra
Java8, 11, 17, 21, 25Spring Boot, Tomcat
.NET8.0, 10.0Kestrel
Multi-runtime: Multiple languages can run side by side in the same container, each on a different URL path.

Java 25 and Tomcat (5.14.0).

PHP apps and shops in a container (5.15.0).

Installing Databases & Caches

  1. Click "+ Add Service" → Database / Service
  2. Select Database type and Version
  3. Click Install
Install Database
Database installation with auto-configured port

Supported Databases

DatabaseVersionsPortDB manager (🗄️)
MySQL5.7, 8.0, 8.43306phpMyAdmin
MariaDB10.11, 11.43306phpMyAdmin
PostgreSQL14 – 175432Adminer
MongoDB8.027017Adminer
MSSQL2022, 20251433Adminer
DuckDB2.09494Adminer
RabbitMQ3.12 (Ubuntu 24.04), 4.0 (Ubuntu 26.04)5672— (queue; its page opens through the preview)
Mosquitto2.01883— (MQTT broker)
OpenSearch29200— (search; no password)
Keycloak268180— (sign-in, SSO; its pages open through the preview)
Metabase0.653030— (BI; its pages open through the preview)
Grafana133000— (monitoring; its pages open through the preview)

The last six rows are new in 5.15.0. They have no 🗄️ DB manager. Their own section follows the Caches table.

DB manager (v4.52.0+): the 🗄️ icon of a database service opens it in a tool on the server, never inside the container — phpMyAdmin at https://<server>:9454/ for MySQL / MariaDB, Adminer at https://<server>:9454/dbmanager/ for PostgreSQL, MSSQL, MongoDB and DuckDB. Two MySQL services on different ports each open their own. Both open only from the panel, with a one-time token (60 seconds, used once) — never a user or password in the URL; opened any other way they show no login form.

Caches

CacheVersionPortPersistence
Redis76379RDB snapshots
Memcached1.611211None (memory only)

Queue, MQTT, search, identity, BI and monitoring services (5.15.0)

Six more services are in the catalog. Each installs in a container on Ubuntu 24.04 and 26.04, on x86 and on ARM. None asks you to accept a licence.

ServiceWhat it is forPortSmallest container memory (x86 / ARM)
RabbitMQA queue between your programs (AMQP)5672256 MB / 256 MB
MosquittoAn MQTT broker for devices and apps1883256 MB / 256 MB
OpenSearchSearch over your documents92001024 MB / 1280 MB
KeycloakSign-in for your users (SSO), with roles81801024 MB / 1024 MB (PostgreSQL included)
MetabaseQuestions and dashboards over your SQL data30302048 MB / 2048 MB
GrafanaDashboards over time series, and alert rules3000512 MB / 512 MB

Install one.

  1. Click + Add Service → Database / Service.
  2. In the Database list choose RabbitMQ (group Queue), Mosquitto (MQTT broker), OpenSearch (Search), Keycloak (Identity (SSO)), Metabase (BI) or Grafana (Monitoring).
  3. Read the lines under the list: «Needs about N MB in the container.», «Needs PostgreSQL in this container: install it first.» and «Licence: …».
  4. Click Install.

The login of each service.

ServiceLoginKeys on the 🔐 Secrets page
RabbitMQadmin, vhost / (guest is deleted)RABBITMQ_USER, RABBITMQ_PASSWORD
Mosquittoadmin (anonymous clients are refused)MOSQUITTO_USER, MOSQUITTO_PASSWORD
OpenSearchnone: no password, no TLS, it answers on 127.0.0.1 inside the container onlynone
Keycloakadmin in the realm masterKEYCLOAK_USER, KEYCLOAK_PASSWORD
Metabasethe e-mail admin@codehero.localMETABASE_USER (holds admin), METABASE_PASSWORD
GrafanaadminGRAFANA_USER, GRAFANA_PASSWORD

Web pages of the services.

Devices outside the server (port forward).

Backup and restore.

Licences.

Service Control

Each service has action buttons: Start, Stop, Restart, Delete. Bulk actions at the top: Stop All, Start All, Refresh Status, Full Backup.

Oracle 23ai Free is experimental. A ZIP backup does not carry its data: the backup says «Oracle's data is not in a ZIP backup: keep it with snapshots or a container image.», and a restore from a ZIP says the same, says that Oracle must be installed again from the Services tab, and never counts it as restored. Keep an Oracle project with snapshots or a container image. In RC testing its install took about 30 minutes and ran in the background; check the Services tab for completion. Since 5.12.4 the install enables Oracle's unit, so it starts by itself after the container restarts (an Oracle installed before 5.12.4 stays disabled: press Start on its row after a restart; install log: «Oracle starts after a restart of the container: yes»). After a snapshot restore, press Start if its row shows it stopped.

A version never measured in a container without root (5.12.4). For a container without root, the install form shows, next to a version nobody has measured there (for example Oracle 21c-xe), «<name> <version> has not been measured in a container without root: it may not work. For root, make the project's container with «Container without root» unticked.» The same sentence is in the answer and the install log of that install (also of the codehero_manage_service install). The install still runs: you decide. A container with root says nothing.

SQL Server: you choose the edition (5.14.0).

SQL Server has its own login for the project (5.13.5).

.NET and SQL Server in one container (5.13.5).

.NET and SQL Server in either order (5.14.0).

MySQL and MariaDB added later (5.14.0).

How tickets build .NET, SQL Server and Java apps (5.14.0). The texts a ticket reads for these stacks are now short numbered steps with a check.

Database Backup & Restore

Database services support Backup (timestamped native format; since v4.55.0 a MySQL / MariaDB backup keeps the stored procedures, functions and events too — a service added before 4.55.0 as well) and Restore (from backup file). Full Backup is the project's Complete backup — files, every database, services, tickets, the same as Backup & Restore → Complete (+ tickets); it shows in the Backup History and restores from there (before v4.55.0 it ran an older backup that missed most databases and the binary files). Backups can be downloaded from the web interface. Since v4.55.1 these dumps are kept with the project's backups, in /var/backups/codehero/<CODE>/services/<service>-<version>/ (before: inside the program's folder, /opt/codehero/backups/<id>/ — the upgrade moves them, the old place is still read); after a project delete they are listed under Deleted projects. The dump taken before Delete Host DB goes there too.

With a backup encryption key (Section 28, 5.10.0) a dump downloads encrypted, for example dump_20261030_211500.sql.gz.age. Decrypt it on your own computer before you upload it back. The Services tab refuses an encrypted dump, also a renamed one, for an upload or a Restore, before anything changes: the dumps already there stay as they are.

Tip: Combine database backups with BTRFS snapshots for comprehensive disaster recovery.

Password Management

Database credentials are auto-generated during installation. Change passwords anytime — connection scripts and backup scripts are automatically updated. Change Password of SQL Server works in a container without root too (5.13.5). Before, it answered «Password change failed: Sqlcmd: Error: …» there, and nothing changed.

Container Terminal

Full shell access inside the container with three modes: Inline (embedded), Popup (new window), Full Page (full-screen). Uses xterm.js with copy/paste support. Since 5.12.3 only the container of a project opens, and a project in production mode or LOCKED asks for your panel password and a current 2FA code first (the password alone while 2FA is off), as the server's terminal does (Section 21).

Container Terminal
Web terminal with full shell access inside container

Custom Services Made by Tickets (4.61.0)

A ticket can create a service the catalog does not have — a worker of your app, an engine the catalog lacks — inside the project's container. The platform then treats it like any other service: it backs it up, restores it, moves it with the project and shows it in the Services list with a purple custom badge.

What it is: the ticket writes its files in the project (.services/<name>/, kept with your code) and the platform copies them into the container's /opt/services/<name>/: service.json, install.sh (runs again without questions — twice at registration, and again by itself on a restore into a new container) and its own start / stop / status / backup / restore scripts. The platform writes platform.env with the project's folders, so a project restored under a new name never runs against the old one's paths.

Backups and restores: every backup level — Quick too — holds each custom service (folder, config files, its data). Restoring into the same project stops it, brings config and data back and runs it again if it was running; restoring as a new project or importing a container image installs and registers it again for the new project. A failed restore is never started, not even at the next container start. Snapshots run the service's own snapshot scripts, and a rollback reports the services that no longer match.

The container itself (4.61.1): a ticket only reads its state — and creates it when the project has none yet (the container alone; every service after it with your approval). Stopping, destroying or moving the container and restoring or deleting a snapshot are yours: from the panel, or by the assistant only after your explicit yes for that operation.

Moving to a server that still runs a version before 4.61: everything else comes back; that version reports the custom services as «Install … failed» and leaves them out. Restore the backup on a 4.61 server, or upgrade that server first.

In the Services list: Delete only unregisters a custom service — its folder and data stay; its ports, path and scripts change through its folder (with your approval when anything you approved changes). A backup made by 4.61.0 restored on an older version restores everything except the custom services.

When to Use Containers

ScenarioRecommendation
Simple static websitesContainer not needed
Projects needing specific runtime versionsUse containers
Projects requiring databasesUse containers
Client projects needing isolationUse containers
Multi-service architecturesUse containers

32. Production Deployment

Deploy CodeHero behind a production-ready setup with custom domains and SSL.

Domains of this site (5.11.0)

A live site answers on one domain or on several, each with its own certificate. Open the project's page → Production Deployment; it is the same for a host project and a container project.

Production PHP for this domain (5.16.6)

Host projects only. Open the project's page → Production Deployment → Production PHP for this domain.

What the WAF stopped, and how to let it through (5.16.3)

Where you see it: the WAF item in the top menu (5.16.4), or Open the WAF log under What it stopped in Settings → Security → Web application firewall (WAF) and on a project's page. Those two places show only a count: the hits in the last 24 hours and in the last 7 days. The list is on the WAF log page (next part).

The WAF log page (5.16.4)

Open WAF in the top menu (next to Logs). On a phone the menu is hidden: press ⋮ (the last four items: Updates, Logs, WAF, News) or ☰ (the whole menu).

How to let a request through:

  1. Admin panel and Previews: on the WAF log page each hit has Allow this and Switch this rule off for the panel (or …for the previews). Allow this lets through only that rule, for that parameter, on that path; it shows only when the parameter and the path are known. Switch this rule off … works for the whole area (every page and every parameter); a box asks first. In Settings → Security, Admin panel: what is let through and Previews: what is let through list each allowance and each rule that is off. Press Remove to take one back.
  2. Live sites: open the project's page → 🛡 Web application firewall — this site. The WAF log page has Allow this and Switch this rule off for this site on each hit of the project; the project's page lists what is let through, with Remove.

How to switch it off:

If something on the panel breaks behind Block: 1. Set Admin panel to Log only. 2. Open WAF in the top menu and look at the hits. 3. Use Allow this, or switch that one rule off. 4. Set Admin panel back to Block.

The WAF installs on Ubuntu 26.04 too (before 5.16.3 its setup failed there). A ticket knows the server has the WAF and what its modes are, and reads GUIDE: waf.md BEFORE it writes a form, an upload or an API. A ticket never turns the WAF off and never changes its rules; it names the page, the parameter name and the rule id in its report, and you decide.

Web application firewall — this site (5.11.0)

Each live site can have its own firewall settings. Open the project's page → 🛡 Web application firewall — this site (a panel after Production Deployment; click its title). It is the same for a host project and a container project. The firewall must be installed first (Packages → WAF Security Setup); if it is not, the panel says so and links there.

Check dedicated hosting (5.8.0)

For one app on its own CodeHero server — its live project and its maintenance copy: the live project's page → Production Deployment → Check dedicated hosting. It changes nothing. Each line is ✓ (ok), ✗ (a hold: fix it before the app goes live) or • (a note), with the menu that fixes it: the live project in Production mode and locked, its copy in Maintenance mode; the panel, the previews, the live site and the copy each on names of their own (Settings → Domains); for each a certificate a browser trusts, at least 14 days left (a self-signed one fails, also with the right name); it reads what nginx serves, and a saved setting that differs from it is a ✗ — Save & Apply or Deploy again; the panel's sign-in cookie and CodeHero's protections in the nginx files (Save & Apply, Deploy); no plain TCP port forward (it is reached under the panel's name past nginx); both containers capped and in force, leaving the server at least 2 GB or a fifth of its memory and one CPU, each below 90 % of its memory limit since it started — run a real build in the copy, then check again.

How to set up the WAF for a new live site (5.16.7)

Follow the steps in this order. Nothing is refused until step 8.

  1. Install the WAF once: Packages → WAF Security Setup → Run Setup.
  2. Put the site live: the project's page → Production Deployment → Go live. A new live site is Off: the WAF does not look at it yet.
  3. Open the project's page → 🛡 Web application firewall — this site. Set Live domain to Log only. Press Save. The state line says «Live domain: Log only».
  4. Use the site like a visitor for a few days: every page, every form, search and upload, the login, the admin pages.
  5. Open WAF in the top menu. Under Projects tick the site. Press Apply filters. Open the tabs By rule and By request.
  6. Decide for each hit. A false positive is the app's own normal request: a page and a parameter the app sends, again each time a user does the same action. THEN press Allow this (one rule, one parameter, one page). An attack is a path the app does not have (/.env, /wp-login.php), or many different rules on one request. THEN do nothing: Block will refuse it. Not sure? THEN do not allow it. Ask first.
  7. IF one rule keeps stopping many pages, THEN go one step up. Narrowest first: Allow this · Switch this rule off for this site · a lower Sensitivity or a higher Threshold · Log only. Never Off only to make a hit go away.
  8. IF a few days pass and the hits left are only attacks, THEN set Live domain to Block and press Save.
  9. After Block, look at WAF from time to time. A visitor says «403 Forbidden»: find the hit, press Allow this.
  10. The previews follow Settings → Security → Firewall (WAF) → Previews (a first install: Log only). One preview can have its own mode on the same panel (Preview).

Make a live PHP site fast (5.16.7)

Follow the steps in this order. It is for a host project (not a container project).

  1. Settings → Performance → Mode and values: click Production (the server serves sites) or Hybrid (development and some live sites). Read The values for this server. For Production choose Safe or Fast. Click Apply. IF some values wait, THEN click Restart MySQL.
  2. Settings → Performance → PHP cache and JIT: set The projects' production domains to Follow the mode (on in Production) or On. Click Save PHP cache & JIT. Leave Also the projects' previews (dev) unticked: the AI must see its own changes at once.
  3. Settings → Performance → System profile: IF tuned is not installed, THEN click Install tuned. Choose codehero-apps. Click Apply.
  4. Put the project live (Domains of this site above).
  5. Project → Production Deployment → Production PHP for this domain: Follow the server or On — its own PHP (cache + JIT). Click Save PHP settings. The line under it says «runs on its own PHP … pool». IF it says «Not running», THEN click Save PHP settings again and read the reason.
  6. Leave PHP workers for this domain empty: the server's mode is right for most sites. IF you need more, THEN fill the fields and click Save workers. A red warning means all pools together could take more than the RAM.
  7. Put a version on your css and js links (style.css?v=2) and change it when the file changes. The browser then keeps the file for a year.
  8. A per-folder setting that must travel with the project (upload_max_filesize) goes in .user.ini (the table «Which one to use» in Section 4).
  9. New code on the live site is seen within 60 seconds. IF you do not want to wait, THEN click Reset PHP cache.
  10. Open the firewall for UDP 443 (Section 34) so browsers can use HTTP/3. IF UDP is closed, THEN they use HTTP/2. Nothing breaks.

A frontend block for the panel (5.9.0)

Settings → Domains gives the panel a name of its own on its port — the simplest way. To serve it on port 443 under your own name, add a server block to THIS server's nginx that goes straight to the panel's upstream codehero_panel, with the trusted panel proxy's line in both locations and the /api/internal/ refusal:

server {
    listen 443 ssl;
    server_name codehero.yourdomain.com;
    ssl_certificate /etc/letsencrypt/live/codehero.yourdomain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/codehero.yourdomain.com/privkey.pem;
    client_max_body_size 500M;

    location ^~ /api/internal/ {
        return 403;
    }

    location / {
        proxy_pass http://codehero_panel;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
        include /etc/nginx/codehero-panel-proxy.conf;
        proxy_read_timeout 300s;
    }

    location /socket.io {
        proxy_pass http://codehero_panel;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
        include /etc/nginx/codehero-panel-proxy.conf;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_read_timeout 86400s;
    }
}

Never proxy_pass https://127.0.0.1:9453 (the recipe of before 5.9.0): a local proxy hop makes every user arrive from 127.0.0.1 and share one sign-in lock. Behind a load balancer or a reverse proxy on ANOTHER machine, put its exact address in Trusted upstream proxies (Settings → Security → 🛡 Protections).

Domain Setup

  1. Point two names at the server: one for the dashboard (e.g. panel.yourdomain.com), one for the previews (e.g. apps.yourdomain.com)
  2. Configure both in the Settings → Domains tab
  3. The system will automatically configure Nginx; projects are then at https://apps.yourdomain.com/project-name/

Why two names: a browser sends a site's cookies to every port of the same name. With two names, a project page you show a customer never receives your panel's login. This matters most for an app on a forwarded container port: it is not behind the preview's checks, so it must not share the panel's name.

Preview links and their key (5.7.0):

Every request needs the key — this server's own too (5.7.0). Before 5.7.0 a request from the server itself (localhost) needed no key. Now every request needs the project's key.

A script or cron job of yours that calls a preview URL from this server:

  1. Open the project page. The key is in the 🔐 Secure URL address, after ?key=.
  2. Send it in the header X-CodeHero-Preview-Key: <the key>, or add ?key=<the key> to the URL.
  3. Or call the project's production domain instead. It needs no preview key.

If a tool of yours cannot send the key, switch 🔐 Secure URL off on the project page (it shows Public). Then that project's preview needs no key — for anyone who reaches the port.

The preview key stays out of logs and outputs (5.10.0):

SSL Certificates

Let's Encrypt (Recommended):

  1. Go to Settings → Certificates
  2. Enter your domain name
  3. Click "Request Certificate"
  4. Certificates auto-renew every 90 days

Custom Certificate:

  1. Go to Settings → Certificates
  2. Select "Upload Custom"
  3. Provide your certificate (.pem) and private key

Ports

CodeHero installs no firewall. A published site needs ports 80 and 443 open; who reaches the panel (9453) and the previews (9867) you choose with your cloud's or your router's firewall — see 34. Ports and Your Firewall, and the three levels in Securing CodeHero.

33. Connected Devices & the CodeHero VPN

Devices (in the menu) holds the machines CodeHero uses outside its own server: a PC or a Mac at home or at the office, a server elsewhere — for a local LLM, Android / iOS builds, tests or releases. Name a device in a ticket («build on Mac-Office») and the ticket works on it. Each device has a name, a system (Linux / macOS / Windows), a connection and its purposes.

ConnectionWhen
CodeHero VPN (recommended)The machine joins CodeHero's own WireGuard network. Works behind any router: nothing to open at home.
DirectNo VPN: CodeHero connects straight to the machine's SSH. On the same network (home, office) there is nothing to open; from outside, you forward ONE port on your router to it.

Turn the VPN on (once)

  1. Devices → the VPN card → Install VPN.
  2. Give CodeHero's public address — prefer a domain (e.g. vpn.example.com): if CodeHero moves to another server, you change the DNS and every device follows by itself. An IP works too, but a move then needs a new config on every device. Never the panel's own name: with the hosts line (below) your laptop would look for the VPN inside the VPN.
  3. Keep port 51820/UDP open towards the server (your cloud firewall, if you use one) and turn the VPN on.
The VPN connects: CodeHero reaches your machine from outside without a static IP, a router change or a port forward. Its own rules (5.7.0) decide what each device reaches through the VPN — «What it reaches», below. They touch only the traffic that passes through the VPN. SSH, the panel and every other port of the server stay exactly as they were.

What a device reaches (5.7.0)

Each VPN device has the setting What it reaches (through the VPN): Devices → the device → Manage → Save.

SettingThe device reaches
The server only (default)This server itself: the panel, phpMyAdmin, the previews, SSH and its forwarded ports. Nothing else through the VPN: no other device, no container.
The server + its projects' containersAlso the containers of the projects allowed on it (Projects), directly.
The whole VPNAlso the other VPN devices and every container (CodeHero as a VPN server).

Use the VPN to close your ports (5.7.0)

With your laptop in the VPN you can close the panel's ports to the internet and still use the panel. The VPN card's button Use the VPN to close your ports shows the steps for your server, in this order:

  1. Join your laptop (and every computer you open the panel from) to the VPN: + Device, connection CodeHero VPN, then Get the command or Config file / QR. The server only is enough to open the panel.
  2. Add the hosts line it shows to the laptop's hosts file: the panel's name → the server's VPN address (10.77.0.1 with the default network), so the certificate still matches. Windows: C:\Windows\System32\drivers\etc\hosts (open Notepad as administrator). macOS / Linux: /etc/hosts (with sudo). Take the line out to use the panel without the VPN again.
  3. With the VPN on, open the panel through it and sign in. Only then close the ports.
  4. On your cloud's firewall (or your router), close: 9453 (the panel), 9454 (phpMyAdmin), 9867 (the previews — only if nobody outside the VPN must see them), and each forwarded port that only VPN devices use.
  5. Keep open: the VPN's UDP port (51820), and 80 / 443 if you publish sites or use Let's Encrypt.
Before you close anything, read «Do not lock yourself out» in Securing CodeHero: a spare device, a test from outside, and the ports closed last.

Add a device

  1. + Device → its name, system, connection, the SSH user and port, and its purposes (LLM, Android dev, iOS dev — a Mac only —, General). CodeHero logs in with a password or a private key.
  2. Open it → Connection → Get the command for its system and run that ONE command on the machine (as an administrator). It saves the join script on the machine, then runs it. It works once: a second run downloads nothing. A step failed? Fix it, then run the saved file again, within the hour. A new command cancels the old one. The panel's certificate is checked against its pinned key.
  3. In a minute the device shows online, with every address: the VPN IP, its own IP, and the public IP it connects from.

Where the command is (5.10.0). A line under the buttons follows the last command:

The Events tab shows each delivery too. A command someone else downloaded first does not work on your machine.

What that one command does: it downloads CodeHero's join script from your CodeHero ONCE (over HTTPS, the certificate checked), saves it in your home folder (codehero-join.sh; on Windows codehero-join.ps1), then runs it. The script:

SystemRun it inIt does
Windows 10 / 11 (tested 2026-10-25, Windows 11 Pro)PowerShell as Administratorinstalls WireGuard (winget); turns on the OpenSSH Server feature if it is off (the first time Windows downloads it: a few minutes to more than half an hour — 35 minutes on our test PC); adds CodeHero's key; joins the VPN; makes only the VPN network «chvpn» Private (SSH answers there); adds a task that keeps the VPN after every restart, before anyone logs in
Linux (tested; apt or dnf)a terminal, with sudoinstalls WireGuard and the OpenSSH server if missing, turns SSH on if it is off; adds CodeHero's key; joins the VPN (started at every boot)
macOS (tested 2026-11-19 and 2026-11-20, MacBook Pro M5)No command. The device's page → Download the config → the WireGuard app from the Mac App Store (its icon is in the menu bar → Manage Tunnels → Import tunnel from file) → ActivateThen Remote Login on (System Settings → General → Sharing) and, on the device's page, Credentials: the Mac's user name and password → Save → Test connection

The config instead of the command (Windows, Linux; 5.18.0). Config file / QR on the device's page gives its WireGuard config: the WireGuard app (wireguard.com/install; for Linux that page shows how) → Import tunnel(s) from file → Activate. It gives ONLY the VPN. CodeHero still needs SSH on the machine: on Windows «OpenSSH Server» installed and running, startup Automatic (steps 1–3 and 6 of «A Windows PC on your own network» below) and the VPN network Private: only PowerShell as Administrator changes it, Set-NetConnectionProfile -InterfaceAlias <the tunnel's name in the WireGuard app> -NetworkCategory Private, and Windows may set it back (the command does both and keeps it Private; with the config you do them yourself, or CodeHero cannot log in); on Linux the SSH server on. Then Credentials: the user name and password → Save → Test connection. Choose ONE: a command and a config on one machine — the last one wins and the other stops.

It changes no SSH setting and no firewall rule on any system. A Direct device on your own network needs no script: turn its SSH on and give CodeHero its IP, user and password (below, for Windows).

If a step fails (5.10.0). The script stops with «STOP: …» and says what to do:

After an upgrade to 5.10.0, a rollback or a restore of the installation, an earlier command no longer works: make a new one.

Other ways, same steps: Script, For an AI agent (a .md file for Claude Code or another agent ON the machine) and Steps by hand. Each button shows a command that downloads that ONE file, once, and saves it in the machine's home folder (5.10.0). Choose one: the first download uses the command up. VPN only: Config file / QR for your own WireGuard client (shown once: CodeHero does not keep its private key).

Your device's security is yours. CodeHero changes nothing in the machine's SSH settings or firewall: it adds its own key and pins the machine's host key. If you want more protection, use your router's or your cloud's firewall.

A Windows PC on your own network

Tested on 2026-10-25 with a Windows PC on the same home network as CodeHero. (vendor docs) marks a step we have not tested yet.

Which connection

Where CodeHero runsConnection
On the same network as the PC (home, office)Direct, with the PC's own IP (e.g. 192.168.1.50). Nothing to open on the router.
Elsewhere (a cloud server)CodeHero VPN.
In a virtual machine with NAT (Hyper-V «Default Switch», VirtualBox «NAT»)Direct, added by hand (below). CodeHero reaches the PC, but the PC cannot reach CodeHero, so the join command cannot work.

On the PC (once, as an administrator)

  1. Turn on Windows' own SSH server. Either Settings → System → Optional features → View features → «OpenSSH Server» → Install; or PowerShell as Administrator:
    Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0; Set-Service sshd -StartupType Automatic; Start-Service sshd
  2. Wait. It downloads from Windows Update: from a few minutes to more than half an hour (about 35 minutes on our test PC). PowerShell shows «Operation running» and a bar [oooooooooooo ] the whole time. That is normal.
  3. It asks nothing: no password, no firewall question. That is normal too: Windows adds its own firewall rule for port 22.
  4. The network must be Private: Settings → Network & internet → Ethernet (or Wi-Fi) → Network profile type → Private. On Public, Windows blocks connections from other machines, SSH too. On our test PC it was Public, and SSH answered the moment it became Private.
  5. Windows does not answer ping. A failed ping does NOT mean the PC is off or unreachable.
  6. Check it (it only reads; PowerShell as Administrator):
    Get-Service sshd | ft Status,StartType; Get-NetConnectionProfile | ft InterfaceAlias,NetworkCategory; Get-NetFirewallRule -Name OpenSSH-Server-In-TCP | ft Enabled,Profile,Action; Get-NetTCPConnection -LocalPort 22 -State Listen | ft LocalAddress,LocalPort; Get-NetIPAddress -AddressFamily IPv4 | ft InterfaceAlias,IPAddress
    Good: sshd Running and Automatic · the network Private · the rule True and Allow · a line for port 22 · the PC's IP. Or from the menus, without PowerShell:
    • Running: Win+R → services.msc → «OpenSSH SSH Server»: Status Running, Startup type Automatic.
    • The network: Settings → Network & internet → Ethernet (or Wi-Fi) → Network profile type: Private.
    • Installed: Settings → System → Optional features → «OpenSSH Server» is in the list. (vendor docs)
    • The firewall rule (only look): Win+R → wf.msc → Inbound Rules → «OpenSSH SSH Server (sshd)»: Enabled Yes, and its Profile. (vendor docs)
  7. Your user name for SSH: the name of your folder in C:\Users (File Explorer → This PC → Local Disk (C:) → Users). Capitals do not matter. (In PowerShell, whoami shows pc-name\user: the part after the \.)
  8. Keep the PC awake while CodeHero works on it: Settings → System → Power → sleep, when plugged in → Never. A PC that sleeps or is off answers nothing. (vendor docs)

In CodeHero

  1. Devices → + Device → system Windows, connection Direct, address = the PC's IP, SSH port 22, SSH user = your Windows user name, the purposes.
  2. Open it → Credentials → Login Password → your Windows account's password → Save. A Microsoft account: its password, not the PIN. (vendor docs)
  3. Test connection. The first time, it shows the PC's fingerprint → It matches the device — Pin. On your own network you can pin it without a check. A check, for more safety (optional): in PowerShell on the PC, ssh-keygen -lf C:\ProgramData\ssh\ssh_host_ed25519_key.pub shows the same fingerprint.
  4. Test connection again → the device is online.

CodeHero changes nothing in the PC's firewall or SSH settings. Its commands on Windows run in PowerShell; Connect opens Windows' own command prompt (cmd) — type powershell there for PowerShell.

If it does not connect

You seeWhyDo
The bar stays at the same point for 30+ minutesWindows Update is busy or waits for a restartClose PowerShell; restart Windows if it asks; install it from Settings.
No answer on port 22 (CodeHero waits, then gives up)The SSH server is still installing or not running, or the network is PublicRun the check in step 6. Public → make it Private (step 4): SSH answers at once.
It answered before, and now nothing answersThe PC sleeps, is off, or has a new IPWake it and keep it awake (step 8). The check in step 6 shows its IP; a new one → change the address on the device's Manage.
«Connection refused»Nothing listens on port 22Services → «OpenSSH SSH Server» → Start, startup type Automatic.
«Permission denied»Wrong user name or passwordStep 7 for the name; the account's password, not the PIN.
«CodeHero's key for this device is missing or damaged» (5.10.0)CodeHero's own key for the device is gone or brokenJoin the device again (Get the command, then run it), or Credentials → Generate key and put the new public key on the PC (the page says where). Nothing connects until then.

A Windows PC in the CodeHero VPN

Tested on 2026-10-25: Windows 11 Pro at home, CodeHero on a cloud server. Use it when CodeHero runs elsewhere (a cloud server) and the PC is behind a home router.

  1. On the PC: «OpenSSH Server» installed and running (steps 1–3 of the section above).
  2. In CodeHero: + Device → system Windows, connection CodeHero VPN, SSH user = your Windows user name, SSH port 22.
  3. Open it → Connection → Get the command for Windows. Under the command the page says what it changes on the PC (below).
  4. On the PC: open PowerShell as Administrator, paste the command, press Enter. It shows each step as it goes.

What it does on the PC:

It ends with «Joined: <name> is 10.77.0.x in the CodeHero VPN». In a minute the device shows online.

After a restart (tested): SSH answered on the home network about 20 seconds after Windows started, and over the VPN 2 seconds later — before anyone logged in. The VPN network stayed Private.

It stops withDo
«WireGuard did not install»Install WireGuard from wireguard.com, then run the saved file again: the STOP line shows the command.
«CodeHero refused this file's key, or did not answer»The panel did not answer: check that the PC reaches it, then run the saved file again. CodeHero refused it (used, replaced by a newer command, or older than an hour): Get the command again.
«CodeHero has this join already»A step after the join failed. Fix what the line above it says, then Get the command and run the new command.
«the tunnel does not answer»The PC's network blocks UDP to CodeHero's VPN port (51820): allow it, or use Direct.

Use it

What the assistant and a ticket may do on a device (5.7.0):

Ask the assistant: «the emulator does not show», «start the LLM server on AMD-395». For «set up the LLM on AMD-395» or «install the Android tools on Build-PC» it opens a ticket for you.

Phone apps on your Windows PC (5.6.0)

Tested on 2026-10-25 with Windows 11 Pro. A ticket builds an Android app (Kotlin, Capacitor or React Native) on your PC and checks it on an emulator there; the code stays in the project on CodeHero.

  1. Add the PC as a device (above) with the purpose Android dev, and allow it for the project (the device's Projects).
  2. Turn on Windows Hypervisor Platform: Settings → System → Optional features → More Windows features → tick «Windows Hypervisor Platform» → OK → restart. Without it the emulator is too slow.
  3. The first ticket looks at the PC first (it only reads). Every install on your PC is said first — what, where (C:\CodeHero\…), the size and the time — and done only after your yes: the ticket stops and asks you, and then the install waits on the ticket's Approve / Reject panel for your Approve (5.7.0). If the PC already has Java, Node.js, Android Studio or other emulators, it also says what to do before it continues: make a restore point, close Android Studio, keep 20 GB free.
  4. Then it installs its own tools in C:\CodeHero (10–30 minutes the first time, about 3 GB): Java 21, Node.js, the Android SDK, the emulator and an Android 16 image.

What CodeHero changes on the PC: only C:\CodeHero. It removes, upgrades or changes nothing of yours — not your programs, not your PATH, JAVA_HOME or ANDROID_HOME, not your Android Studio or your own emulators, no firewall and no SSH setting. Google's Android tools keep a small program of their own in %USERPROFILE%\.android\bin.

See the app live and use it (5.6.1)

Open the ticket's Live Preview → 📱 Emulator: the project's emulator, live, in any browser — a phone or a Galaxy Fold too. Tap, swipe and type on it as on a phone; the buttons under it are Back, Home, Recent apps and Rotate, and the box «Type into the app» sends text (on a computer you can also type straight on the picture). Tested on 2026-10-25: three projects, three emulators, three Live Previews open at once, each with its own app.

When the PC restarts, sleeps or the network drops (5.6.1)

CodeHero does not get stuck; it goes on when the PC is back:

Your own phone instead of the emulator

Ask the ticket for it. It sends you these steps: on the phone, Settings → About phone → tap «Build number» 7 times; then Developer options → «USB debugging» on; connect the phone to the PC with a USB cable and tap «Allow» on the phone. (Android 11 or newer can use «Wireless debugging» instead of the cable.) The ticket installs and checks only the project's app; it never touches your other apps, their data or the phone's settings. The Live Preview shows the emulators; the phone is in your hand.

Local LLMs (custom providers)

Settings → Providers → Local LLMs: up to two OpenAI-compatible servers (custom1, custom2) — the address, the API key, the models, Test (it checks chat, tools, streaming and the certificate's pin). The settings are written in api_keys.conf and survive updates. You set them here, or the assistant sets them for you (5.17): it reads the slot and the server on the device, proposes the whole set in one message (what changes, old → new), starts the server with it, and saves the slot after your yes on ONE card. The values: what you say first, else what you typed here, else the catalog's values for the model. A ticket with the skill local-llm connects a server it set up, after your Approve. A Test uses a tunnel of its own and never interrupts running tickets. Changing the address, or the tunnel's device or port, needs the API key typed again.

Your own LLM server on a Windows PC (5.6.0) — tested on the GMKtec EVO-X2 (AMD Ryzen AI Max+ 395) with Windows 11. One general way for every graphics card (AMD, NVIDIA, Intel): a GGUF model and llama.cpp's own server, with an API key. Ask the assistant «set up Qwen3.6-35B-A3B on AMD-395»: it opens a ticket with the skill local-llm, which follows config/guides/local-llm.md. Every install on your PC is said first — what, where (C:\CodeHero\…), the size and the time — and done only after your yes, approved on the ticket's Approve / Reject panel: llama.cpp, and each model.

  1. It looks at the PC (the graphics card and its memory, the ports in use) and installs llama.cpp in C:\CodeHero\llm (Vulkan works on every card; CUDA for NVIDIA).
  2. It downloads the model into C:\CodeHero\models in the background (a 37 GB model takes hours on a slow line) and checks its SHA-256.
  3. It starts the server — again at every restart, before anyone logs in — with an API key in C:\CodeHero\llm\api-key.txt (only the PC's administrators can read it).
  4. It connects it to custom1 or custom2 (it asks which); the key goes into CodeHero's settings without being shown.

On our test PC (GMKtec EVO-X2, Radeon 8060S, Vulkan) Qwen3.6-35B-A3B Q8_0 (34.4 GiB) reads a prompt at about 1,500 tokens/s and writes at 55 tokens/s; with a 262,144-token context shared by 4 people its server is ready in 15 s.

The temperature is your care. Keep the machine cool: free air around it, the fans not blocked. To see the temperature, ask the assistant «how hot is my PC?».

The ticket's think mode decides the thinking (5.7.0). off = no thinking. The other modes think up to the mode's token budget; then llama.cpp ends the thinking and the model answers. The budget always leaves a quarter of the output for the answer. Every model of the catalog uses the slot's budgets (5.17: balanced 8,000 tokens …), the same rule as every provider; your own budgets for a model (on the page, or in a ticket's words) win.

Files and drafters (5.17). CodeHero takes unsloth's dynamic files (UD-…) first, else the official ones. The main local model is Qwen3.6-35B-A3B at 8 bits. On a Mac it uses a DFlash drafter when the model has one (Qwen3.6-35B-A3B, Qwen3.8-27B, Qwen3.8-Flash-Next), else MTP; Windows keeps MTP. Measured on a MacBook Pro M5 Max 128 GB, tokens/s with no drafter → MTP → DFlash2: Qwen3.6-35B-A3B 8-bit 97.5 → 159.9 → 194.6; Qwen3.8-27B 8-bit 18.6 → 46.3 → 80.0. Ornith-1.5-35B's own DFlash has no ready GGUF file: its conversion is a short how-to for a Linux server (GUIDE local-llm.md §18). Which model, which file, which drafter: ask the assistant — it answers from what we measured (GUIDE local-llm.md §19); on a smaller machine everything is slower.

Our study of local models — the models of the catalog, speed with and without MTP, long prompts, thinking budgets and heat, measured on one machine — is on its own page: Local AI models: our study and tests.

How CodeHero and your team reach it — you choose:

WhoHow
CodeHero, on your own machineThrough the device's SSH (Local LLMs → «Through a device's SSH»): nothing to open on the PC; CodeHero keeps the tunnel up
CodeHero or your team, on the same networkhttp://<the PC's IP>:8080/v1 + the API key
CodeHero or your team, in the CodeHero VPNhttp://<its VPN IP, 10.77.0.x>:8080/v1 + the API key

Your team gets only the address and the key — never the PC's SSH login. Several people use it at the same time (its «slots»). Show the LLM server's API key on the device's page (Credentials) reads the key on the PC for you to give them, with the address. A team member's laptop in the VPN (not tested yet): + Device → connection CodeHero VPN (any SSH user: CodeHero does not log in to it) → Connection → Config file / QR → import it in the WireGuard app on the laptop; set that laptop's What it reaches to The whole VPN (5.7.0); it then reaches http://10.77.0.x:8080/v1.

On Windows the network ways need the port allowed in Windows' firewall, for Private networks only — your decision; in PowerShell as Administrator:

New-NetFirewallRule -DisplayName "CodeHero LLM 8080" -Direction Inbound -Protocol TCP -LocalPort 8080 -Profile Private -Action Allow

CodeHero never changes the PC's firewall itself.

A Mac that works as a server (never sleeps, comes back after a restart)

A Mac can work for CodeHero day and night: a local LLM, app builds, emulators. These steps keep it awake and bring it back by itself after a restart, with nobody at the Mac. Tested on 2026-11-19 with a MacBook Pro (Apple M5 Max, macOS 26.6), on its charger, the lid open. First add the Mac as a device (Devices → + Device, system macOS; «Add a device» above). Every step below is in the Mac's own System Settings.

  1. SSH on. System Settings → General → Sharing → Remote Login ON. The device join turns it on; check that it is still on.
  2. Never sleep (a MacBook).
    • System Settings → Battery → Options → Prevent automatic sleeping on power adapter when the display is off ON.
    • In the same window: Wake for network access → Always.
    • System Settings → Lock Screen → turn the display off, on battery and on power adapter → Never.
    • Keep it on its charger, with the lid OPEN. A MacBook sleeps when its lid closes: on battery always; on power it stays awake only with an external display.
    • A Mac mini, Mac Studio or iMac (not tested by us: our test Mac is a MacBook): System Settings → Energy → Prevent automatic sleeping when the display is off ON, and Start up automatically after a power failure ON.
  3. No automatic macOS installs. System Settings → General → Software Update → the (i) next to Automatic updates → Install macOS updates OFF. You install macOS updates yourself, when you choose. Our test Mac also had the downloads and the security responses off. You may keep the security responses on: then an update can restart the Mac, and these steps bring it back by itself.
  4. FileVault off and automatic login: your choice. With FileVault on, a restart stops at the unlock screen. Nobody is logged in, so nothing works (no VPN, no SSH, no emulators) until a person types the password AT the Mac. For a Mac that must come back alone:
    • System Settings → Privacy & Security → FileVault → Turn Off… (it asks for the Mac password).
    • System Settings → Users & Groups → Automatically log in as → your user. macOS allows it only while FileVault is off.
    The price, said plainly: the Mac's disk is not encrypted, and anyone who has the Mac in their hands is logged in as you. Do it only on a Mac that is only for this work, in a place you trust. Otherwise keep FileVault on, and accept that after every restart someone must log in at the Mac.
  5. The VPN comes back by itself. A Mac in the CodeHero VPN through the WireGuard app (App Store): the tunnel → Edit → On-Demand: tick Wi-Fi and Ethernet → Save. On the same network as CodeHero (a Direct device) no VPN is needed.
  6. Optional: the most speed for local LLMs. System Settings → Battery → Energy Mode → on power adapter: High Power (a Mac mini or Mac Studio: System Settings → Energy → Energy Mode). The fans run harder. You take care of the Mac's temperature and its airflow: a free place, nothing on the vents. Want help with it? Ask a ticket or the assistant.
  7. IF macOS asks about sshd-keygen-wrapper, THEN Don't Allow. Over SSH, macOS may ask to give sshd-keygen-wrapper Accessibility, Automation, Full Disk Access or Screen Recording. Click Don't Allow: CodeHero needs none of them. A grant to it is a grant to every SSH session.

The proof: the restart test. Do it once, after the steps. Apple menu → Restart, then do not touch the Mac. What you should see (times from our test Mac):

After the startWhat you see
About 35 sThe Mac has logged in by itself. The VPN is connected. SSH works: the device's Test connection answers.
About 46 sAn Android emulator that was running before the restart runs again (CodeHero starts the kept emulators at login).
—The local LLM server does NOT start by itself. Start it from a ticket or the panel (ask the assistant «start the LLM server on my Mac»).

IF the Mac waits for a password after the restart, THEN check step 4.

A locked screen does not stop the work. Lock it with ⌃⌘Q. On our test Mac the iOS simulator and the Android emulator started, showed their screens and streamed while the Mac was locked.

Sign your app on your Mac (5.17)

A ticket builds your app on your Mac (a device with the system macOS). To give a Mac app to other people outside the App Store, it is signed with YOUR Apple Developer account (a Developer ID Application certificate) and checked by Apple (notarization). For the App Store the certificate is Apple Distribution. Ask the ticket for a signed app. Your steps are web pages and your Mac's own windows; the ticket does the rest. Xcode must be installed and opened once (Agree). Tested on 2026-11-19 with CodeHero's own Mac app.

  1. Your role. Open developer.apple.com/account → Membership details. Only the Account Holder can make a Developer ID certificate. Xcode shows only one role (for example «Admin»); this page shows all of them («Account Holder, Admin»). IF Xcode (Settings → Accounts → your team → Manage Certificates → +) answers «… can only be performed by the Account Holder», THEN use the web way, steps 2 and 3: it is the way that worked.
  2. The request, on your Mac. Open Keychain Access: on macOS 26 it is not in Applications → Utilities any more; press ⌘ Space and type «Keychain Access» (or Finder → Go → Go to Folder… → /System/Library/CoreServices/Applications/). Menu Keychain Access → Certificate Assistant → Request a Certificate From a Certificate Authority… → your email in User Email, a name in Common Name, CA Email empty, Saved to disk.
  3. The certificate. developer.apple.com/account → Certificates, IDs & Profiles → Certificates → + → Developer ID → Developer ID Application → G2 Sub-CA → choose the request file of step 2 → Download → double-click the .cer file. In the window Add Certificates choose Keychain login (the request's private key is there) → Add. (For the App Store: Apple Distribution instead.)
  4. The key Apple uses to notarize. appstoreconnect.apple.com → Users and Access → Integrations → App Store Connect API → Team Keys → + → a name, Access Developer → Generate → Download API Key. Apple lets you download it only ONCE: the file AuthKey_<KEYID>.p8. Put it in the folder ~/CodeHero/signing on your Mac (Finder → Go → Go to Folder… → ~/CodeHero/signing). Tell the ticket the Key ID and the Issuer ID: they are not secret. Never send the .p8 file: the ticket uses it by its path and never reads or shows it.
  5. Once, only IF the ticket asks: one line in Terminal. Over SSH macOS may not let the signing key be used (errSecInternalComponent). Then the ticket gives you ONE short line. Open Terminal (⌘ Space, «Terminal»), paste the line, press Return. macOS asks «codesign wants to sign using key … in your keychain»: type your Mac password IN THAT window and click Always Allow (it can come once for each signed part: the same answer). Tell the ticket when it ends. After «Always Allow» the next builds sign without asking.

What the ticket does by itself: it checks your certificate; it adds Apple's intermediate certificate when it is missing (Xcode adds it, the web way does not — no step of yours); it signs, sends the app to Apple (a few minutes) and checks the result. A copy downloaded later asks only «… is an app downloaded from the Internet. Are you sure you want to open it?» → Open. No «Not Opened», no Privacy & Security → Open Anyway.

Your Mac password goes only into macOS's own windows: never to a ticket, a chat or a script.

34. Ports and Your Firewall

CodeHero installs no firewall. Your server may run other things of yours, so you choose the firewall: your cloud's (Hetzner Cloud Firewall, an AWS Security Group …) or your router's are the simple choice, because they cannot break anything on the server. The VPN (Section 33) adds no rule for the server's own ports: its rules decide only what each device reaches through the VPN («What it reaches»). The web application firewall in Packages (WAF Security Setup) is installed only if you install it.

What to leave open and what to close from outside:

PortWhatFrom outside
22/tcpSSHOnly for you (your IPs), or reach it over a VPN
9453/tcpCodeHero panel (HTTPS)Only for you and your team
9454/tcpphpMyAdmin (HTTPS, behind the panel's login)Only for you
9867/tcpProject previews (HTTPS)For whoever must see the previews (you, your customers)
80/tcp, 443/tcpProduction domains and their certificates (Let's Encrypt)Open to everyone — only if you publish sites
51820/udpThe CodeHero VPNOpen — only if the VPN is on
A port you forward to a container (a project's Container tab)That container's serviceAs that service needs
9453/udp, 9867/udpHTTP/3 of the panel and of the previews (5.16.6)Same as the TCP port of the same number
443/udpHTTP/3 of the live sites (5.16.6)Open to everyone — only if you publish sites
Every other portMySQL 3306, the containers, the databases of the Services tab …Closed
Keep a way in. Before you close a port, keep a way in (your IP allowed for SSH, or the cloud's console): a firewall rule can lock you out of your own server.

The panel, phpMyAdmin and the previews behind the VPN (5.7.0)

With your laptop in the CodeHero VPN you can close 9453, 9454 and 9867 to the internet and reach them through the VPN:

  1. Read «Do not lock yourself out» in Securing CodeHero.
  2. Devices → the VPN card → Use the VPN to close your ports (Section 33). It shows your server's steps and the hosts line.
  3. Join two computers (your laptop and a spare one). Add the hosts line on each. Open the panel through the VPN and sign in, from another network too.
  4. Only then close the ports on your cloud's firewall. Close 9867 only if nobody outside the VPN must see the previews: your customers would need the VPN too.
  5. Keep open 51820/udp, and 80 / 443 if you publish sites or use Let's Encrypt.
  6. Keep a way in that does not need the VPN (your IP allowed for SSH, or the cloud's console). SSH is your own decision; CodeHero never changes it or a firewall.

Security levels

The ports for each level — Dev, Production, Fortress — with what you do and what CodeHero already does at each: Securing CodeHero.

35. AI Planning Guide (plan with an external AI)

CodeHero ships the CodeHero Spec Builder — a portable knowledge file you add to a Claude Project or a ChatGPT project. The assistant then interviews you about your business in plain language (short batches of related questions, no technical jargon), proposes the technical direction, reviews the complete draft in groups sized to the work (two for a small tool, about five for a medium app, up to ten for a large system) plus a final consistency check, and produces a specification package: architecture, requirements and acceptance criteria. Candidate ticket cards are optional; the planning ticket on your installation makes the final design, the provider assignments and the work plan.

  1. Click Copy planning guide below (or download the file).
  2. Add it as knowledge to a Claude/ChatGPT project with the instruction: “You are the CodeHero Spec Builder. Follow the file exactly.”
  3. Answer its questions; it delivers the specification package as one Markdown file.
  4. Paste that package into the in‑app AI Assistant (Plan with AI) — it shows a preview, creates the container if the spec declares one, and after you confirm creates the project and one planning ticket that carries the package; the planning ticket assigns providers from your active list and creates the first phase of tickets.

Open / download the guide →

The guide is self‑contained — no code or file uploads are needed; CodeHero's agents build everything from the ticket descriptions.

Spec Builder 2.0 (5.7.0):

36. Tips & Best Practices

Writing Good Tickets

Do:

Don't:

Good example:

Title: Add user authentication API

Description:
Create REST API endpoints in /api/auth/:
- POST /api/auth/login - Accept email/password, return JWT
- POST /api/auth/register - Create new user
- GET /api/auth/me - Return current user (requires auth)

Use the existing User model in models/user.py.
Use bcrypt for password hashing.

Bad example:

Title: Auth
Description: Add login

Parallel Execution

Cost Optimization

37. Troubleshooting

Ticket Stuck in "in_progress"

A run counts as stuck after 60 minutes without a line from the agent (STUCK_TIMEOUT_MINUTES in /etc/codehero/system.conf changes it). A long tool is not silence: while a tool runs — a test suite in one ProcessManager wait, a long command — every provider family sends a heartbeat every 2 minutes (Codex, the Claude CLI in both modes, the API providers), for up to 2 hours. A model that stays silent with nothing running is still caught.

  1. Check Console for errors
  2. Use Kill Switch (Stop button or /stop)
  3. Retry the ticket

AI Not Processing Tickets

  1. Check daemon: systemctl status codehero-daemon
  2. Review logs: journalctl -u codehero-daemon -f
  3. Verify MySQL: systemctl status mysql
  4. Restart: sudo systemctl restart codehero-web codehero-daemon

Permission Errors

«PRODUCTION project: read only» or «Refused: project … is LOCKED» (5.7.1)

«Blocked: … belongs to another project» or «Blocked: the secrets of project … stay hidden» (5.7.1)

«Held: the maintenance copy is …» (5.8.0)

«Not started — «Keep AI work on the maintenance copy» is on …» (5.8.0)

A container cannot reach an address on your network (5.8.0)

The 8th container of a server has no network: «Too many open files» (5.14.0)

An app's address with /database/ in it answered 403 (5.15.0)

«Local network imports are disabled» (5.8.0)

«URL and clone imports are unavailable while Keep AI work on the maintenance copy is on» (5.8.0)

«Not started — the restore of this project did not finish …» (5.11.3)

«The move into a container did not finish» (5.11.3)

«Not started — the account that runs this ticket could not be confirmed» (5.8.0)

«Not started — … it starts again by itself» (5.11.0)

«This ticket runs outside the sandbox: …» (5.11.0)

«Not started — the AI login of claude needs you: sign in again …» (5.11.0)

«Not started — Codex's hooks are being updated — it starts again by itself» (5.11.0)

«Not started — Grok Build's hooks are being updated — it starts again by itself» (5.11.1)

«Not started — the Grok hooks could not be confirmed — it starts again by itself» (5.11.1)

The protections store (5.8.0)

Can't Access Dashboard

  1. Check services: systemctl status codehero-web nginx
  2. Check that your cloud's or router's firewall lets port 9453 in (34 — CodeHero installs no firewall)
  3. Verify IP: hostname -I
  4. Browser may block self-signed cert
  5. Set your password asks for a setup code you do not have (an upgraded server that still had admin123): on the server's console, sudo /usr/local/lib/codehero/sandbox-ctl auth setup show shows it (Section 1); none saved → … auth setup make makes one
  6. The 2FA page says «This code was already used»: wait for the next code in your app (at most 30 seconds). A lock from wrong tries stays after a restart of the panel; it ends 30 minutes after it started (Section 1)
  7. The sign-in page says «Sign-in is unavailable: …» or «This sign-in could not be verified — trusted panel proxy: …»: do what it says (Section 1, Section 28). Since 5.9.0 the panel listens on /run/codehero-web/panel.sock, not on a TCP port: systemctl status codehero-web shows whether it runs

A Preview Says «Access Denied»

Provider API Errors

38. Keyboard Shortcuts

Code Editor

ShortcutAction
Ctrl+SSave file
Ctrl+ZUndo
Ctrl+Shift+ZRedo
Ctrl+FFind
Ctrl+HFind and Replace
Ctrl+GGo to line
Ctrl+DSelect next occurrence
Ctrl+/Toggle comment
Alt+Up/DownMove line up/down
Ctrl+Shift+KDelete line
Ctrl+ClickGo to definition

Web Terminal

ShortcutAction
Ctrl+CInterrupt command
Ctrl+DExit shell
Ctrl+LClear terminal
Ctrl+Shift+CCopy selection
Ctrl+Shift+VPaste

General

ShortcutAction
EscapeClose modal

39. Developer Training — The Autonomous Development Framework (ADF)

CodeHero implements an Autonomous Development Framework: AI agents build, test and document a product from a specification, while humans provide only what nobody else can — the business truth, the credentials and the approvals. The developer training course teaches that framework step by step, in the order the work happens in a real delivery: interview the client, decide the stack, plan the tickets, run and read the execution, customize the global and project contexts, deliver.

🎓 Open the training course Presentation for domain experts →

ModuleTitleOutcome
1The frameworkExplain the twelve ADF principles, the pipeline and the layers of instruction
2Extracting knowledge from the clientRun a Spec Builder interview; produce and review a specification package
3Choosing the stackDecide PHP vs Node vs Python vs .NET, host vs container, with a written justification
4PlanningTurn a package into a project and a planning ticket, and read the serial plan (roles, providers, verification) that the planning ticket produces
5ExecutionRead what the agent does, why it stops, and how to answer it
6Customizing the brainChange the global context and project contexts safely, and prove the change works
7Reaching a working resultDrive a project from the first ticket to a verified, documented delivery
8CapstoneDeliver a mini-project end to end and pass the rubric
Audience & duration: developers, analysts and technical project managers; about five days (one module per half-day, capstone on day five). Every module ends with exercises; the appendices hold quick-reference cards and a reading list. The framework files the course cites (config/core-base.md, docs/CODEHERO_PLANNING_GUIDE.md, config/assistant-planner.md, config/contexts/*.md) are the source of truth.

40. REST API (5.13.0, 5.13.1, 5.13.2)

The REST API lets a program talk to your CodeHero without a browser. It reads the state of the server and the projects, pulls encrypted backups, does a few chosen actions and restores a copy as a new project. The first program that uses it is the backup client: a small program on the computer that keeps your backups. The manual is inside your panel: Settings → 🔑 API keys → The API manual. It lists everything the API does, with examples.

What the API does not do: run commands or SQL, restore over a project, delete a project (except a drill it made), change modes, locks or protections, give a plain backup, or push to your storage (the client pulls). An upgrade changes nothing in your projects and makes no key.

Questions people ask

All the articles
How does CodeHero compare with other AI coding tools?

It is a different kind of thing. Coding tools help a person who writes code. CodeHero does the whole job — asks, plans, builds, checks, hosts and maintains — for the person who knows the business. Read the article

If CodeHero writes the code, what is my role?

You become the advisor: you decide the business rules, approve the plan and accept the result. CodeHero is the developer that asks, builds, checks and maintains. Read the article

Do my passwords and keys reach the AI company?

CodeHero removes the secrets you store from what the AI is shown, and checks every request that leaves for the AI company once more, at the last step; a check that cannot finish stops the request. The one exception is the call that renews your login, which carries no ticket work. For tickets on a subscription (Claude Code, Codex, Grok) the check is forced only with «Ticket sandbox» on; with it off it catches mistakes only. It cannot hide what it does not know: a password typed in a chat, a key only in a config file, a screenshot. Store every password as a secret — never in a chat message or a screenshot. Read the article