home / skills / openclaw / skills / manus

manus skill

/skills/mvanhorn/manus

This skill creates and manages Manus AI agent tasks, retrieves results, and downloads outputs to streamline autonomous project work.

npx playbooks add skill openclaw/skills --skill manus

Review the files below or copy the command above to add this skill to your agents.

Files (4)
SKILL.md
3.5 KB
---
name: manus
version: "1.1.0"
description: Create and manage AI agent tasks via Manus API. Manus 1.5 autonomously browses the web, uses tools, and delivers complete work products. Cost-efficient Manus-1.5-Lite available.
author: mvanhorn
license: MIT
repository: https://github.com/mvanhorn/clawdbot-skill-manus
homepage: https://manus.im
metadata:
  openclaw:
    emoji: "🤖"
    requires:
      env:
        - MANUS_API_KEY
    primaryEnv: MANUS_API_KEY
    tags:
      - agent
      - automation
      - manus
      - web-browsing
---

# Manus AI Agent

Use the Manus API to create autonomous AI tasks. Manus can browse the web, use tools, and deliver complete results (reports, code, presentations, etc.).

## API Base

`https://api.manus.ai/v1`

## Authentication

Header: `API_KEY: <your-key>`

Set via:
- `MANUS_API_KEY` env var
- Or `skills.manus.apiKey` in openclaw config

## Recommended Workflow

When using Manus for tasks that produce files (slides, reports, etc.):

1. **Create the task** with `createShareableLink: true`
2. **Poll for completion** using the task_id
3. **Extract output files** from the response and download them locally
4. **Deliver to user** via direct file attachment (don't rely on manus.im share links)

## Create a Task

```bash
curl -X POST "https://api.manus.ai/v1/tasks" \
  -H "API_KEY: $MANUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Your task description here",
    "agentProfile": "manus-1.6",
    "taskMode": "agent",
    "createShareableLink": true
  }'
```

Response:
```json
{
  "task_id": "abc123",
  "task_title": "Task Title",
  "task_url": "https://manus.im/app/abc123"
}
```

## Agent Profiles

| Profile | Description | Use for |
|---------|-------------|---------|
| `manus-1.6` | Standard (default) | Most tasks |
| `manus-1.6-lite` | Faster, lighter | Quick/simple stuff |
| `manus-1.6-max` | Complex, thorough | Deep research/analysis |

**Default:** Always use `manus-1.6` unless user specifies otherwise.

## Task Modes

| Mode | Description |
|------|-------------|
| `chat` | Conversational mode |
| `adaptive` | Auto-selects best approach |
| `agent` | Full autonomous agent mode (recommended for file creation) |

## Get Task Status & Output

```bash
curl "https://api.manus.ai/v1/tasks/{task_id}" \
  -H "API_KEY: $MANUS_API_KEY"
```

Status values: `pending`, `running`, `completed`, `failed`

**Important:** When status is `completed`, check the `output` array for files:
- Look for `type: "output_file"` entries
- Download files from `fileUrl` directly
- Save locally and send to user as attachments

## Extracting Output Files

The task response includes output like:
```json
{
  "output": [
    {
      "content": [
        {
          "type": "output_file",
          "fileUrl": "https://private-us-east-1.manuscdn.com/...",
          "fileName": "presentation.pdf"
        }
      ]
    }
  ]
}
```

Download these files with curl and deliver directly to the user rather than relying on share URLs.

## List Tasks

```bash
curl "https://api.manus.ai/v1/tasks" \
  -H "API_KEY: $MANUS_API_KEY"
```

## Best Practices

1. **Always poll for completion** before telling user the task is done
2. **Download output files locally** instead of giving manus.im links (they can be unreliable)
3. **Use `agent` mode** for tasks that create files/documents
4. **Set reasonable expectations** — Manus tasks can take 2-10+ minutes for complex work

## Docs

- API Reference: https://open.manus.ai/docs
- Main Docs: https://manus.im/docs

Overview

This skill creates and manages autonomous Manus AI agent tasks and retrieves completed work products via the Manus API. It provides simple CLI scripts to create tasks, poll status, wait for completion, list and download output files. The skill is focused on reliable task orchestration and fetching results rather than interactive integrations or local configuration changes.

How this skill works

The bundled Bash scripts send task prompts to api.manus.ai using an API key supplied in the MANUS_API_KEY environment variable. Scripts support creating tasks with optional profiles, polling status, waiting with a timeout, retrieving full task JSON, listing output files, and downloading outputs from Manus CDN. All network requests include the API key only in the API_KEY header and the scripts use curl and jq for HTTP and JSON handling.

When to use it

  • Automate sending research, writing, or data-collection prompts to Manus from CI or simple scripts.
  • Batch workflow where you create tasks and poll until results are ready before downstream processing.
  • Archive or backup completed Manus output files to local storage or a remote bucket.
  • Quickly test different Manus model profiles (lite, default, max) for speed vs. thoroughness trade-offs.

Best practices

  • Set MANUS_API_KEY as an environment variable and verify it before running scripts.
  • Review scripts/manus.sh before first use to confirm behavior and inspect network calls.
  • Use the wait command with an appropriate timeout for expected task complexity to avoid premature failures.
  • Download outputs immediately after completion and verify file integrity if used in production pipelines.
  • Use descriptive task prompts and appropriate profile selection to control cost and runtime.

Example use cases

  • Create a deep-research task and wait for a comprehensive report, then download PDFs and data files.
  • Run a batch of content-generation tasks with manus-1.6-lite for fast drafts, then re-run promising drafts with manus-1.6-max for finalization.
  • Automate a nightly archival job that creates analysis tasks and stores the returned assets in a backup folder.
  • Use the status and get commands in a monitoring script to surface failed or stuck Manus tasks to an operator.

FAQ

How do I authenticate requests?

Set the MANUS_API_KEY environment variable with your Manus API key; scripts send it in the API_KEY header to api.manus.ai.

Can the scripts upload local files to Manus?

Not in the bundled script. File uploads are an advanced Manus API feature and are not implemented here.

What task statuses can I expect?

Tasks return pending, running, completed, or failed. Use wait to poll until completion or timeout.