Agent Daily Usage Manual¶
This document is intended for regular users who have completed the Agent service installation. It explains how to check the Agent's running status, manage the service, modify configurations, view logs, manually update, and uninstall the Agent.
The following commands apply to the Linux/systemd installation method. Executing service management, configuration modification, and uninstallation commands typically requires sudo privileges on the host.
Common Paths¶
After default installation, Agent-related files are located in the following locations:
| Type | Default Location |
|---|---|
| Agent Program | /usr/local/bin/beak-agent |
| Updater Program | /usr/local/bin/beak-agent-updater |
| Configuration File | /etc/beak-agent/agent.env |
| Working Directory | /var/lib/beak-agent/work |
| Profile Cache | /var/lib/beak-agent/profile-cache |
| Log Directory | /var/log/beak-agent |
| Main Log File | /var/log/beak-agent/log |
| systemd Service | beak-agent.service |
Check Service Status¶
Check if the Agent is running:
Check only if the service is active:
Check the currently installed Agent version:
Check the Agent's running user:
By default, the Agent service runs as the beak-agent user, not as root persistently. root is primarily used for host management actions like installation, upgrade, and uninstallation.
Start, Stop, and Restart¶
Start the Agent:
Stop the Agent:
Restart the Agent:
After modifying configurations, a service restart is usually required for the new configurations to take effect:
View Logs¶
View recent systemd logs:
Continuously view the latest logs:
View the Agent's main log file:
If the Agent fails to start, it is recommended to first check:
Modify Configurations¶
The Agent's runtime configuration is by default written to:
It is recommended to back up before modification:
Edit the configuration:
Common configurations include:
| Configuration Item | Description |
|---|---|
BEAK_WS_URL |
Service address the Agent connects to |
AGENT_API_KEY |
Agent access credential |
AGENT_ID |
Current Agent ID |
LLM_BASE_URL |
LLM service address |
LLM_API_KEY |
LLM invocation credential |
AGENT_WORKDIR |
Agent tool execution working directory |
AGENT_PROFILE_CACHE_DIR |
Agent profile, Skill, and schema cache directory |
AGENT_UPDATE_BASE_URL |
Agent release download address |
AGENT_UPDATE_CHECK_INTERVAL_SECONDS |
Interval for automatic new version checks |
AGENT_DEFAULT_APPROVAL_TTL_SECONDS |
Default approval timeout |
LLM_MODEL is no longer a required configuration. The new version runtime defaults to using the default model identifier; if an active LLM_MODEL=... remains in the old configuration, it is only recommended to keep it if you indeed need to fix the model. Otherwise, you can delete that line and restart the service.
After modification is complete, restart the service:
If a configuration error causes the service to fail to start, you can restore from the backup:
Note
The agent.env file may contain sensitive information such as API Keys, Tokens, and access addresses. Do not send the complete configuration file to public chats, tickets, code repositories, or screenshots.
Manual Update and Rollback¶
The Agent can switch versions via the local updater program by default.
Manually check and update to the latest version in the release source:
Install a specific version:
Version rollback uses the same command. For example, to roll back to v0.1.9:
Check the status of the automatic update timer:
If the update fails, prioritize checking:
- Whether
AGENT_UPDATE_BASE_URLin/etc/beak-agent/agent.envis correct; - Whether
install.sh, the target version installation package, and verification files exist under the release address; - Whether there are download, verification, or scheduling errors in
journalctl -u beak-agent-update-check.service -n 100; - Whether there are startup or restart errors in
journalctl -u beak-agent -n 100.
Uninstall Agent¶
The uninstall script by default only shows the uninstall plan and does not delete any content:
After confirming it's correct, execute a complete uninstall with --yes:
Uninstallation will delete the following fixed objects:
/usr/local/bin/beak-agent/usr/local/bin/beak-agent-updater/usr/local/bin/beak-agent-update-check/etc/beak-agent/var/lib/beak-agent/var/log/beak-agentbeak-agent.servicebeak-agent-update-check.servicebeak-agent-update-check.timer/etc/sudoers.d/beak-agentbeak-agentuser and user group
Uninstallation will not delete Skill runtime dependencies installed or checked by skill-dep.sh, such as system commands, language runtimes, Python/Node packages, fonts, or other system packages. These dependencies may be shared components originally present on the host or may be reused by other services and cannot be removed by the Agent uninstallation process.
Common Checks¶
Agent Shows as Offline in the Page¶
It is recommended to check in order:
- Is the host service running:
systemctl status beak-agent - Can the host network access the service address;
- Whether
BEAK_WS_URL,AGENT_API_KEY,AGENT_IDin/etc/beak-agent/agent.envare correct; - Whether there are authentication failures, network connection failures, or DNS resolution failures in recent logs.
Agent Configuration Changes Not Taking Effect¶
Confirm if the service has been restarted:
Then check the logs to confirm the new process has started:
Agent Version Not Changed After Update¶
First check the current version:
Then check the update logs:
If it's a specified version update, confirm that the version number in the command matches the version number in the release source.