Operations and troubleshooting
Day-two work on the machine that hosts NeoAgent: service control, updates, backups and recovery.
Desktop app installs have no neoagent command; use Settings โบ System to start, stop and restart the local server and read its logs.
๐น๏ธ Service commandsโ
| Command | What it does |
|---|---|
neoagent | Menu of common actions; resumes an unfinished setup |
neoagent status | Service state, version, channel and health |
neoagent status --details | Adds install folder, versions, settings file and process IDs for a support request |
neoagent doctor | Read-only checks, each with the command that fixes it |
neoagent start ยท stop ยท restart | Control the background service |
neoagent logs | Follow the server logs |
neoagent version | Print the installed version |
neoagent uninstall | Stop NeoAgent starting with the computer; data stays |
neoagent help --all | Every command and flag |
- Port taken. If another program holds the port,
startandrestartoffer to move NeoAgent to the next free one. - Wrong machine. Logs from a laptop or client say nothing about a NeoAgent server elsewhere.
โป๏ธ Restarts keep work in progressโ
- Chats and scheduled tasks resume. Web and messaging runs, and scheduled task runs, cut off by a restart or update start again, told what they had already done. A task resumes for the occurrence that was cut off.
- Not resumed. Runs interrupted more than an hour ago, event-triggered task runs, sub-agents and live voice calls.
๐ Release channels and updatesโ
| Command | What it does |
|---|---|
neoagent channel | Show the current channel |
neoagent channel stable ยท beta | Switch channel |
neoagent update --notes | Show what a waiting update changes, without installing it |
neoagent update | Update to the latest version on the current channel |
neoagent update beta | Switch channel and update in one step |
- Stable follows the
mainbranch and suits normal installs. - Beta gets prerelease builds from the
betabranch, or the stable build when that is newer.
neoagent update runs these steps:
- Backs up settings, database and agent data.
- Downloads the new version from GitHub.
- Reinstalls dependencies and rebuilds the bundled app.
- Restarts NeoAgent and checks it answers with the new version.
If any step after the download fails, it puts the previous version back and restarts that instead.
- From the app. Admin โบ Server โบ Updates installs updates and switches channel; it is disabled when
NEOAGENT_DEPLOYMENT_MODE=managed. - Old package installs.
updatebacks up, then moves a non-Git install to a checkout at~/NeoAgent(orNEOAGENT_SOURCE_DIR). Needs Git and npm.
๐ Move an old install by handโ
Back up first, then run the repository installer; it keeps existing runtime data and skips onboarding.
neoagent stop
BACKUP_ARCHIVE="$HOME/neoagent-backup-$(date +%Y%m%d-%H%M%S).tar.gz"
tar -C "$HOME" -czf "$BACKUP_ARCHIVE" .neoagent
bash <(curl -fsSL https://raw.githubusercontent.com/NeoLabs-Systems/NeoAgent/main/install.sh)
neoagent doctor
- Source directory. Keep the default
~/NeoAgentunless it holds something else. - Custom runtime root. If
NEOAGENT_HOMEpoints elsewhere, archive that directory instead of~/.neoagent.
๐พ Backupsโ
neoagent backup
- Pauses NeoAgent if it is running.
- Copies
.env,data/andagent-data/to~/.neoagent/backups/manual-<time>. - Adds compressed, verified copies of the cloud computer disks (QEMU).
- Starts NeoAgent again.
- Automatic backups.
updateandrepairsave apre-update-<time>copy first. Only the three newest are kept. - By hand. Stop the service or take a filesystem snapshot, then copy the paths below.
- Treat backups as secrets. They contain credentials and personal data.
| Path | Contents |
|---|---|
~/.neoagent/.env | Settings and secrets |
~/.neoagent/data/ | SQLite database, logs, cloud computer disks, update state |
~/.neoagent/agent-data/ | Skills and memory files |
With NEOAGENT_HOME set, these live under that directory instead.
๐ Recoveryโ
neoagent repair # "fix" works too
- Stops NeoAgent and backs up your data.
- In a Git checkout, discards local edits to NeoAgent's own source files.
- Reinstalls dependencies and rebuilds the bundled app.
- Prepares the cloud computer and repairs damaged disks.
- Registers the background service again and starts it.
- Keep your own backups.
repairkeeps settings, accounts and data, but it is no substitute for a backup. - Save source edits first. Commit or copy any changes to NeoAgent's source before running it.
For setup problems:
neoagent setup --resume # continue where an interrupted setup stopped
neoagent setup # run setup again; existing values are kept
neoagent restart
- No secrets in progress files. An interrupted setup stores only non-secret values such as port and URLs.
๐ฉบ Common failuresโ
| Symptom | Check |
|---|---|
| Service does not start | neoagent status, then neoagent logs |
| Chat has no response | Provider key, selected model, provider quota, usage limits under Settings โบ Usage |
| Cloud computer unavailable | neoagent doctor; hardware virtualization for qemu, a running Docker for docker; then neoagent repair |
| Browser sign-in fails with "Origin not allowed" | Add that address to ALLOWED_ORIGINS |
| "Sign-in needs a secure connection" | Open the https:// address; secure cookies refuse plain HTTP |
| OAuth fails | Reachable HTTPS PUBLIC_URL and the exact callback URI |
| Messaging receives nothing | Channel credentials, webhook and allowlists |
| Task does not run | Enabled state, trigger account, next run, Runs |
| Android action fails | ADB visibility, selected device, tool approval |
| Your own computer unavailable | The desktop app is running and connected on that machine |
When reporting a bug, include the NeoAgent version, server OS, install path (desktop app, Docker or installer), TERMINAL_ENV, exact steps, and sanitized logs. neoagent status --details collects most of it.