HOW-TO · DEV
How to run Manus AI with custom agent configurations and memory settings
Target environment
Ubuntu 24.04 · Manus AI 2.x
PREREQUISITES
Manus AI installed, Python 3.10+, environment with network access
What this does
Manus AI ships with a default agent profile that works for general tasks. Custom agent configurations allow control over behavior such as tool use, reasoning depth, and response verbosity. Memory settings govern how Manus retains context across sessions, including short-term working memory and long-term persistent memory backed by a local SQLite store. Adjusting these settings tailors Manus for specialized workflows, such as codebase analysis or documentation generation.
Steps
- Create a configuration directory at
~/.manus/config.yamlif it does not exist. - Define an agent profile using the
agent:section, specifyingmodel,temperature, andmax_tokens. - Set memory parameters under the
memory:section: configureshort_term_limit(number of turns retained) andlong_term_enabled(boolean). - Enable the custom profile by setting the
MANUS_PROFILEenvironment variable to the profile name defined in the YAML. - Initialize the memory store by running
manus memory initonce before the first session. - Launch Manus with
manus runto start an interactive session using the custom profile. - After several interactions, inspect the memory database with
sqlite3 ~/.manus/memory.db "SELECT COUNT(*) FROM turns;"to confirm data retention. - Adjust
short_term_limitdownward to reduce context window pressure on long conversations.
Verification
sqlite3 ~/.manus/memory.db "SELECT COUNT(*) FROM turns;"
Expected output: an integer greater than zero after at least one interaction has occurred.
Common failures
- Memory database locked: Another Manus process is still running. Terminate it with
pkill -f manusbefore reinitializing. - Profile not found: Ensure the YAML key under
agent:matches the value ofMANUS_PROFILEexactly, including case. - Context window overflow: Reduce
short_term_limitor clear old turns withmanus memory pruneto free up space.