> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hubto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Use in OpenManus

> Connect HubTo to OpenManus and run agentic tasks with an OpenAI-compatible model.

## 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 HubTo 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 the `config/config.toml` file and point the model settings to HubTo.

Start with a function-calling-capable general model such as `glm-5.1`, then switch to a vision model only if you need it.

```toml theme={null}
[llm]
model = "glm-5.1"
base_url = "https://api.hubto.ai/v1"
api_key = "YOUR_API_KEY"
max_tokens = 16384
temperature = 0.6

[llm.vision]
model = "qwen2.5-vl-72b-instruct"
base_url = "https://api.hubto.ai/v1"
api_key = "YOUR_API_KEY"
```

## Run OpenManus

Once the config is in place, start the main program:

```bash theme={null}
python main.py
```

OpenManus will break down the task, search for information, extract content, and call tools when needed.

## Typical workflow

OpenManus works best for multi-step tasks such as research, analysis, and report generation.

A typical run usually includes:

1. Understanding the request
2. Searching for sources
3. Opening pages or documents
4. Cleaning up data with code
5. Producing the final output

If you need web access, make sure your model supports tool calling and your search tools are available.

## Troubleshooting

### The agent does not call tools

Check whether the selected model supports function calling and confirm `base_url` is set to `https://api.hubto.ai/v1`.

### The model cannot be found

Make sure the model name in `config.toml` matches the name enabled in your HubTo 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

## Summary

OpenManus is a good fit for multi-step, tool-driven agent tasks.

With HubTo, you can keep model access behind one gateway and choose the right model for each job.
