Install OpenManus
Set up the OpenManus codebase and install its dependencies first. If you can already run OpenManus locally, continue to the configuration step.Prerequisites
- OpenManus is installed and can start locally
- You have an active AllTokens API Key
- The target model supports function calling
- If you plan to use vision tasks, make sure a vision model is enabled too
Configure OpenManus
Open theconfig/config.toml file and point the model settings to AllTokens.
Start with a function-calling-capable general model such as Qwen/QwQ-32B, then switch to a vision model only if you need it.
Run OpenManus
Once the config is in place, start the main program:Typical workflow
OpenManus works best for multi-step tasks such as research, analysis, and report generation. A typical run usually includes:- Understanding the request
- Searching for sources
- Opening pages or documents
- Cleaning up data with code
- Producing the final output
Troubleshooting
The agent does not call tools
Check whether the selected model supports function calling and confirmbase_url is set to https://alltoken.co/v1.
The model cannot be found
Make sure the model name inconfig.toml matches the name enabled in your AllTokens account.
Vision tasks fail
Verify that the model under[llm.vision] is enabled and supports image input.
It crashes immediately after startup
Recheck your dependencies and make sure the API key is valid.Tips
- Test a simple task first, then move on to more complex reports
- Separate text and vision testing so failures are easier to debug
- For production use, give OpenManus its own API Key
- Choose a more stable general-purpose model if you switch models often