Skip to main content

Operations and troubleshooting

Day-two work: updates, backups, recovery, and what to check when something breaks.

Run service commands on the machine hosting NeoAgent.

đŸ•šī¸ Service commands​

neoagent status
neoagent doctor
neoagent start
neoagent stop
neoagent restart
neoagent logs

status is the first check for install, service, configuration, and health problems. logs tails the server logs. Logs from a laptop or client do not describe a NeoAgent instance running on another server.

🔄 Release channels and updates​

neoagent channel
neoagent channel stable
neoagent channel beta
neoagent update

Stable is intended for normal installations. Beta receives prerelease builds. update follows the selected channel, updates the Git checkout, verifies the bundled client, and restarts the service. Legacy globally copied package installations are migrated once to ~/NeoAgent (or NEOAGENT_SOURCE_DIR), after backing up configuration, database, and agent data. Signed standalone CLI installations update through their verified GitHub runtime packages.

To migrate an older installation manually without resetting its data:

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

Choose the default ~/NeoAgent source directory unless it is already used for something else. Runtime state remains under ~/.neoagent; the installer does not rerun onboarding when it detects existing state. If NEOAGENT_HOME points somewhere else, archive that directory instead of ~/.neoagent.

🚑 Recovery​

neoagent repair

doctor is read-only. repair preserves configuration, identity, accounts, and user data, restores verified runtime files when the standalone distribution is used, registers the per-user service again, and restarts it. fix remains an alias. It is not a substitute for a backup.

For configuration problems:

neoagent setup
neoagent setup --resume
neoagent restart

Interrupted setup progress contains no secrets. Resume continues the selected Quickstart or Full profile; secrets are saved only after their section validates.

💾 Backups​

Stop the service or take an application-consistent filesystem snapshot, then back up:

PathContents
~/.neoagent/.envServer configuration and secrets
~/.neoagent/data/SQLite database, sessions, logs, update state
~/.neoagent/agent-data/Skills, memory files, daily data

If NEOAGENT_HOME is set, these paths live under that directory instead. Protect backups as credentials and personal data.

đŸŠē Common failures​

SymptomCheck
Service does not startneoagent status, then neoagent logs
Chat has no responseProvider connection, selected model, provider quota
Browser or shell unavailableDocker installed and running, then first runtime boot
OAuth failsReachable HTTPS PUBLIC_URL and exact callback URI
Messaging receives nothingChannel credentials, webhook, and allowlists
Task does not runEnabled state, trigger account, next run, Runs
Android action failsADB visibility, selected device, tool approval
Paired device unavailableCompanion or extension connection on that machine

When reporting a bug, include the NeoAgent version, server OS, installation type, runtime profile, exact reproduction steps, and sanitized server logs.