How to install and set up Manus AI on your local development machine
Python 3.10+ installed, git installed, OpenAI-compatible API key for model access
What this does
This guide covers installing the Manus AI desktop application and configuring the local CLI backend that enables autonomous task execution, file manipulation, and workflow automation directly from the terminal. The setup process includes environment configuration, API key provisioning, and basic connectivity verification.
Steps
- Download the Manus Desktop application for the target operating system from the official website at manus.im and run the installer. Follow the on-screen instructions to complete the GUI installation.
- Open a terminal and verify Python is present by running
python3 --version. Confirm the output shows 3.10 or higher. - Install the Manus CLI backend package using
pip install manus-aiif a pip-installable package is available, or clone the repository withgit clone https://github.com/manusa/manus-ai.gitand run the setup script. - Create a credentials file at
~/.manus/credentials.jsonwith the following structure, replacing the placeholder with a valid API key:{ "api_key": "sk-your-key-here", "base_url": "https://api.openai.com/v1" } - Set the
MANUS_API_KEYenvironment variable as a fallback by addingexport MANUS_API_KEY="sk-your-key-here"to the shell profile file such as~/.bashrcor~/.zshrc. - Verify the CLI installation by running
manus --version. A version string should appear without errors. - Test connectivity by running
manus check-config. This command attempts to reach the API endpoint and confirms whether authentication succeeds. - Start a Manus session with
manus session startand follow the prompts to grant filesystem permissions for the first run.
Verification
manus check-config
Expected output:
Manus AI Configuration Check
API connectivity: OK
Authentication: OK
Local backend: running on port 8080
Configured model: gpt-4o
Common failures
Python version below 3.10 — The CLI may fail to start or exhibit missing module errors. Use
python3 --versionto confirm the version, and install a newer Python via python.org or a system package manager if needed.API key rejected by the provider — An invalid or expired key produces an authentication error during
manus check-config. Verify the key is active in the provider dashboard and that thebase_urlmatches the correct endpoint for the key type.Port 8080 already in use — The Manus local backend attempts to bind to port 8080 by default. If another process occupies this port, the startup fails. Identify the conflicting process with
lsof -i :8080and stop it, or configure Manus to use an alternative port in~/.manus/config.json.Missing write permissions for
~/.manusdirectory — The credentials file must be created in a directory that the user can write to. Create the directory manually withmkdir -p ~/.manusand set appropriate permissions before running the setup commands.
Related guides
- Create a task completion workflow in Manus AI for building a React component
- Use Manus AI to research and compare API options for your project